perf(ivy): split view processing into render (create) and refresh (update) pass (#32020)
PR Close #32020
This commit is contained in:

committed by
Kara Erickson

parent
4d96cf5197
commit
b9dfe66028
@ -61,6 +61,22 @@ describe('ViewContainerRef', () => {
|
||||
expect(fixture.componentInstance.foo).toBeAnInstanceOf(TemplateRef);
|
||||
});
|
||||
|
||||
it('should construct proper TNode / DOM tree when embedded views are created in a directive constructor',
|
||||
() => {
|
||||
@Component({
|
||||
selector: 'view-insertion-test-cmpt',
|
||||
template:
|
||||
`<div>before<ng-template constructorDir><span>|middle|</span></ng-template>after</div>`
|
||||
})
|
||||
class ViewInsertionTestCmpt {
|
||||
}
|
||||
|
||||
TestBed.configureTestingModule({declarations: [ViewInsertionTestCmpt, ConstructorDir]});
|
||||
|
||||
const fixture = TestBed.createComponent(ViewInsertionTestCmpt);
|
||||
expect(fixture.nativeElement).toHaveText('before|middle|after');
|
||||
});
|
||||
|
||||
it('should use comment node of host ng-container as insertion marker', () => {
|
||||
@Component({template: 'hello'})
|
||||
class HelloComp {
|
||||
|
Reference in New Issue
Block a user