fix(ivy): mark query test as modified in Ivy (#28660)

Due to the fact that host nodes no longer match in ContentChild queries in Ivy, we disable test that was enabled previously in other commit.

PR Close #28660
This commit is contained in:
Andrew Kushnir 2019-02-12 09:52:20 -08:00 committed by Miško Hevery
parent 0957d8cb3f
commit 0cb02d906e
1 changed files with 11 additions and 8 deletions

View File

@ -270,15 +270,18 @@ describe('Query API', () => {
}); });
describe('read a different token', () => { describe('read a different token', () => {
it('should contain all content children', () => { modifiedInIvy('Host nodes no longer match in ContentChild queries in Ivy')
const template = .it('should contain all content children', () => {
'<needs-content-children-read #q text="ca"><div #q text="cb"></div></needs-content-children-read>'; const template =
const view = createTestCmpAndDetectChanges(MyComp0, template); '<needs-content-children-read #q text="ca"><div #q text="cb"></div></needs-content-children-read>';
const view = createTestCmpAndDetectChanges(MyComp0, template);
const comp: NeedsContentChildrenWithRead = const comp: NeedsContentChildrenWithRead =
view.debugElement.children[0].injector.get(NeedsContentChildrenWithRead); view.debugElement.children[0].injector.get(NeedsContentChildrenWithRead);
expect(comp.textDirChildren.map(textDirective => textDirective.text)).toEqual(['ca', 'cb']); expect(comp.textDirChildren.map(textDirective => textDirective.text)).toEqual([
}); 'ca', 'cb'
]);
});
it('should contain the first content child', () => { it('should contain the first content child', () => {
const template = const template =