test: clean up explicit dynamic query usages (#33015)

Cleans up all the places where we explicitly set `static: false` on queries.

PR Close #33015
This commit is contained in:
crisbeto
2019-10-05 10:04:54 +02:00
committed by Matias Niemelä
parent 7e64bbe5a8
commit 9d54679e66
46 changed files with 273 additions and 279 deletions

View File

@ -178,7 +178,7 @@ import {el} from '../../testing/src/browser_util';
})
class Cmp {
exp: any;
@ViewChild('elm', {static: false}) public element: any;
@ViewChild('elm') public element: any;
}
TestBed.configureTestingModule({
@ -223,11 +223,11 @@ import {el} from '../../testing/src/browser_util';
exp2: any = true;
exp3: any = true;
@ViewChild('elm1', {static: false}) public elm1: any;
@ViewChild('elm1') public elm1: any;
@ViewChild('elm2', {static: false}) public elm2: any;
@ViewChild('elm2') public elm2: any;
@ViewChild('elm3', {static: false}) public elm3: any;
@ViewChild('elm3') public elm3: any;
}
TestBed.configureTestingModule({

View File

@ -51,7 +51,7 @@ import {el} from '../../testing/src/browser_util';
template: '...',
})
class Cmp {
@ViewChild('target', {static: false}) public target: any;
@ViewChild('target') public target: any;
constructor(public builder: AnimationBuilder) {}