@@ -291,7 +291,7 @@ describe("Renderer E2E", () => {
291
291
it ( "ngIf hides component when false" , ( ) => {
292
292
return testApp . loadComponent ( NgIfLabel ) . then ( ( componentRef ) => {
293
293
const componentRoot = componentRef . instance . elementRef . nativeElement ;
294
- assert . equal ( "(ProxyViewContainer (CommentNode) )" , dumpView ( componentRoot ) ) ;
294
+ assert . equal ( "(ProxyViewContainer)" , dumpView ( componentRoot ) ) ;
295
295
} ) ;
296
296
} ) ;
297
297
@@ -302,7 +302,7 @@ describe("Renderer E2E", () => {
302
302
303
303
component . show = true ;
304
304
testApp . appRef . tick ( ) ;
305
- assert . equal ( "(ProxyViewContainer (CommentNode) , (Label))" , dumpView ( componentRoot ) ) ;
305
+ assert . equal ( "(ProxyViewContainer, (Label))" , dumpView ( componentRoot ) ) ;
306
306
} ) ;
307
307
} ) ;
308
308
@@ -314,12 +314,11 @@ describe("Renderer E2E", () => {
314
314
component . show = true ;
315
315
testApp . appRef . tick ( ) ;
316
316
assert . equal (
317
- "(ProxyViewContainer (StackLayout (CommentNode), ( Label), (Button)))" ,
317
+ "(ProxyViewContainer (StackLayout (Label), (Button)))" ,
318
318
dumpView ( componentRoot ) ) ;
319
319
} ) ;
320
320
} ) ;
321
321
322
-
323
322
it ( "ngIf shows elements in correct order when multiple are rendered and there's *ngIf" , ( ) => {
324
323
return testApp . loadComponent ( NgIfMultiple ) . then ( ( componentRef ) => {
325
324
const component = < NgIfMultiple > componentRef . instance ;
@@ -333,8 +332,7 @@ describe("Renderer E2E", () => {
333
332
"(Label[text=1]), " +
334
333
"(Label[text=2]), " +
335
334
"(Label[text=3]), " +
336
- "(CommentNode), " + // ng-reflect comment
337
- "(Label[text=4]), " + // the content to be displayed and its anchor
335
+ "(Label[text=4]), " + // the content to be conditionally displayed
338
336
"(Label[text=5])" +
339
337
")" +
340
338
")" ,
@@ -351,9 +349,9 @@ describe("Renderer E2E", () => {
351
349
assert . equal (
352
350
"(ProxyViewContainer " +
353
351
"(StackLayout " +
354
- "(CommentNode), " + // ng-reflect comment
355
- "(Label[text=If]), (CommentNode)))" , // the content to be displayed and its anchor
356
-
352
+ "(Label[text=If])" , +
353
+ ")" +
354
+ ")" ,
357
355
dumpView ( componentRoot , true ) ) ;
358
356
} ) ;
359
357
} ) ;
@@ -368,8 +366,9 @@ describe("Renderer E2E", () => {
368
366
assert . equal (
369
367
"(ProxyViewContainer " +
370
368
"(StackLayout " +
371
- "(CommentNode), " + // ng-reflect comment
372
- "(Label[text=Else]), (CommentNode)))" , // the content to be displayed and its anchor
369
+ "(Label[text=Else])" +
370
+ ")" +
371
+ ")" ,
373
372
374
373
dumpView ( componentRoot , true ) ) ;
375
374
} ) ;
@@ -384,9 +383,9 @@ describe("Renderer E2E", () => {
384
383
assert . equal (
385
384
"(ProxyViewContainer " +
386
385
"(StackLayout " +
387
- "(CommentNode), " + // ng-reflect comment
388
- "(Label[text=Then]), (CommentNode), " + // the content to be displayed and its anchor
389
- "(CommentNode)))" , // the anchor for the else template
386
+ "(Label[text=Then]) " +
387
+ ") " +
388
+ ")" ,
390
389
391
390
dumpView ( componentRoot , true ) ) ;
392
391
} ) ;
@@ -403,9 +402,9 @@ describe("Renderer E2E", () => {
403
402
assert . equal (
404
403
"(ProxyViewContainer " +
405
404
"(StackLayout " +
406
- "(CommentNode), " + // the content to be displayed
407
- "(Label[text=Else]), (CommentNode), " + // the content to be displayed
408
- "(CommentNode)))" , // the content to be displayed
405
+ "(Label[text=Else]) " +
406
+ ") " +
407
+ ")" ,
409
408
410
409
dumpView ( componentRoot , true ) ) ;
411
410
} ) ;
@@ -415,7 +414,7 @@ describe("Renderer E2E", () => {
415
414
return testApp . loadComponent ( NgForLabel ) . then ( ( componentRef ) => {
416
415
const componentRoot = componentRef . instance . elementRef . nativeElement ;
417
416
assert . equal (
418
- "(ProxyViewContainer (CommentNode), ( Label[text=one]), (Label[text=two]), (Label[text=three]))" ,
417
+ "(ProxyViewContainer (Label[text=one]), (Label[text=two]), (Label[text=three]))" ,
419
418
dumpView ( componentRoot , true ) ) ;
420
419
} ) ;
421
420
} ) ;
@@ -429,7 +428,7 @@ describe("Renderer E2E", () => {
429
428
testApp . appRef . tick ( ) ;
430
429
431
430
assert . equal (
432
- "(ProxyViewContainer (CommentNode), ( Label[text=one]), (Label[text=three]))" ,
431
+ "(ProxyViewContainer (Label[text=one]), (Label[text=three]))" ,
433
432
dumpView ( componentRoot , true ) ) ;
434
433
} ) ;
435
434
} ) ;
@@ -443,7 +442,7 @@ describe("Renderer E2E", () => {
443
442
testApp . appRef . tick ( ) ;
444
443
445
444
assert . equal (
446
- "(ProxyViewContainer (CommentNode), " +
445
+ "(ProxyViewContainer " +
447
446
"(Label[text=one]), (Label[text=new]), (Label[text=two]), (Label[text=three]))" ,
448
447
dumpView ( componentRoot , true ) ) ;
449
448
} ) ;
0 commit comments