@@ -238,44 +238,42 @@ function declareTests(config?: {useJit: boolean}) {
238238 expect ( getDOM ( ) . getProperty ( nativeEl , 'htmlFor' ) ) . toBe ( 'foo' ) ;
239239 } ) ;
240240
241- fixmeIvy ( 'FW-587: Inputs with aliases in component decorators don\'t work' )
242- . it ( 'should consume directive watch expression change.' , ( ) => {
243- TestBed . configureTestingModule ( { declarations : [ MyComp , MyDir ] } ) ;
244- const template = '<span>' +
245- '<div my-dir [elprop]="ctxProp"></div>' +
246- '<div my-dir elprop="Hi there!"></div>' +
247- '<div my-dir elprop="Hi {{\'there!\'}}"></div>' +
248- '<div my-dir elprop="One more {{ctxProp}}"></div>' +
249- '</span>' ;
250- TestBed . overrideComponent ( MyComp , { set : { template} } ) ;
251- const fixture = TestBed . createComponent ( MyComp ) ;
241+ it ( 'should consume directive watch expression change.' , ( ) => {
242+ TestBed . configureTestingModule ( { declarations : [ MyComp , MyDir ] } ) ;
243+ const template = '<span>' +
244+ '<div my-dir [elprop]="ctxProp"></div>' +
245+ '<div my-dir elprop="Hi there!"></div>' +
246+ '<div my-dir elprop="Hi {{\'there!\'}}"></div>' +
247+ '<div my-dir elprop="One more {{ctxProp}}"></div>' +
248+ '</span>' ;
249+ TestBed . overrideComponent ( MyComp , { set : { template} } ) ;
250+ const fixture = TestBed . createComponent ( MyComp ) ;
252251
253- fixture . componentInstance . ctxProp = 'Hello World!' ;
254- fixture . detectChanges ( ) ;
252+ fixture . componentInstance . ctxProp = 'Hello World!' ;
253+ fixture . detectChanges ( ) ;
255254
256- const containerSpan = fixture . debugElement . children [ 0 ] ;
255+ const containerSpan = fixture . debugElement . children [ 0 ] ;
257256
258- expect ( containerSpan . children [ 0 ] . injector . get ( MyDir ) . dirProp ) . toEqual ( 'Hello World!' ) ;
259- expect ( containerSpan . children [ 1 ] . injector . get ( MyDir ) . dirProp ) . toEqual ( 'Hi there!' ) ;
260- expect ( containerSpan . children [ 2 ] . injector . get ( MyDir ) . dirProp ) . toEqual ( 'Hi there!' ) ;
261- expect ( containerSpan . children [ 3 ] . injector . get ( MyDir ) . dirProp )
262- . toEqual ( 'One more Hello World!' ) ;
263- } ) ;
257+ expect ( containerSpan . children [ 0 ] . injector . get ( MyDir ) . dirProp ) . toEqual ( 'Hello World!' ) ;
258+ expect ( containerSpan . children [ 1 ] . injector . get ( MyDir ) . dirProp ) . toEqual ( 'Hi there!' ) ;
259+ expect ( containerSpan . children [ 2 ] . injector . get ( MyDir ) . dirProp ) . toEqual ( 'Hi there!' ) ;
260+ expect ( containerSpan . children [ 3 ] . injector . get ( MyDir ) . dirProp )
261+ . toEqual ( 'One more Hello World!' ) ;
262+ } ) ;
264263
265264 describe ( 'pipes' , ( ) => {
266- fixmeIvy ( 'FW-587: Inputs with aliases in component decorators don\'t work' )
267- . it ( 'should support pipes in bindings' , ( ) => {
268- TestBed . configureTestingModule ( { declarations : [ MyComp , MyDir , DoublePipe ] } ) ;
269- const template = '<div my-dir #dir="mydir" [elprop]="ctxProp | double"></div>' ;
270- TestBed . overrideComponent ( MyComp , { set : { template} } ) ;
271- const fixture = TestBed . createComponent ( MyComp ) ;
265+ it ( 'should support pipes in bindings' , ( ) => {
266+ TestBed . configureTestingModule ( { declarations : [ MyComp , MyDir , DoublePipe ] } ) ;
267+ const template = '<div my-dir #dir="mydir" [elprop]="ctxProp | double"></div>' ;
268+ TestBed . overrideComponent ( MyComp , { set : { template} } ) ;
269+ const fixture = TestBed . createComponent ( MyComp ) ;
272270
273- fixture . componentInstance . ctxProp = 'a' ;
274- fixture . detectChanges ( ) ;
271+ fixture . componentInstance . ctxProp = 'a' ;
272+ fixture . detectChanges ( ) ;
275273
276- const dir = fixture . debugElement . children [ 0 ] . references ! [ 'dir' ] ;
277- expect ( dir . dirProp ) . toEqual ( 'aa' ) ;
278- } ) ;
274+ const dir = fixture . debugElement . children [ 0 ] . references ! [ 'dir' ] ;
275+ expect ( dir . dirProp ) . toEqual ( 'aa' ) ;
276+ } ) ;
279277 } ) ;
280278
281279 it ( 'should support nested components.' , ( ) => {
@@ -290,21 +288,20 @@ function declareTests(config?: {useJit: boolean}) {
290288 } ) ;
291289
292290 // GH issue 328 - https://github.com/angular/angular/issues/328
293- fixmeIvy ( 'FW-587: Inputs with aliases in component decorators don\'t work' )
294- . it ( 'should support different directive types on a single node' , ( ) => {
295- TestBed . configureTestingModule ( { declarations : [ MyComp , ChildComp , MyDir ] } ) ;
296- const template = '<child-cmp my-dir [elprop]="ctxProp"></child-cmp>' ;
297- TestBed . overrideComponent ( MyComp , { set : { template} } ) ;
298- const fixture = TestBed . createComponent ( MyComp ) ;
291+ it ( 'should support different directive types on a single node' , ( ) => {
292+ TestBed . configureTestingModule ( { declarations : [ MyComp , ChildComp , MyDir ] } ) ;
293+ const template = '<child-cmp my-dir [elprop]="ctxProp"></child-cmp>' ;
294+ TestBed . overrideComponent ( MyComp , { set : { template} } ) ;
295+ const fixture = TestBed . createComponent ( MyComp ) ;
299296
300- fixture . componentInstance . ctxProp = 'Hello World!' ;
301- fixture . detectChanges ( ) ;
297+ fixture . componentInstance . ctxProp = 'Hello World!' ;
298+ fixture . detectChanges ( ) ;
302299
303- const tc = fixture . debugElement . children [ 0 ] ;
300+ const tc = fixture . debugElement . children [ 0 ] ;
304301
305- expect ( tc . injector . get ( MyDir ) . dirProp ) . toEqual ( 'Hello World!' ) ;
306- expect ( tc . injector . get ( ChildComp ) . dirProp ) . toEqual ( null ) ;
307- } ) ;
302+ expect ( tc . injector . get ( MyDir ) . dirProp ) . toEqual ( 'Hello World!' ) ;
303+ expect ( tc . injector . get ( ChildComp ) . dirProp ) . toEqual ( null ) ;
304+ } ) ;
308305
309306 it ( 'should support directives where a binding attribute is not given' , ( ) => {
310307 TestBed . configureTestingModule ( { declarations : [ MyComp , MyDir ] } ) ;
@@ -1688,21 +1685,20 @@ function declareTests(config?: {useJit: boolean}) {
16881685 } ) ;
16891686
16901687 describe ( 'logging property updates' , ( ) => {
1691- fixmeIvy ( 'FW-587: Inputs with aliases in component decorators don\'t work' )
1692- . it ( 'should reflect property values as attributes' , ( ) => {
1693- TestBed . configureTestingModule ( { declarations : [ MyComp , MyDir ] } ) ;
1694- const template = '<div>' +
1695- '<div my-dir [elprop]="ctxProp"></div>' +
1696- '</div>' ;
1697- TestBed . overrideComponent ( MyComp , { set : { template} } ) ;
1698- const fixture = TestBed . createComponent ( MyComp ) ;
1688+ it ( 'should reflect property values as attributes' , ( ) => {
1689+ TestBed . configureTestingModule ( { declarations : [ MyComp , MyDir ] } ) ;
1690+ const template = '<div>' +
1691+ '<div my-dir [elprop]="ctxProp"></div>' +
1692+ '</div>' ;
1693+ TestBed . overrideComponent ( MyComp , { set : { template} } ) ;
1694+ const fixture = TestBed . createComponent ( MyComp ) ;
16991695
1700- fixture . componentInstance . ctxProp = 'hello' ;
1701- fixture . detectChanges ( ) ;
1696+ fixture . componentInstance . ctxProp = 'hello' ;
1697+ fixture . detectChanges ( ) ;
17021698
1703- expect ( getDOM ( ) . getInnerHTML ( fixture . nativeElement ) )
1704- . toContain ( 'ng-reflect-dir-prop="hello"' ) ;
1705- } ) ;
1699+ expect ( getDOM ( ) . getInnerHTML ( fixture . nativeElement ) )
1700+ . toContain ( 'ng-reflect-dir-prop="hello"' ) ;
1701+ } ) ;
17061702
17071703 it ( `should work with prop names containing '$'` , ( ) => {
17081704 TestBed . configureTestingModule ( { declarations : [ ParentCmp , SomeCmpWithInput ] } ) ;
@@ -1726,17 +1722,15 @@ function declareTests(config?: {useJit: boolean}) {
17261722 . toContain ( '"ng\-reflect\-ng\-if"\: "true"' ) ;
17271723 } ) ;
17281724
1729- // also affected by FW-587: Inputs with aliases in component decorators don't work
1730- fixmeIvy ( 'FW-664: ng-reflect-* is not supported' )
1731- . it ( 'should indicate when toString() throws' , ( ) => {
1732- TestBed . configureTestingModule ( { declarations : [ MyComp , MyDir ] } ) ;
1733- const template = '<div my-dir [elprop]="toStringThrow"></div>' ;
1734- TestBed . overrideComponent ( MyComp , { set : { template} } ) ;
1735- const fixture = TestBed . createComponent ( MyComp ) ;
1725+ it ( 'should indicate when toString() throws' , ( ) => {
1726+ TestBed . configureTestingModule ( { declarations : [ MyComp , MyDir ] } ) ;
1727+ const template = '<div my-dir [elprop]="toStringThrow"></div>' ;
1728+ TestBed . overrideComponent ( MyComp , { set : { template} } ) ;
1729+ const fixture = TestBed . createComponent ( MyComp ) ;
17361730
1737- fixture . detectChanges ( ) ;
1738- expect ( getDOM ( ) . getInnerHTML ( fixture . nativeElement ) ) . toContain ( '[ERROR]' ) ;
1739- } ) ;
1731+ fixture . detectChanges ( ) ;
1732+ expect ( getDOM ( ) . getInnerHTML ( fixture . nativeElement ) ) . toContain ( '[ERROR]' ) ;
1733+ } ) ;
17401734 } ) ;
17411735
17421736 describe ( 'property decorators' , ( ) => {
0 commit comments