From f38deb0f07b6a6d5b1ff20af3b1675ceb4120545 Mon Sep 17 00:00:00 2001 From: Andrew Kushnir Date: Mon, 28 Jan 2019 20:54:52 -0800 Subject: [PATCH] fix(ivy): update test after Content Queries inheritance fix (#28414) This commit updates test that was added after Content Queries inheritance fix (that renames some instructions) was merged into master. The test used previous version of instructions, thus causing failures after merging Content Queries inheritance fix. PR Close #28414 --- .../bundling/cyclic_import/bundle.golden_symbols.json | 2 +- packages/core/test/render3/query_spec.ts | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/core/test/bundling/cyclic_import/bundle.golden_symbols.json b/packages/core/test/bundling/cyclic_import/bundle.golden_symbols.json index 7c91dda5c3..894f4b130c 100644 --- a/packages/core/test/bundling/cyclic_import/bundle.golden_symbols.json +++ b/packages/core/test/bundling/cyclic_import/bundle.golden_symbols.json @@ -591,7 +591,7 @@ "name": "setCurrentDirectiveDef" }, { - "name": "setCurrentViewQueryIndex" + "name": "setCurrentQueryIndex" }, { "name": "setFirstTemplatePass" diff --git a/packages/core/test/render3/query_spec.ts b/packages/core/test/render3/query_spec.ts index ec16aca8ec..6ec9be6267 100644 --- a/packages/core/test/render3/query_spec.ts +++ b/packages/core/test/render3/query_spec.ts @@ -2791,13 +2791,11 @@ describe('query', () => { type: ContentQueryDirective, selectors: [['', 'content-query', '']], factory: () => contentQueryDirective = new ContentQueryDirective(), - contentQueries: - (dirIndex) => { registerContentQuery(query(TextDirective, true), dirIndex); }, - contentQueriesRefresh: (dirIndex: number, queryStartIdx: number) => { + contentQueries: (dirIndex: number) => { contentQuery(dirIndex, TextDirective, true); }, + contentQueriesRefresh: (dirIndex: number) => { let tmp: any; const instance = load(dirIndex); - queryRefresh(tmp = loadQueryList(queryStartIdx)) && - (instance.texts = tmp); + queryRefresh(tmp = loadContentQuery()) && (instance.texts = tmp); } }); }