fix(ivy): properly project individual nodes (#28152)

PR Close #28152
This commit is contained in:
Pawel Kozlowski 2019-01-15 14:46:10 +01:00 committed by Alex Rickabaugh
parent f59f18c13e
commit 808898d015
2 changed files with 4 additions and 4 deletions

View File

@ -2398,8 +2398,8 @@ export function projectionDef(selectors?: CssSelectorList[], textSelectors?: str
tails[bucketIndex] !.next = componentChild; tails[bucketIndex] !.next = componentChild;
} else { } else {
pData[bucketIndex] = componentChild; pData[bucketIndex] = componentChild;
componentChild.next = null;
} }
componentChild.next = null;
tails[bucketIndex] = componentChild; tails[bucketIndex] = componentChild;
componentChild = nextNode; componentChild = nextNode;

View File

@ -95,7 +95,7 @@ describe('projection', () => {
expect(main.nativeElement).toHaveText('I AM PROJECTED'); expect(main.nativeElement).toHaveText('I AM PROJECTED');
}); });
fixmeIvy('unknown').it('should support multiple content tags', () => { it('should support multiple content tags', () => {
TestBed.configureTestingModule({declarations: [MultipleContentTagsComponent]}); TestBed.configureTestingModule({declarations: [MultipleContentTagsComponent]});
TestBed.overrideComponent(MainComp, { TestBed.overrideComponent(MainComp, {
set: { set: {
@ -195,7 +195,7 @@ describe('projection', () => {
expect(main.nativeElement).toHaveText('OUTER(INNER(INNERINNER(A,BC)))'); expect(main.nativeElement).toHaveText('OUTER(INNER(INNERINNER(A,BC)))');
}); });
fixmeIvy('unknown').it('should redistribute when the shadow dom changes', () => { it('should redistribute when the shadow dom changes', () => {
TestBed.configureTestingModule( TestBed.configureTestingModule(
{declarations: [ConditionalContentComponent, ManualViewportDirective]}); {declarations: [ConditionalContentComponent, ManualViewportDirective]});
TestBed.overrideComponent(MainComp, { TestBed.overrideComponent(MainComp, {
@ -302,7 +302,7 @@ describe('projection', () => {
expect(main.nativeElement).toHaveText('SIMPLE()START(A)END'); expect(main.nativeElement).toHaveText('SIMPLE()START(A)END');
}); });
fixmeIvy('unknown').it('should support moving ng-content around', () => { it('should support moving ng-content around', () => {
TestBed.configureTestingModule( TestBed.configureTestingModule(
{declarations: [ConditionalContentComponent, ProjectDirective, ManualViewportDirective]}); {declarations: [ConditionalContentComponent, ProjectDirective, ManualViewportDirective]});
TestBed.overrideComponent(MainComp, { TestBed.overrideComponent(MainComp, {