diff --git a/packages/core/test/linker/integration_spec.ts b/packages/core/test/linker/integration_spec.ts index 239174ce74..c33b6cd704 100644 --- a/packages/core/test/linker/integration_spec.ts +++ b/packages/core/test/linker/integration_spec.ts @@ -241,42 +241,44 @@ function declareTests(config?: {useJit: boolean}) { expect(getDOM().getProperty(nativeEl, 'htmlFor')).toBe('foo'); }); - fixmeIvy('unknown') && it('should consume directive watch expression change.', () => { - TestBed.configureTestingModule({declarations: [MyComp, MyDir]}); - const template = '' + - '' + - '' + - '' + - '' + - ''; - TestBed.overrideComponent(MyComp, {set: {template}}); - const fixture = TestBed.createComponent(MyComp); + fixmeIvy('FW-587: Inputs with aliases in component decorators don\'t work') && + it('should consume directive watch expression change.', () => { + TestBed.configureTestingModule({declarations: [MyComp, MyDir]}); + const template = '' + + '' + + '' + + '' + + '' + + ''; + TestBed.overrideComponent(MyComp, {set: {template}}); + const fixture = TestBed.createComponent(MyComp); - fixture.componentInstance.ctxProp = 'Hello World!'; - fixture.detectChanges(); + fixture.componentInstance.ctxProp = 'Hello World!'; + fixture.detectChanges(); - const containerSpan = fixture.debugElement.children[0]; + const containerSpan = fixture.debugElement.children[0]; - expect(containerSpan.children[0].injector.get(MyDir).dirProp).toEqual('Hello World!'); - expect(containerSpan.children[1].injector.get(MyDir).dirProp).toEqual('Hi there!'); - expect(containerSpan.children[2].injector.get(MyDir).dirProp).toEqual('Hi there!'); - expect(containerSpan.children[3].injector.get(MyDir).dirProp) - .toEqual('One more Hello World!'); - }); + expect(containerSpan.children[0].injector.get(MyDir).dirProp).toEqual('Hello World!'); + expect(containerSpan.children[1].injector.get(MyDir).dirProp).toEqual('Hi there!'); + expect(containerSpan.children[2].injector.get(MyDir).dirProp).toEqual('Hi there!'); + expect(containerSpan.children[3].injector.get(MyDir).dirProp) + .toEqual('One more Hello World!'); + }); describe('pipes', () => { - fixmeIvy('unknown') && it('should support pipes in bindings', () => { - TestBed.configureTestingModule({declarations: [MyComp, MyDir, DoublePipe]}); - const template = '
'; - TestBed.overrideComponent(MyComp, {set: {template}}); - const fixture = TestBed.createComponent(MyComp); + fixmeIvy('FW-587: Inputs with aliases in component decorators don\'t work') && + it('should support pipes in bindings', () => { + TestBed.configureTestingModule({declarations: [MyComp, MyDir, DoublePipe]}); + const template = ''; + TestBed.overrideComponent(MyComp, {set: {template}}); + const fixture = TestBed.createComponent(MyComp); - fixture.componentInstance.ctxProp = 'a'; - fixture.detectChanges(); + fixture.componentInstance.ctxProp = 'a'; + fixture.detectChanges(); - const dir = fixture.debugElement.children[0].references !['dir']; - expect(dir.dirProp).toEqual('aa'); - }); + const dir = fixture.debugElement.children[0].references !['dir']; + expect(dir.dirProp).toEqual('aa'); + }); }); it('should support nested components.', () => { @@ -291,20 +293,21 @@ function declareTests(config?: {useJit: boolean}) { }); // GH issue 328 - https://github.com/angular/angular/issues/328 - fixmeIvy('unknown') && it('should support different directive types on a single node', () => { - TestBed.configureTestingModule({declarations: [MyComp, ChildComp, MyDir]}); - const template = 'It works!
'}) class UninitializedOutputComp { @@ -374,7 +377,7 @@ function declareTests(config?: {useJit: boolean}) { const fixture = TestBed.createComponent(MyComp); }); - fixmeIvy('unknown') && + fixmeIvy('FW-678: ivy generates different DOM structure for