@@ -926,7 +926,7 @@ function declareTests(isJit: boolean) {
})}));
it('should create a component that injects an @Host through viewcontainer directive',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MyComp, new ViewMetadata({
template: `
@@ -951,7 +951,7 @@ function declareTests(isJit: boolean) {
}));
it('should support events via EventEmitter on regular elements',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MyComp, new ViewMetadata({
template: '
',
directives: [DirectiveEmittingEvent, DirectiveListeningEvent]
@@ -985,7 +985,7 @@ function declareTests(isJit: boolean) {
}));
it('should support events via EventEmitter on template elements',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(
MyComp, new ViewMetadata({
template: ' ',
@@ -1015,7 +1015,7 @@ function declareTests(isJit: boolean) {
}));
it('should support [()] syntax',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MyComp, new ViewMetadata({
template: '
',
directives: [DirectiveWithTwoWayBinding]
@@ -1041,7 +1041,7 @@ function declareTests(isJit: boolean) {
}));
it('should support render events',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(
MyComp,
new ViewMetadata(
@@ -1069,7 +1069,7 @@ function declareTests(isJit: boolean) {
}));
it('should support render global events',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(
MyComp,
new ViewMetadata(
@@ -1096,7 +1096,7 @@ function declareTests(isJit: boolean) {
}));
it('should support updating host element via hostAttributes',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MyComp, new ViewMetadata({
template: '
',
directives: [DirectiveUpdatingHostAttributes]
@@ -1115,7 +1115,7 @@ function declareTests(isJit: boolean) {
}));
it('should support updating host element via hostProperties',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MyComp, new ViewMetadata({
template: '
',
directives: [DirectiveUpdatingHostProperties]
@@ -1140,7 +1140,7 @@ function declareTests(isJit: boolean) {
if (getDOM().supportsDOMEvents()) {
it('should support preventing default on render events',
inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder,
- async: any /** TODO #9100 */) => {
+ async: AsyncTestCompleter) => {
tcb.overrideView(
MyComp, new ViewMetadata({
template:
@@ -1171,7 +1171,7 @@ function declareTests(isJit: boolean) {
}
it('should support render global events from multiple directives',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(
MyComp, new ViewMetadata({
template: '
',
@@ -1215,7 +1215,7 @@ function declareTests(isJit: boolean) {
describe('dynamic ViewContainers', () => {
it('should allow to create a ViewContainerRef at any bound location',
inject([TestComponentBuilder, AsyncTestCompleter, ComponentResolver],
- (tcb: TestComponentBuilder, async: any /** TODO #9100 */, compiler: any /** TODO #9100 */) => {
+ (tcb: TestComponentBuilder, async: AsyncTestCompleter, compiler: ComponentResolver) => {
tcb.overrideView(MyComp, new ViewMetadata({
template: '
',
directives: [DynamicViewport]
@@ -1237,7 +1237,7 @@ function declareTests(isJit: boolean) {
});
it('should support static attributes',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(
MyComp,
new ViewMetadata(
@@ -1257,7 +1257,7 @@ function declareTests(isJit: boolean) {
describe("dependency injection", () => {
it("should support bindings",
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(
MyComp, new ViewMetadata({
template: `
@@ -1278,7 +1278,7 @@ function declareTests(isJit: boolean) {
}));
it("should support viewProviders",
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(DirectiveProvidingInjectableInView, new ViewMetadata({
template: `
@@ -1296,7 +1296,7 @@ function declareTests(isJit: boolean) {
}));
it("should support unbounded lookup",
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MyComp, new ViewMetadata({
template: `
@@ -1326,7 +1326,7 @@ function declareTests(isJit: boolean) {
}));
it("should support the event-bus scenario",
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MyComp, new ViewMetadata({
template: `
@@ -1362,7 +1362,7 @@ function declareTests(isJit: boolean) {
}));
it("should instantiate bindings lazily",
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(
MyComp, new ViewMetadata({
template: `
@@ -1391,7 +1391,7 @@ function declareTests(isJit: boolean) {
describe("corner cases", () => {
it('should remove script tags from templates',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MyComp, new ViewMetadata({
template: `
@@ -1409,7 +1409,7 @@ function declareTests(isJit: boolean) {
describe("error handling", () => {
it('should report a meaningful error when a directive is missing annotation',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb = tcb.overrideView(
MyComp,
new ViewMetadata({template: '', directives: [SomeDirectiveMissingAnnotation]}));
@@ -1433,7 +1433,7 @@ function declareTests(isJit: boolean) {
}));
it('should report a meaningful error when a directive is null',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb = tcb.overrideView(MyComp, new ViewMetadata({directives: [[null]], template: ''}));
@@ -1446,7 +1446,7 @@ function declareTests(isJit: boolean) {
}));
it('should provide an error context when an error happens in DI',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb =
tcb.overrideView(MyComp, new ViewMetadata({
@@ -1464,7 +1464,7 @@ function declareTests(isJit: boolean) {
}));
it('should provide an error context when an error happens in change detection',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb = tcb.overrideView(
MyComp, new ViewMetadata({template: ` `}));
@@ -1488,7 +1488,7 @@ function declareTests(isJit: boolean) {
}));
it('should provide an error context when an error happens in change detection (text node)',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb = tcb.overrideView(MyComp,
new ViewMetadata({template: `{{one.two.three}}
`}));
@@ -1540,7 +1540,7 @@ function declareTests(isJit: boolean) {
if (!IS_DART) {
it('should report a meaningful error when a directive is undefined',
inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder,
- async: any /** TODO #9100 */) => {
+ async: AsyncTestCompleter) => {
var undefinedValue: any /** TODO #9100 */;
@@ -1558,7 +1558,7 @@ function declareTests(isJit: boolean) {
it('should specify a location of an error that happened during change detection (text)',
inject([TestComponentBuilder, AsyncTestCompleter],
- (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MyComp, new ViewMetadata({template: '{{a.b}}
'}))
@@ -1572,7 +1572,7 @@ function declareTests(isJit: boolean) {
it('should specify a location of an error that happened during change detection (element property)',
inject(
[TestComponentBuilder, AsyncTestCompleter],
- (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MyComp, new ViewMetadata({template: '
'}))
@@ -1584,7 +1584,7 @@ function declareTests(isJit: boolean) {
it('should specify a location of an error that happened during change detection (directive property)',
inject([TestComponentBuilder, AsyncTestCompleter],
- (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MyComp, new ViewMetadata({
template: ' ',
@@ -1600,7 +1600,7 @@ function declareTests(isJit: boolean) {
});
it('should support imperative views',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MyComp, new ViewMetadata({
template: ' ',
directives: [SimpleImperativeViewComponent]
@@ -1614,7 +1614,7 @@ function declareTests(isJit: boolean) {
it('should support moving embedded views around',
inject([TestComponentBuilder, AsyncTestCompleter, ANCHOR_ELEMENT],
- (tcb: TestComponentBuilder, async: any /** TODO #9100 */, anchorElement: any /** TODO #9100 */) => {
+ (tcb: TestComponentBuilder, async: AsyncTestCompleter, anchorElement: any /** TODO #9100 */) => {
tcb.overrideView(MyComp, new ViewMetadata({
template: '',
directives: [SomeImperativeViewport]
@@ -1641,7 +1641,7 @@ function declareTests(isJit: boolean) {
if (!IS_DART) {
it('should throw on bindings to unknown properties',
inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder,
- async: any /** TODO #9100 */) => {
+ async: AsyncTestCompleter) => {
tcb =
tcb.overrideView(MyComp,
new ViewMetadata({template: '
'}))
@@ -1656,7 +1656,7 @@ function declareTests(isJit: boolean) {
it('should not throw for property binding to a non-existing property when there is a matching directive property',
inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder,
- async: any /** TODO #9100 */) => {
+ async: AsyncTestCompleter) => {
tcb.overrideView(
MyComp,
new ViewMetadata(
@@ -1667,7 +1667,7 @@ function declareTests(isJit: boolean) {
}
it('should not be created when there is a directive with the same property',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MyComp, new ViewMetadata({
template: ' ',
directives: [DirectiveWithTitle]
@@ -1686,7 +1686,7 @@ function declareTests(isJit: boolean) {
}));
it('should work when a directive uses hostProperty to update the DOM element',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MyComp, new ViewMetadata({
template: ' ',
directives: [DirectiveWithTitleAndHostProperty]
@@ -1710,7 +1710,7 @@ function declareTests(isJit: boolean) {
() => [{provide: CompilerConfig, useValue: new CompilerConfig(true, true, isJit)}]);
it('should reflect property values as attributes',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var tpl = '';
@@ -1728,7 +1728,7 @@ function declareTests(isJit: boolean) {
}));
it('should reflect property values on template comments',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var tpl = ' ';
tcb.overrideView(MyComp, new ViewMetadata({template: tpl, directives: [NgIf]}))
@@ -1746,7 +1746,7 @@ function declareTests(isJit: boolean) {
describe('property decorators', () => {
it('should support property decorators',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(
MyComp, new ViewMetadata({
template: ' ',
@@ -1762,7 +1762,7 @@ function declareTests(isJit: boolean) {
}));
it('should support host binding decorators',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MyComp, new ViewMetadata({
template: ' ',
directives: [DirectiveWithPropDecorators]
@@ -1803,7 +1803,7 @@ function declareTests(isJit: boolean) {
it('should support host listener decorators',
inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder,
- async: any /** TODO #9100 */) => {
+ async: AsyncTestCompleter) => {
tcb.overrideView(MyComp, new ViewMetadata({
template: ' ',
directives: [DirectiveWithPropDecorators]
@@ -1822,7 +1822,7 @@ function declareTests(isJit: boolean) {
}
it('should support defining views in the component decorator',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MyComp, new ViewMetadata({
template: ' ',
directives: [ComponentWithTemplate]
@@ -1842,7 +1842,7 @@ function declareTests(isJit: boolean) {
describe('svg', () => {
it('should support svg elements',
inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder,
- async: any /** TODO #9100 */) => {
+ async: AsyncTestCompleter) => {
tcb.overrideView(MyComp,
new ViewMetadata({template: ' '}))
.createAsync(MyComp)
@@ -1874,7 +1874,7 @@ function declareTests(isJit: boolean) {
it('should support attributes with namespace',
inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder,
- async: any /** TODO #9100 */) => {
+ async: AsyncTestCompleter) => {
tcb.overrideView(SomeCmp, new ViewMetadata({template: ' '}))
.createAsync(SomeCmp)
.then((fixture) => {
@@ -1887,7 +1887,7 @@ function declareTests(isJit: boolean) {
it('should support binding to attributes with namespace',
inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder,
- async: any /** TODO #9100 */) => {
+ async: AsyncTestCompleter) => {
tcb.overrideView(SomeCmp,
new ViewMetadata({template: ' '}))
.createAsync(SomeCmp)
diff --git a/modules/@angular/core/test/linker/projection_integration_spec.ts b/modules/@angular/core/test/linker/projection_integration_spec.ts
index 711bde9000..00bae5eb42 100644
--- a/modules/@angular/core/test/linker/projection_integration_spec.ts
+++ b/modules/@angular/core/test/linker/projection_integration_spec.ts
@@ -35,7 +35,7 @@ import {getAllDebugNodes} from '@angular/core/src/debug/debug_node';
export function main() {
describe('projection', () => {
it('should support simple components',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MainComp, new ViewMetadata({
template: '' +
'A
' +
@@ -50,7 +50,7 @@ export function main() {
}));
it('should support simple components with text interpolation as direct children',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MainComp, new ViewMetadata({
template: '{{\'START(\'}}' +
'{{text}}' +
@@ -68,7 +68,7 @@ export function main() {
}));
it('should support projecting text interpolation to a non bound element',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(
Simple,
new ViewMetadata(
@@ -88,7 +88,7 @@ export function main() {
it('should support projecting text interpolation to a non bound element with other bound elements after it',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(
Simple, new ViewMetadata({
template:
@@ -109,7 +109,7 @@ export function main() {
}));
it('should project content components',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(
Simple,
new ViewMetadata(
@@ -129,7 +129,7 @@ export function main() {
}));
it('should not show the light dom even if there is no content tag',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MainComp,
new ViewMetadata({template: 'A ', directives: [Empty]}))
.createAsync(MainComp)
@@ -141,7 +141,7 @@ export function main() {
}));
it('should support multiple content tags',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MainComp, new ViewMetadata({
template: '' +
'B
' +
@@ -159,7 +159,7 @@ export function main() {
}));
it('should redistribute only direct children',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MainComp, new ViewMetadata({
template: '' +
'' +
@@ -176,7 +176,7 @@ export function main() {
}));
it("should redistribute direct child viewcontainers when the light dom changes",
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MainComp, new ViewMetadata({
template: '' +
'A1
' +
@@ -204,7 +204,7 @@ export function main() {
}));
it("should support nested components",
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MainComp, new ViewMetadata({
template: '' +
'A
' +
@@ -221,7 +221,7 @@ export function main() {
}));
it("should support nesting with content being direct child of a nested component",
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MainComp, new ViewMetadata({
template: '' +
'A
' +
@@ -246,7 +246,7 @@ export function main() {
}));
it('should redistribute when the shadow dom changes',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MainComp, new ViewMetadata({
template: '' +
'A
' +
@@ -278,7 +278,7 @@ export function main() {
// important as we are removing the ng-content element during compilation,
// which could skrew up text node indices.
it('should support text nodes after content tags',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(
MainComp,
@@ -299,7 +299,7 @@ export function main() {
// important as we are moving style tags around during compilation,
// which could skrew up text node indices.
it('should support text nodes after style tags',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(
MainComp,
@@ -316,7 +316,7 @@ export function main() {
}));
it('should support moving non projected light dom around',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MainComp, new ViewMetadata({
template: '' +
' A
' +
@@ -349,7 +349,7 @@ export function main() {
}));
it('should support moving projected light dom around',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MainComp, new ViewMetadata({
template: 'A
' +
'START(
)END',
@@ -373,7 +373,7 @@ export function main() {
}));
it('should support moving ng-content around',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(
MainComp, new ViewMetadata({
template: '' +
@@ -411,7 +411,7 @@ export function main() {
// is still important as we are merging proto views independent of
// the presence of ng-content elements!
it('should still allow to implement a recursive trees',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MainComp,
new ViewMetadata({template: ' ', directives: [Tree]}))
.createAsync(MainComp)
@@ -433,7 +433,7 @@ export function main() {
// is still important as we are merging proto views independent of
// the presence of ng-content elements!
it('should still allow to implement a recursive trees via multiple components',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MainComp,
new ViewMetadata({template: ' ', directives: [Tree]}))
.overrideView(Tree, new ViewMetadata({
@@ -468,7 +468,7 @@ export function main() {
if (getDOM().supportsNativeShadowDOM()) {
it('should support native content projection and isolate styles per component',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MainComp, new ViewMetadata({
template: 'A
' +
'B
',
@@ -487,7 +487,7 @@ export function main() {
if (getDOM().supportsDOMEvents()) {
it('should support non emulated styles',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MainComp, new ViewMetadata({
template: '
',
styles: ['.redStyle { color: red}'],
@@ -508,7 +508,7 @@ export function main() {
}));
it('should support emulated style encapsulation',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MainComp, new ViewMetadata({
template: '
',
styles: ['div { color: red}'],
@@ -528,7 +528,7 @@ export function main() {
}
it('should support nested conditionals that contain ng-contents',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MainComp, new ViewMetadata({
template: `a `,
directives: [ConditionalTextComponent]
@@ -552,7 +552,7 @@ export function main() {
}));
it('should allow to switch the order of nested components via ng-content',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MainComp, new ViewMetadata({
template: ` `,
directives: [CmpA, CmpB],
@@ -568,7 +568,7 @@ export function main() {
}));
it('should create nested components in the right order',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MainComp, new ViewMetadata({
template: ` `,
directives: [CmpA1, CmpA2],
@@ -584,7 +584,7 @@ export function main() {
}));
it('should project filled view containers into a view container',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MainComp, new ViewMetadata({
template: '' +
'A
' +
diff --git a/modules/@angular/core/test/linker/query_integration_spec.ts b/modules/@angular/core/test/linker/query_integration_spec.ts
index 7886cb23bb..6d74a382cd 100644
--- a/modules/@angular/core/test/linker/query_integration_spec.ts
+++ b/modules/@angular/core/test/linker/query_integration_spec.ts
@@ -39,7 +39,7 @@ export function main() {
describe('Query API', () => {
describe("querying by directive type", () => {
it('should contain all direct child directives in the light dom (constructor)',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var template = '
' +
'' +
'
' +
@@ -58,7 +58,7 @@ export function main() {
}));
it('should contain all direct child directives in the content dom',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var template =
'
';
@@ -79,7 +79,7 @@ export function main() {
}));
it('should contain the first content child',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var template =
'
';
@@ -109,7 +109,7 @@ export function main() {
}));
it('should contain the first view child',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var template = '
';
tcb.overrideTemplate(MyComp0, template)
@@ -136,7 +136,7 @@ export function main() {
}));
it('should set static view and content children already after the constructor call',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var template =
'
';
@@ -158,7 +158,7 @@ export function main() {
}));
it('should contain the first view child accross embedded views',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var template = '
';
tcb.overrideTemplate(MyComp0, template)
.overrideTemplate(
@@ -190,7 +190,7 @@ export function main() {
}));
it('should contain all directives in the light dom when descendants flag is used',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var template = '
' +
'
' +
'
' +
@@ -208,7 +208,7 @@ export function main() {
}));
it('should contain all directives in the light dom',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var template = '
' +
'
' +
'
';
@@ -224,7 +224,7 @@ export function main() {
}));
it('should reflect dynamically inserted directives',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var template =
'
' +
'
' +
@@ -246,7 +246,7 @@ export function main() {
}));
it('should be cleanly destroyed when a query crosses view boundaries',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var template =
'
' +
'
' +
@@ -264,7 +264,7 @@ export function main() {
}));
it('should reflect moved directives',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var template =
'
' +
'
' +
@@ -286,7 +286,7 @@ export function main() {
}));
it('should throw with descriptive error when query selectors are not present',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideTemplate(MyCompBroken0, '
')
.createAsync(MyCompBroken0)
.catch((e) => {
@@ -299,7 +299,7 @@ export function main() {
describe('query for TemplateRef', () => {
it('should find TemplateRefs in the light and shadow dom',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var template = '
light
';
tcb.overrideTemplate(MyComp0, template)
.createAsync(MyComp0)
@@ -317,7 +317,7 @@ export function main() {
}));
it('should find named TemplateRefs',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var template =
'
light
';
tcb.overrideTemplate(MyComp0, template)
@@ -337,7 +337,7 @@ export function main() {
describe('read a different token', () => {
it('should contain all content children',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var template =
'
';
@@ -356,7 +356,7 @@ export function main() {
}));
it('should contain the first content child',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var template =
'
';
@@ -374,7 +374,7 @@ export function main() {
}));
it('should contain the first view child',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var template = '
';
tcb.overrideTemplate(MyComp0, template)
@@ -391,7 +391,7 @@ export function main() {
}));
it('should contain all child directives in the view',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var template = '
';
tcb.overrideTemplate(MyComp0, template)
@@ -409,7 +409,7 @@ export function main() {
}));
it('should support reading a ViewContainer',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var template =
'
hello ';
@@ -430,7 +430,7 @@ export function main() {
describe("changes", () => {
it('should notify query on change',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var template = '
' +
'
' +
'
' +
@@ -454,7 +454,7 @@ export function main() {
}));
it("should notify child's query before notifying parent's query",
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var template = '' +
'' +
'
' +
@@ -480,7 +480,7 @@ export function main() {
}));
it('should correctly clean-up when destroyed together with the directives it is querying',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var template = '
';
tcb.overrideTemplate(MyComp0, template)
@@ -510,7 +510,7 @@ export function main() {
describe("querying by var binding", () => {
it('should contain all the child directives in the light dom with the given var binding',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var template =
'' +
'
' +
@@ -533,7 +533,7 @@ export function main() {
}));
it('should support querying by multiple var bindings',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var template = '' +
'
' +
'
' +
@@ -553,7 +553,7 @@ export function main() {
}));
it('should support dynamically inserted directives',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var template =
'' +
'
' +
@@ -579,7 +579,7 @@ export function main() {
}));
it('should contain all the elements in the light dom with the given var binding',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var template = '' +
'' +
'
{{item}}
' +
@@ -603,7 +603,7 @@ export function main() {
}));
it('should contain all the elements in the light dom even if they get projected',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var template = '
' +
'
' +
' ';
@@ -620,7 +620,7 @@ export function main() {
}));
it('should support querying the view by using a view query',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var template = '
';
tcb.overrideTemplate(MyComp0, template)
@@ -636,7 +636,7 @@ export function main() {
}));
it('should contain all child directives in the view dom',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var template = '
';
tcb.overrideTemplate(MyComp0, template)
@@ -659,7 +659,7 @@ export function main() {
describe("querying in the view", () => {
it('should contain all the elements in the view with that have the given directive',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var template = '
';
tcb.overrideTemplate(MyComp0, template)
@@ -676,7 +676,7 @@ export function main() {
}));
it('should not include directive present on the host element',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var template = '
';
tcb.overrideTemplate(MyComp0, template)
@@ -693,7 +693,7 @@ export function main() {
}));
it('should reflect changes in the component',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var template = '
';
tcb.overrideTemplate(MyComp0, template)
@@ -716,7 +716,7 @@ export function main() {
}));
it('should not be affected by other changes in the component',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var template = '
';
tcb.overrideTemplate(MyComp0, template)
@@ -741,7 +741,7 @@ export function main() {
it('should maintain directives in pre-order depth-first DOM order after dynamic insertion',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var template = '
';
tcb.overrideTemplate(MyComp0, template)
@@ -764,7 +764,7 @@ export function main() {
}));
it('should maintain directives in pre-order depth-first DOM order after dynamic insertion',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var template = '
';
tcb.overrideTemplate(MyComp0, template)
@@ -788,7 +788,7 @@ export function main() {
}));
it('should handle long ngFor cycles',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var template = '
';
tcb.overrideTemplate(MyComp0, template)
@@ -810,7 +810,7 @@ export function main() {
}));
it('should support more than three queries',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var template = '
';
tcb.overrideTemplate(MyComp0, template)
diff --git a/modules/@angular/core/test/linker/reflector_component_resolver_spec.ts b/modules/@angular/core/test/linker/reflector_component_resolver_spec.ts
index 2f4328ef6c..495ab836ff 100644
--- a/modules/@angular/core/test/linker/reflector_component_resolver_spec.ts
+++ b/modules/@angular/core/test/linker/reflector_component_resolver_spec.ts
@@ -27,13 +27,13 @@ export function main() {
beforeEachProviders(() => [{provide: ComponentResolver, useClass: ReflectorComponentResolver}]);
- beforeEach(inject([ComponentResolver], (_compiler: any /** TODO #9100 */) => {
+ beforeEach(inject([ComponentResolver], (_compiler: ComponentResolver) => {
someCompFactory = new ComponentFactory(null, null, null);
reflector.registerType(SomeComponent, new ReflectionInfo([someCompFactory]));
}));
it('should read the template from an annotation',
- inject([AsyncTestCompleter, ComponentResolver], (async: any /** TODO #9100 */, compiler: ComponentResolver) => {
+ inject([AsyncTestCompleter, ComponentResolver], (async: AsyncTestCompleter, compiler: ComponentResolver) => {
compiler.resolveComponent(SomeComponent)
.then((compFactory: ComponentFactory
) => {
expect(compFactory).toBe(someCompFactory);
@@ -43,7 +43,7 @@ export function main() {
}));
it('should throw when given a string',
- inject([AsyncTestCompleter, ComponentResolver], (async: any /** TODO #9100 */, compiler: ComponentResolver) => {
+ inject([AsyncTestCompleter, ComponentResolver], (async: AsyncTestCompleter, compiler: ComponentResolver) => {
compiler.resolveComponent("someString")
.catch((e) => {
expect(e.message).toContain("Cannot resolve component using 'someString'.")
diff --git a/modules/@angular/core/test/linker/regression_integration_spec.ts b/modules/@angular/core/test/linker/regression_integration_spec.ts
index c5258f3a22..2023e5e37b 100644
--- a/modules/@angular/core/test/linker/regression_integration_spec.ts
+++ b/modules/@angular/core/test/linker/regression_integration_spec.ts
@@ -54,7 +54,7 @@ function declareTests(isJit: boolean) {
beforeEachProviders(() => [{provide: PLATFORM_PIPES, useValue: [PlatformPipe], multi: true}]);
it('should overwrite them by custom pipes',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(
MyComp1, new ViewMetadata({template: '{{true | somePipe}}', pipes: [CustomPipe]}))
.createAsync(MyComp1)
@@ -69,7 +69,7 @@ function declareTests(isJit: boolean) {
describe('expressions', () => {
it('should evaluate conditional and boolean operators with right precedence - #8244',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MyComp1,
new ViewMetadata({template: `{{'red' + (true ? ' border' : '')}}`}))
.createAsync(MyComp1)
@@ -83,7 +83,7 @@ function declareTests(isJit: boolean) {
if (!IS_DART) {
it('should evaluate conditional and unary operators with right precedence - #8235',
inject([TestComponentBuilder, AsyncTestCompleter],
- (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MyComp1, new ViewMetadata({template: `{{!null?.length}}`}))
.createAsync(MyComp1)
.then((fixture) => {
@@ -103,7 +103,7 @@ function declareTests(isJit: boolean) {
}
it('should support providers with an OpaqueToken that contains a `.` in the name',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var token = new OpaqueToken('a.b');
var tokenValue = 1;
createInjector(tcb, [{provide: token, useValue: tokenValue}])
@@ -114,7 +114,7 @@ function declareTests(isJit: boolean) {
}));
it('should support providers with string token with a `.` in it',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var token = 'a.b';
var tokenValue = 1;
createInjector(tcb, [{provide: token, useValue: tokenValue}])
@@ -125,7 +125,7 @@ function declareTests(isJit: boolean) {
}));
it('should support providers with an anonymous function',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var token = () => true;
var tokenValue = 1;
createInjector(tcb, [{provide: token, useValue: tokenValue}])
@@ -136,7 +136,7 @@ function declareTests(isJit: boolean) {
}));
it('should support providers with an OpaqueToken that has a StringMap as value',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var token1 = new OpaqueToken('someToken');
var token2 = new OpaqueToken('someToken');
var tokenValue1 = {'a': 1};
@@ -153,7 +153,7 @@ function declareTests(isJit: boolean) {
});
it('should allow logging a previous elements class binding via interpolation',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideTemplate(MyComp1, `Class: {{el.className}}
`)
.createAsync(MyComp1)
.then((fixture) => {
@@ -164,7 +164,7 @@ function declareTests(isJit: boolean) {
}));
it('should support ngClass before a component and content projection inside of an ngIf',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(
MyComp1, new ViewMetadata({
template: `AB C`,
diff --git a/modules/@angular/core/test/linker/view_injector_integration_spec.ts b/modules/@angular/core/test/linker/view_injector_integration_spec.ts
index 10e2abe35f..9b8a01a2e6 100644
--- a/modules/@angular/core/test/linker/view_injector_integration_spec.ts
+++ b/modules/@angular/core/test/linker/view_injector_integration_spec.ts
@@ -289,7 +289,7 @@ export function main() {
beforeEachProviders(() => [{provide: "appService", useValue: 'appService'}]);
- beforeEach(inject([TestComponentBuilder], (_tcb: any /** TODO #9100 */) => { tcb = _tcb; }));
+ beforeEach(inject([TestComponentBuilder], (_tcb: TestComponentBuilder) => { tcb = _tcb; }));
describe("injection", () => {
it("should instantiate directives that have no dependencies", fakeAsync(() => {
diff --git a/modules/@angular/core/test/metadata/di_spec.ts b/modules/@angular/core/test/metadata/di_spec.ts
index 55a1295fa8..a16101850f 100644
--- a/modules/@angular/core/test/metadata/di_spec.ts
+++ b/modules/@angular/core/test/metadata/di_spec.ts
@@ -25,7 +25,7 @@ import {
export function main() {
describe('ViewChild', () => {
it('should support type selector',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(ViewChildTypeSelectorComponent,
new ViewMetadata(
{template: ` `, directives: [Simple]}))
@@ -38,7 +38,7 @@ export function main() {
});
}));
it('should support string selector',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(
ViewChildStringSelectorComponent,
new ViewMetadata({template: ` `, directives: [Simple]}))
@@ -52,7 +52,7 @@ export function main() {
});
describe('ViewChildren', () => {
it('should support type selector',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(ViewChildrenTypeSelectorComponent,
new ViewMetadata({template: ` `, directives: [Simple]}))
.createAsync(ViewChildrenTypeSelectorComponent)
@@ -64,7 +64,7 @@ export function main() {
});
}));
it('should support string selector',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(
ViewChildrenStringSelectorComponent,
new ViewMetadata({template: ` `, directives: [Simple]}))
diff --git a/modules/@angular/core/test/testability/testability_spec.ts b/modules/@angular/core/test/testability/testability_spec.ts
index 5bf0cc6139..719c562b7a 100644
--- a/modules/@angular/core/test/testability/testability_spec.ts
+++ b/modules/@angular/core/test/testability/testability_spec.ts
@@ -63,7 +63,7 @@ export function main() {
() => { expect(testability.getPendingRequestCount()).toEqual(0); });
it('should fire whenstable callbacks if pending count is 0',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
testability.whenStable(execute);
microTask(() => {
expect(execute).toHaveBeenCalled();
@@ -77,7 +77,7 @@ export function main() {
});
it('should not call whenstable callbacks when there are pending counts',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
testability.increasePendingRequestCount();
testability.increasePendingRequestCount();
testability.whenStable(execute);
@@ -94,7 +94,7 @@ export function main() {
}));
it('should fire whenstable callbacks when pending drops to 0',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
testability.increasePendingRequestCount();
testability.whenStable(execute);
@@ -118,7 +118,7 @@ export function main() {
});
it('should fire whenstable callbacks with didWork if pending count is 0',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
testability.whenStable(execute);
microTask(() => {
expect(execute).toHaveBeenCalledWith(false);
@@ -127,7 +127,7 @@ export function main() {
}));
it('should fire whenstable callbacks with didWork when pending drops to 0',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
testability.increasePendingRequestCount();
testability.whenStable(execute);
@@ -149,7 +149,7 @@ export function main() {
describe('NgZone callback logic', () => {
it('should fire whenstable callback if event is already finished',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
ngZone.unstable();
ngZone.stable();
testability.whenStable(execute);
@@ -169,7 +169,7 @@ export function main() {
});
it('should fire whenstable callback when event finishes',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
ngZone.unstable();
testability.whenStable(execute);
@@ -193,7 +193,7 @@ export function main() {
});
it('should not fire whenstable callback when event did not finish',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
ngZone.unstable();
testability.increasePendingRequestCount();
testability.whenStable(execute);
@@ -215,7 +215,7 @@ export function main() {
}));
it('should not fire whenstable callback when there are pending counts',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
ngZone.unstable();
testability.increasePendingRequestCount();
testability.increasePendingRequestCount();
@@ -243,7 +243,7 @@ export function main() {
}));
it('should fire whenstable callback with didWork if event is already finished',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
ngZone.unstable();
ngZone.stable();
testability.whenStable(execute);
@@ -260,7 +260,7 @@ export function main() {
}));
it('should fire whenstable callback with didwork when event finishes',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
ngZone.unstable();
testability.whenStable(execute);
diff --git a/modules/@angular/core/test/zone/ng_zone_spec.ts b/modules/@angular/core/test/zone/ng_zone_spec.ts
index 4061b9cb36..ab1b894034 100644
--- a/modules/@angular/core/test/zone/ng_zone_spec.ts
+++ b/modules/@angular/core/test/zone/ng_zone_spec.ts
@@ -69,7 +69,7 @@ function runNgZoneNoLog(fn: () => any) {
export function main() {
describe("NgZone", () => {
- function createZone(enableLongStackTrace: any /** TODO #9100 */) {
+ function createZone(enableLongStackTrace: boolean) {
return new NgZone({enableLongStackTrace: enableLongStackTrace});
}
@@ -90,7 +90,7 @@ export function main() {
commonTests();
- it('should produce long stack traces', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should produce long stack traces', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
macroTask(() => {
var c: PromiseCompleter = PromiseWrapper.completer();
@@ -112,7 +112,7 @@ export function main() {
}), testTimeout);
it('should produce long stack traces (when using microtasks)',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
macroTask(() => {
var c: PromiseCompleter = PromiseWrapper.completer();
@@ -145,7 +145,7 @@ export function main() {
commonTests();
- it('should disable long stack traces', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should disable long stack traces', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
macroTask(() => {
var c: PromiseCompleter = PromiseWrapper.completer();
@@ -213,13 +213,13 @@ function commonTests() {
});
describe('run', () => {
- it('should return the body return value from run', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should return the body return value from run', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
macroTask(() => { expect(_zone.run(() => { return 6; })).toEqual(6); });
macroTask(() => { async.done(); });
}), testTimeout);
- it('should call onUnstable and onMicrotaskEmpty', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should call onUnstable and onMicrotaskEmpty', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
runNgZoneNoLog(() => macroTask(_log.fn('run')));
macroTask(() => {
expect(_log.result()).toEqual('onUnstable; run; onMicrotaskEmpty; onStable');
@@ -227,7 +227,7 @@ function commonTests() {
});
}), testTimeout);
- it('should call onStable once at the end of event', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should call onStable once at the end of event', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
// The test is set up in a way that causes the zone loop to run onMicrotaskEmpty twice
// then verified that onStable is only called once at the end
@@ -251,7 +251,7 @@ function commonTests() {
}, resultTimer);
}), testTimeout);
- it('should call standalone onStable', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should call standalone onStable', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
runNgZoneNoLog(() => macroTask(_log.fn('run')));
macroTask(() => {
@@ -261,7 +261,7 @@ function commonTests() {
}), testTimeout);
xit('should run subscriber listeners in the subscription zone (outside)',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
// Each subscriber fires a microtask outside the Angular zone. The test
// then verifies that those microtasks do not cause additional digests.
@@ -298,7 +298,7 @@ function commonTests() {
}), testTimeout);
it('should run subscriber listeners in the subscription zone (inside)',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
runNgZoneNoLog(() => macroTask(_log.fn('run')));
// the only practical use-case to run a callback inside the zone is
@@ -320,7 +320,7 @@ function commonTests() {
}), testTimeout);
it('should run async tasks scheduled inside onStable outside Angular zone',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
runNgZoneNoLog(() => macroTask(_log.fn('run')));
ObservableWrapper.subscribe(_zone.onStable, (_) => {
@@ -336,7 +336,7 @@ function commonTests() {
}), testTimeout);
it('should call onUnstable once before a turn and onMicrotaskEmpty once after the turn',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
runNgZoneNoLog(() => {
macroTask(() => {
_log.add('run start');
@@ -354,7 +354,7 @@ function commonTests() {
}), testTimeout);
it('should not run onUnstable and onMicrotaskEmpty for nested Zone.run',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
runNgZoneNoLog(() => {
macroTask(() => {
_log.add('start run');
@@ -375,7 +375,7 @@ function commonTests() {
}), testTimeout);
it('should not run onUnstable and onMicrotaskEmpty for nested Zone.run invoked from onMicrotaskEmpty',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
runNgZoneNoLog(() => macroTask(_log.fn('start run')));
ObservableWrapper.subscribe(_zone.onMicrotaskEmpty, (_) => {
@@ -393,7 +393,7 @@ function commonTests() {
}), testTimeout);
it('should call onUnstable and onMicrotaskEmpty before and after each top-level run',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
runNgZoneNoLog(() => macroTask(_log.fn('run1')));
runNgZoneNoLog(() => macroTask(_log.fn('run2')));
@@ -406,7 +406,7 @@ function commonTests() {
}), testTimeout);
it('should call onUnstable and onMicrotaskEmpty before and after each turn',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var a: PromiseCompleter;
var b: PromiseCompleter;
@@ -437,7 +437,7 @@ function commonTests() {
}), testTimeout);
it('should run a function outside of the angular zone',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
macroTask(() => { _zone.runOutsideAngular(_log.fn('run')); });
macroTask(() => {
@@ -447,7 +447,7 @@ function commonTests() {
}), testTimeout);
it('should call onUnstable and onMicrotaskEmpty when an inner microtask is scheduled from outside angular',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var completer: PromiseCompleter;
macroTask(() => {
@@ -484,7 +484,7 @@ function commonTests() {
it('should call onUnstable only before executing a microtask scheduled in onMicrotaskEmpty ' +
'and not onMicrotaskEmpty after executing the task',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
runNgZoneNoLog(() => macroTask(_log.fn('run')));
var ran = false;
@@ -516,7 +516,7 @@ function commonTests() {
it('should call onUnstable and onMicrotaskEmpty for a scheduleMicroTask in onMicrotaskEmpty triggered by ' +
'a scheduleMicroTask in run',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
runNgZoneNoLog(() => {
macroTask(() => {
_log.add('scheduleMicroTask');
@@ -551,7 +551,7 @@ function commonTests() {
}), testTimeout);
it('should execute promises scheduled in onUnstable before promises scheduled in run',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
runNgZoneNoLog(() => {
macroTask(() => {
_log.add('run start');
@@ -607,7 +607,7 @@ function commonTests() {
}), testTimeout);
it('should call onUnstable and onMicrotaskEmpty before and after each turn, respectively',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var completerA: PromiseCompleter;
var completerB: PromiseCompleter;
@@ -639,7 +639,7 @@ function commonTests() {
}), testTimeout);
it('should call onUnstable and onMicrotaskEmpty before and after (respectively) all turns in a chain',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
runNgZoneNoLog(() => {
macroTask(() => {
_log.add('run start');
@@ -660,7 +660,7 @@ function commonTests() {
}), testTimeout);
it('should call onUnstable and onMicrotaskEmpty for promises created outside of run body',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var promise: Promise;
runNgZoneNoLog(() => {
@@ -685,7 +685,7 @@ function commonTests() {
describe('exceptions', () => {
it('should call the on error callback when it is invoked via zone.runGuarded',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
macroTask(() => {
var exception = new BaseException('sync');
@@ -698,7 +698,7 @@ function commonTests() {
}), testTimeout);
it('should not call the on error callback but rethrow when it is invoked via zone.run',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
macroTask(() => {
var exception = new BaseException('sync');
expect(() => _zone.run(() => { throw exception; })).toThrowError('sync');
@@ -708,7 +708,7 @@ function commonTests() {
});
}), testTimeout);
- it('should call onError for errors from microtasks', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should call onError for errors from microtasks', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var exception = new BaseException('async');
macroTask(() => { _zone.run(() => { scheduleMicroTask(() => { throw exception; }); }); });
diff --git a/modules/@angular/facade/test/async_spec.ts b/modules/@angular/facade/test/async_spec.ts
index 4c7a113878..5fe558dc9b 100644
--- a/modules/@angular/facade/test/async_spec.ts
+++ b/modules/@angular/facade/test/async_spec.ts
@@ -18,7 +18,7 @@ export function main() {
beforeEach(() => { emitter = new EventEmitter(); });
- it("should call the next callback", inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it("should call the next callback", inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
ObservableWrapper.subscribe(emitter, (value) => {
expect(value).toEqual(99);
async.done();
@@ -27,7 +27,7 @@ export function main() {
ObservableWrapper.callEmit(emitter, 99);
}));
- it("should call the throw callback", inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it("should call the throw callback", inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
ObservableWrapper.subscribe(emitter, (_) => {}, (error) => {
expect(error).toEqual("Boom");
async.done();
@@ -35,12 +35,12 @@ export function main() {
ObservableWrapper.callError(emitter, "Boom");
}));
- it("should work when no throw callback is provided", inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it("should work when no throw callback is provided", inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
ObservableWrapper.subscribe(emitter, (_) => {}, (_) => { async.done(); });
ObservableWrapper.callError(emitter, "Boom");
}));
- it("should call the return callback", inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it("should call the return callback", inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
ObservableWrapper.subscribe(emitter, (_) => {}, (_) => {}, () => { async.done(); });
ObservableWrapper.callComplete(emitter);
@@ -57,7 +57,7 @@ export function main() {
// Makes Edge to disconnect when running the full unit test campaign
// TODO: remove when issue is solved: https://github.com/angular/angular/issues/4756
if (!browserDetection.isEdge) {
- it("delivers next and error events synchronously", inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it("delivers next and error events synchronously", inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
let log: any[] /** TODO #9100 */ = [];
ObservableWrapper.subscribe(emitter,
(x) => {
@@ -96,7 +96,7 @@ export function main() {
});
}
- it('delivers events asynchronously when forced to async mode', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('delivers events asynchronously when forced to async mode', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var e = new EventEmitter(true);
var log: any[] /** TODO #9100 */ = [];
ObservableWrapper.subscribe(e, (x) => {
@@ -149,7 +149,7 @@ export function main() {
// See ECMAScript 6 Spec 25.4.4.1
describe("PromiseWrapper", () => {
describe("#all", () => {
- it("should combine lists of Promises", inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it("should combine lists of Promises", inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var one = PromiseWrapper.completer();
var two = PromiseWrapper.completer();
@@ -173,7 +173,7 @@ export function main() {
[null, true, false, 10, 'thing', {}, []].forEach(abruptCompletion => {
it(`should treat "${abruptCompletion}" as an "abrupt completion"`,
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var one = PromiseWrapper.completer();
var all = PromiseWrapper.all([one.promise, abruptCompletion]);
diff --git a/modules/@angular/http/test/backends/xhr_backend_spec.ts b/modules/@angular/http/test/backends/xhr_backend_spec.ts
index 0667a77fa1..016221f76d 100644
--- a/modules/@angular/http/test/backends/xhr_backend_spec.ts
+++ b/modules/@angular/http/test/backends/xhr_backend_spec.ts
@@ -385,7 +385,7 @@ export function main() {
existingXHRs[0].dispatchEvent('load');
}));
- it('should set ok to true on 200 return', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should set ok to true on 200 return', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var statusCode = 200;
var connection = new XHRConnection(sampleRequest, new MockBrowserXHR(),
new ResponseOptions({status: statusCode}));
@@ -399,7 +399,7 @@ export function main() {
existingXHRs[0].dispatchEvent('load');
}));
- it('should set ok to false on 300 return', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should set ok to false on 300 return', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var statusCode = 300;
var connection = new XHRConnection(sampleRequest, new MockBrowserXHR(),
new ResponseOptions({status: statusCode}));
diff --git a/modules/@angular/platform-browser/test/browser/bootstrap_spec.ts b/modules/@angular/platform-browser/test/browser/bootstrap_spec.ts
index d6a9657cc2..433b09db45 100644
--- a/modules/@angular/platform-browser/test/browser/bootstrap_spec.ts
+++ b/modules/@angular/platform-browser/test/browser/bootstrap_spec.ts
@@ -64,7 +64,7 @@ class HelloRootCmp3 {
class HelloRootCmp4 {
appRef: any /** TODO #9100 */;
- constructor(@Inject(ApplicationRef) appRef: any /** TODO #9100 */) { this.appRef = appRef; }
+ constructor(@Inject(ApplicationRef) appRef: ApplicationRef) { this.appRef = appRef; }
}
@Component({selector: 'hello-app'})
@@ -78,7 +78,7 @@ class HelloRootDirectiveIsNotCmp {
@Component({selector: 'hello-app', template: ''})
class HelloOnDestroyTickCmp implements OnDestroy {
appRef: ApplicationRef;
- constructor(@Inject(ApplicationRef) appRef: any /** TODO #9100 */) { this.appRef = appRef; }
+ constructor(@Inject(ApplicationRef) appRef: ApplicationRef) { this.appRef = appRef; }
ngOnDestroy(): void { this.appRef.tick(); }
}
@@ -129,7 +129,7 @@ export function main() {
expect(logger.res.join("")).toContain("Could not compile");
});
- it('should throw if no element is found', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should throw if no element is found', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var logger = new _ArrayLogger();
var exceptionHandler = new ExceptionHandler(logger, false);
@@ -144,7 +144,7 @@ export function main() {
if (getDOM().supportsDOMEvents()) {
it('should forward the error to promise when bootstrap fails',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
// Skip for dart since it causes a confusing error message in console when test passes.
var logger = new _ArrayLogger();
var exceptionHandler = new ExceptionHandler(logger, false);
@@ -159,7 +159,7 @@ export function main() {
}));
it('should invoke the default exception handler when bootstrap fails',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var logger = new _ArrayLogger();
var exceptionHandler = new ExceptionHandler(logger, false);
@@ -179,7 +179,7 @@ export function main() {
expect(refPromise).not.toBe(null);
});
- it('should display hello world', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should display hello world', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var refPromise = bootstrap(HelloRootCmp, testProviders);
refPromise.then((ref) => {
expect(el).toHaveText('hello world!');
@@ -187,7 +187,7 @@ export function main() {
});
}));
- it('should support multiple calls to bootstrap', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should support multiple calls to bootstrap', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var refPromise1 = bootstrap(HelloRootCmp, testProviders);
var refPromise2 = bootstrap(HelloRootCmp2, testProviders);
PromiseWrapper.all([refPromise1, refPromise2])
@@ -199,7 +199,7 @@ export function main() {
}));
it('should not crash if change detection is invoked when the root component is disposed',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
bootstrap(HelloOnDestroyTickCmp, testProviders)
.then((ref) => {
expect(() => ref.destroy()).not.toThrow();
@@ -208,7 +208,7 @@ export function main() {
}));
it('should unregister change detectors when components are disposed',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var platform = createPlatform(ReflectiveInjector.resolveAndCreate(BROWSER_PLATFORM_PROVIDERS));
var app =
ReflectiveInjector.resolveAndCreate([BROWSER_APP_PROVIDERS, BROWSER_APP_COMPILER_PROVIDERS, testProviders],
@@ -223,7 +223,7 @@ export function main() {
}));
it("should make the provided bindings available to the application component",
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var refPromise = bootstrap(
HelloRootCmp3, [testProviders, {provide: "appBinding", useValue: "BoundValue"}]);
@@ -234,7 +234,7 @@ export function main() {
}));
it("should avoid cyclic dependencies when root component requires Lifecycle through DI",
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var refPromise = bootstrap(HelloRootCmp4, testProviders);
refPromise.then((ref) => {
@@ -264,7 +264,7 @@ export function main() {
}));
it('should register each application with the testability registry',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var refPromise1: Promise> = bootstrap(HelloRootCmp, testProviders);
var refPromise2: Promise> = bootstrap(HelloRootCmp2, testProviders);
diff --git a/modules/@angular/platform-browser/test/testing_public_browser_spec.ts b/modules/@angular/platform-browser/test/testing_public_browser_spec.ts
index e33bdcfeec..60d27ef900 100644
--- a/modules/@angular/platform-browser/test/testing_public_browser_spec.ts
+++ b/modules/@angular/platform-browser/test/testing_public_browser_spec.ts
@@ -123,7 +123,7 @@ export function main() {
beforeEachProviders(() => [{provide: FancyService, useValue: new FancyService()}]);
it('provides a real XHR instance',
- inject([XHR], (xhr: any /** TODO #9100 */) => { expect(xhr).toBeAnInstanceOf(XHRImpl); }));
+ inject([XHR], (xhr: XHR) => { expect(xhr).toBeAnInstanceOf(XHRImpl); }));
it('should allow the use of fakeAsync', fakeAsync(inject([FancyService], (service: any /** TODO #9100 */) => {
var value: any /** TODO #9100 */;
@@ -156,7 +156,7 @@ export function main() {
it('should fail with an error from a promise',
async(inject([TestComponentBuilder],
- (tcb: any /** TODO #9100 */) => { return tcb.createAsync(BadTemplateUrl); })));
+ (tcb: TestComponentBuilder) => { return tcb.createAsync(BadTemplateUrl); })));
itPromise.then(() => { done.fail('Expected test to fail, but it did not'); }, (err) => {
expect(err).toEqual('Uncaught (in promise): Failed to load non-existant.html');
diff --git a/modules/@angular/platform-browser/test/web_workers/shared/message_bus_spec.ts b/modules/@angular/platform-browser/test/web_workers/shared/message_bus_spec.ts
index 1d1d54f85a..7d5c980b61 100644
--- a/modules/@angular/platform-browser/test/web_workers/shared/message_bus_spec.ts
+++ b/modules/@angular/platform-browser/test/web_workers/shared/message_bus_spec.ts
@@ -24,7 +24,7 @@ export function main() {
beforeEach(() => { bus = createConnectedMessageBus(); });
it("should pass messages in the same channel from sink to source",
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
const CHANNEL = "CHANNEL 1";
const MESSAGE = "Test message";
bus.initChannel(CHANNEL, false);
@@ -38,7 +38,7 @@ export function main() {
ObservableWrapper.callEmit(toEmitter, MESSAGE);
}));
- it("should broadcast", inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it("should broadcast", inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
const CHANNEL = "CHANNEL 1";
const MESSAGE = "TESTING";
const NUM_LISTENERS = 2;
@@ -62,7 +62,7 @@ export function main() {
ObservableWrapper.callEmit(toEmitter, MESSAGE);
}));
- it("should keep channels independent", inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it("should keep channels independent", inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
const CHANNEL_ONE = "CHANNEL 1";
const CHANNEL_TWO = "CHANNEL 2";
const MESSAGE_ONE = "This is a message on CHANNEL 1";
@@ -114,7 +114,7 @@ export function main() {
it("should buffer messages and wait for the zone to exit before sending",
withProviders(() => [{provide: NgZone, useClass: MockNgZone}])
.inject([AsyncTestCompleter, NgZone],
- (async: any /** TODO #9100 */, zone: MockNgZone) => {
+ (async: AsyncTestCompleter, zone: MockNgZone) => {
bus = createConnectedMessageBus();
setup(true, zone);
@@ -137,7 +137,7 @@ export function main() {
500);
it("should send messages immediatly when run outside the zone",
- inject([AsyncTestCompleter, NgZone], (async: any /** TODO #9100 */, zone: MockNgZone) => {
+ inject([AsyncTestCompleter, NgZone], (async: AsyncTestCompleter, zone: MockNgZone) => {
bus = createConnectedMessageBus();
setup(false, zone);
diff --git a/modules/@angular/platform-browser/test/web_workers/shared/service_message_broker_spec.ts b/modules/@angular/platform-browser/test/web_workers/shared/service_message_broker_spec.ts
index c068944b7c..6da089019c 100644
--- a/modules/@angular/platform-browser/test/web_workers/shared/service_message_broker_spec.ts
+++ b/modules/@angular/platform-browser/test/web_workers/shared/service_message_broker_spec.ts
@@ -38,7 +38,7 @@ export function main() {
messageBuses.worker.initChannel(CHANNEL);
});
it("should call registered method with correct arguments",
- inject([Serializer], (serializer: any /** TODO #9100 */) => {
+ inject([Serializer], (serializer: Serializer) => {
var broker = new ServiceMessageBroker_(messageBuses.ui, serializer, CHANNEL);
broker.registerMethod(TEST_METHOD, [PRIMITIVE, PRIMITIVE], (arg1, arg2) => {
expect(arg1).toEqual(PASSED_ARG_1);
@@ -51,7 +51,7 @@ export function main() {
// TODO(pkozlowski): this fails only in Edge with
// "No provider for RenderStore! (Serializer -> RenderStore)"
if (!browserDetection.isEdge) {
- it("should return promises to the worker", inject([Serializer], (serializer: any /** TODO #9100 */) => {
+ it("should return promises to the worker", inject([Serializer], (serializer: Serializer) => {
var broker = new ServiceMessageBroker_(messageBuses.ui, serializer, CHANNEL);
broker.registerMethod(TEST_METHOD, [PRIMITIVE], (arg1) => {
expect(arg1).toEqual(PASSED_ARG_1);
diff --git a/modules/@angular/platform-browser/test/web_workers/worker/platform_location_spec.ts b/modules/@angular/platform-browser/test/web_workers/worker/platform_location_spec.ts
index 44323c3d62..65f6a302f0 100644
--- a/modules/@angular/platform-browser/test/web_workers/worker/platform_location_spec.ts
+++ b/modules/@angular/platform-browser/test/web_workers/worker/platform_location_spec.ts
@@ -81,7 +81,7 @@ export function main() {
expect(() => platformLocation.pathname = "TEST").toThrowError();
});
- it("should send pathname to render thread", inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it("should send pathname to render thread", inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
let platformLocation = createWebWorkerPlatformLocation(TEST_LOCATION);
platformLocation.init().then((_) => {
let PATHNAME = "/test";
diff --git a/modules/@angular/platform-browser/test/web_workers/worker/renderer_integration_spec.ts b/modules/@angular/platform-browser/test/web_workers/worker/renderer_integration_spec.ts
index 708dbc89af..139793c48a 100644
--- a/modules/@angular/platform-browser/test/web_workers/worker/renderer_integration_spec.ts
+++ b/modules/@angular/platform-browser/test/web_workers/worker/renderer_integration_spec.ts
@@ -100,7 +100,7 @@ export function main() {
{provide: RenderStore, useValue: workerRenderStore},
{
provide: RootRenderer,
- useFactory: (workerSerializer: any /** TODO #9100 */) => {
+ useFactory: (workerSerializer: Serializer) => {
return createWorkerRenderer(workerSerializer, uiSerializer, domRootRenderer,
uiRenderStore, workerRenderStore);
},
@@ -119,7 +119,7 @@ export function main() {
}
it('should update text nodes',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MyComp2, new ViewMetadata({template: '{{ctxProp}}
'}))
.createAsync(MyComp2)
.then((fixture) => {
@@ -135,7 +135,7 @@ export function main() {
}));
it('should update any element property/attributes/class/style(s) independent of the compilation on the root element and other elements',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MyComp2, new ViewMetadata(
{template: ' '}))
.createAsync(MyComp2)
@@ -170,7 +170,7 @@ export function main() {
}));
it('should update any template comment property/attributes',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
var tpl = ' ';
tcb.overrideView(MyComp2, new ViewMetadata({template: tpl, directives: [NgIf]}))
@@ -185,7 +185,7 @@ export function main() {
}));
it('should add and remove fragments',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MyComp2, new ViewMetadata({
template: 'hello ',
directives: [NgIf]
@@ -210,7 +210,7 @@ export function main() {
if (getDOM().supportsDOMEvents()) {
it('should call actions on the element',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MyComp2, new ViewMetadata({template: ' '}))
.createAsync(MyComp2)
.then((fixture) => {
@@ -225,7 +225,7 @@ export function main() {
}));
it('should listen to events',
- inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: any /** TODO #9100 */) => {
+ inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async: AsyncTestCompleter) => {
tcb.overrideView(MyComp2,
new ViewMetadata({template: ' '}))
.createAsync(MyComp2)
diff --git a/modules/@angular/platform-browser/test/xhr/xhr_cache_spec.ts b/modules/@angular/platform-browser/test/xhr/xhr_cache_spec.ts
index cbc3634c4d..3601ceec7d 100644
--- a/modules/@angular/platform-browser/test/xhr/xhr_cache_spec.ts
+++ b/modules/@angular/platform-browser/test/xhr/xhr_cache_spec.ts
@@ -43,7 +43,7 @@ export function main() {
});
it('should resolve the Promise with the cached file content on success',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
setTemplateCache({'test.html': 'Hello
'});
xhr = new CachedXHR();
xhr.get('test.html')
@@ -53,7 +53,7 @@ export function main() {
});
}));
- it('should reject the Promise on failure', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should reject the Promise on failure', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
xhr = new CachedXHR();
xhr.get('unknown.html')
.then((text) => { throw new BaseException('Not expected to succeed.'); })
diff --git a/modules/@angular/platform-browser/test/xhr/xhr_impl_spec.ts b/modules/@angular/platform-browser/test/xhr/xhr_impl_spec.ts
index 8b1290ec7e..5eaa3e3f60 100644
--- a/modules/@angular/platform-browser/test/xhr/xhr_impl_spec.ts
+++ b/modules/@angular/platform-browser/test/xhr/xhr_impl_spec.ts
@@ -28,14 +28,14 @@ export function main() {
beforeEach(() => { xhr = new XHRImpl(); });
it('should resolve the Promise with the file content on success',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
xhr.get(url200).then((text) => {
expect(text.trim()).toEqual('hey
');
async.done();
});
}), 10000);
- it('should reject the Promise on failure', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should reject the Promise on failure', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
PromiseWrapper.catchError(xhr.get(url404), (e) => {
expect(e).toEqual(`Failed to load ${url404}`);
async.done();
diff --git a/modules/@angular/router-deprecated/test/directives/router_link_spec.ts b/modules/@angular/router-deprecated/test/directives/router_link_spec.ts
index 4a7bd94365..522666c955 100644
--- a/modules/@angular/router-deprecated/test/directives/router_link_spec.ts
+++ b/modules/@angular/router-deprecated/test/directives/router_link_spec.ts
@@ -43,7 +43,7 @@ export function main() {
beforeEach(inject([TestComponentBuilder], (tcBuilder: any /** TODO #9100 */) => { tcb = tcBuilder; }));
- it('should update a[href] attribute', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should update a[href] attribute', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
tcb.createAsync(TestComponent)
.then((testComponent) => {
@@ -57,7 +57,7 @@ export function main() {
it('should call router.navigate when a link is clicked',
- inject([AsyncTestCompleter, Router], (async: any /** TODO #9100 */, router: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter, Router], (async: AsyncTestCompleter, router: any /** TODO #9100 */) => {
tcb.createAsync(TestComponent)
.then((testComponent) => {
@@ -71,7 +71,7 @@ export function main() {
}));
it('should call router.navigate when a link is clicked if target is _self',
- inject([AsyncTestCompleter, Router], (async: any /** TODO #9100 */, router: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter, Router], (async: AsyncTestCompleter, router: any /** TODO #9100 */) => {
tcb.createAsync(TestComponent)
.then((testComponent) => {
@@ -84,7 +84,7 @@ export function main() {
}));
it('should NOT call router.navigate when a link is clicked if target is set to other than _self',
- inject([AsyncTestCompleter, Router], (async: any /** TODO #9100 */, router: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter, Router], (async: AsyncTestCompleter, router: any /** TODO #9100 */) => {
tcb.createAsync(TestComponent)
.then((testComponent) => {
diff --git a/modules/@angular/router-deprecated/test/integration/bootstrap_spec.ts b/modules/@angular/router-deprecated/test/integration/bootstrap_spec.ts
index c1204cf835..d30bc1a35f 100644
--- a/modules/@angular/router-deprecated/test/integration/bootstrap_spec.ts
+++ b/modules/@angular/router-deprecated/test/integration/bootstrap_spec.ts
@@ -56,7 +56,7 @@ export function main() {
// do not refactor out the `bootstrap` functionality. We still want to
// keep this test around so we can ensure that bootstrap a router works
- it('should bootstrap a simple app', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should bootstrap a simple app', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var fakeDoc = getDOM().createHtmlDocument();
var el = getDOM().createElement('app-cmp', fakeDoc);
getDOM().appendChild(fakeDoc.body, el);
@@ -83,7 +83,7 @@ export function main() {
beforeEachProviders(() => [{provide: ROUTER_PRIMARY_COMPONENT, useValue: BrokenAppCmp}]);
it('should rethrow exceptions from component constructors',
- inject([AsyncTestCompleter, TestComponentBuilder], (async: any /** TODO #9100 */, tcb: TestComponentBuilder) => {
+ inject([AsyncTestCompleter, TestComponentBuilder], (async: AsyncTestCompleter, tcb: TestComponentBuilder) => {
tcb.createAsync(AppCmp).then((fixture) => {
var router = fixture.debugElement.componentInstance.router;
PromiseWrapper.catchError(router.navigateByUrl('/cause-error'), (error) => {
@@ -98,7 +98,7 @@ export function main() {
beforeEachProviders(() => [{provide: ROUTER_PRIMARY_COMPONENT, useValue: HierarchyAppCmp}]);
it('should change the url without pushing a new history state for back navigations',
- inject([AsyncTestCompleter, TestComponentBuilder], (async: any /** TODO #9100 */, tcb: TestComponentBuilder) => {
+ inject([AsyncTestCompleter, TestComponentBuilder], (async: AsyncTestCompleter, tcb: TestComponentBuilder) => {
tcb.createAsync(HierarchyAppCmp)
.then((fixture) => {
@@ -149,7 +149,7 @@ export function main() {
() => { return [{provide: ROUTER_PRIMARY_COMPONENT, useValue: HierarchyAppCmp}]; });
it('should bootstrap an app with a hierarchy',
- inject([AsyncTestCompleter, TestComponentBuilder], (async: any /** TODO #9100 */, tcb: TestComponentBuilder) => {
+ inject([AsyncTestCompleter, TestComponentBuilder], (async: AsyncTestCompleter, tcb: TestComponentBuilder) => {
tcb.createAsync(HierarchyAppCmp)
.then((fixture) => {
@@ -170,7 +170,7 @@ export function main() {
beforeEachProviders(() => { return [{provide: APP_BASE_HREF, useValue: '/my/app'}]; });
it('should bootstrap',
inject([AsyncTestCompleter, TestComponentBuilder],
- (async: any /** TODO #9100 */, tcb: TestComponentBuilder) => {
+ (async: AsyncTestCompleter, tcb: TestComponentBuilder) => {
tcb.createAsync(HierarchyAppCmp)
.then((fixture) => {
@@ -194,7 +194,7 @@ export function main() {
() => { return [{provide: ROUTER_PRIMARY_COMPONENT, useValue: QueryStringAppCmp}]; });
it('should recognize and return querystring params with the injected RouteParams',
- inject([AsyncTestCompleter, TestComponentBuilder], (async: any /** TODO #9100 */, tcb: TestComponentBuilder) => {
+ inject([AsyncTestCompleter, TestComponentBuilder], (async: AsyncTestCompleter, tcb: TestComponentBuilder) => {
tcb.createAsync(QueryStringAppCmp)
.then((fixture) => {
var router = fixture.debugElement.componentInstance.router;
@@ -223,7 +223,7 @@ export function main() {
(testComponentBuilder: any /** TODO #9100 */) => { tcb = testComponentBuilder; }));
it('should get a reference and pass data to components loaded inside of outlets',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
tcb.createAsync(AppWithOutletListeners)
.then(fixture => {
let appInstance = fixture.debugElement.componentInstance;
diff --git a/modules/@angular/router-deprecated/test/integration/impl/async_route_spec_impl.ts b/modules/@angular/router-deprecated/test/integration/impl/async_route_spec_impl.ts
index 452291dcf7..7e0baf2fdc 100644
--- a/modules/@angular/router-deprecated/test/integration/impl/async_route_spec_impl.ts
+++ b/modules/@angular/router-deprecated/test/integration/impl/async_route_spec_impl.ts
@@ -49,7 +49,7 @@ function asyncRoutesWithoutChildrenWithRouteData() {
rtr = router;
}));
- it('should inject route data into the component', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should inject route data into the component', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config([
@@ -65,7 +65,7 @@ function asyncRoutesWithoutChildrenWithRouteData() {
}));
it('should inject empty object if the route has no data property',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config(
@@ -91,7 +91,7 @@ function asyncRoutesWithoutChildrenWithoutParams() {
rtr = router;
}));
- it('should navigate by URL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should navigate by URL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config(
@@ -104,7 +104,7 @@ function asyncRoutesWithoutChildrenWithoutParams() {
});
}));
- it('should navigate by link DSL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should navigate by link DSL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config(
@@ -117,7 +117,7 @@ function asyncRoutesWithoutChildrenWithoutParams() {
});
}));
- it('should generate a link URL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should generate a link URL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb, `go to hello | `)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config(
@@ -130,7 +130,7 @@ function asyncRoutesWithoutChildrenWithoutParams() {
}));
it('should navigate from a link click',
- inject([AsyncTestCompleter, Location], (async: any /** TODO #9100 */, location: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter, Location], (async: AsyncTestCompleter, location: any /** TODO #9100 */) => {
compile(tcb, `go to hello | `)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config(
@@ -164,7 +164,7 @@ function asyncRoutesWithoutChildrenWithParams() {
rtr = router;
}));
- it('should navigate by URL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should navigate by URL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config(
@@ -177,7 +177,7 @@ function asyncRoutesWithoutChildrenWithParams() {
});
}));
- it('should navigate by link DSL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should navigate by link DSL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config(
@@ -190,7 +190,7 @@ function asyncRoutesWithoutChildrenWithParams() {
});
}));
- it('should generate a link URL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should generate a link URL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb, `greet naomi | `)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config(
@@ -203,7 +203,7 @@ function asyncRoutesWithoutChildrenWithParams() {
}));
it('should navigate from a link click',
- inject([AsyncTestCompleter, Location], (async: any /** TODO #9100 */, location: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter, Location], (async: AsyncTestCompleter, location: any /** TODO #9100 */) => {
compile(tcb, `greet naomi | `)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config(
@@ -224,7 +224,7 @@ function asyncRoutesWithoutChildrenWithParams() {
}));
it('should navigate between components with different parameters',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config(
@@ -256,7 +256,7 @@ function asyncRoutesWithSyncChildrenWithoutDefaultRoutes() {
rtr = router;
}));
- it('should navigate by URL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should navigate by URL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb, `outer { }`)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config(
@@ -269,7 +269,7 @@ function asyncRoutesWithSyncChildrenWithoutDefaultRoutes() {
});
}));
- it('should navigate by link DSL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should navigate by link DSL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb, `outer { }`)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config(
@@ -282,7 +282,7 @@ function asyncRoutesWithSyncChildrenWithoutDefaultRoutes() {
});
}));
- it('should generate a link URL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should generate a link URL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb, `nav to child | outer { }`)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config(
@@ -295,7 +295,7 @@ function asyncRoutesWithSyncChildrenWithoutDefaultRoutes() {
}));
it('should navigate from a link click',
- inject([AsyncTestCompleter, Location], (async: any /** TODO #9100 */, location: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter, Location], (async: AsyncTestCompleter, location: any /** TODO #9100 */) => {
compile(tcb, `nav to child | outer { }`)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config(
@@ -330,7 +330,7 @@ function asyncRoutesWithSyncChildrenWithDefaultRoutes() {
rtr = router;
}));
- it('should navigate by URL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should navigate by URL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb, `outer { }`)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config([
@@ -344,7 +344,7 @@ function asyncRoutesWithSyncChildrenWithDefaultRoutes() {
});
}));
- it('should navigate by link DSL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should navigate by link DSL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb, `outer { }`)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config([
@@ -358,7 +358,7 @@ function asyncRoutesWithSyncChildrenWithDefaultRoutes() {
});
}));
- it('should generate a link URL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should generate a link URL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb, `link to inner | outer { }`)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config([
@@ -372,7 +372,7 @@ function asyncRoutesWithSyncChildrenWithDefaultRoutes() {
}));
it('should navigate from a link click',
- inject([AsyncTestCompleter, Location], (async: any /** TODO #9100 */, location: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter, Location], (async: AsyncTestCompleter, location: any /** TODO #9100 */) => {
compile(tcb, `link to inner | outer { }`)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config([
@@ -408,7 +408,7 @@ function asyncRoutesWithAsyncChildrenWithoutParamsWithoutDefaultRoutes() {
rtr = router;
}));
- it('should navigate by URL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should navigate by URL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb, `outer { }`)
.then((rtc) => {rootTC = rtc})
.then((_) => rtr.config([
@@ -422,7 +422,7 @@ function asyncRoutesWithAsyncChildrenWithoutParamsWithoutDefaultRoutes() {
});
}));
- it('should navigate by link DSL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should navigate by link DSL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb, `outer { }`)
.then((rtc) => {rootTC = rtc})
.then((_) => rtr.config([
@@ -436,7 +436,7 @@ function asyncRoutesWithAsyncChildrenWithoutParamsWithoutDefaultRoutes() {
});
}));
- it('should generate a link URL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should generate a link URL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb, `nav to child | outer { }`)
.then((rtc) => {rootTC = rtc})
.then((_) => rtr.config([
@@ -450,7 +450,7 @@ function asyncRoutesWithAsyncChildrenWithoutParamsWithoutDefaultRoutes() {
}));
it('should navigate from a link click',
- inject([AsyncTestCompleter, Location], (async: any /** TODO #9100 */, location: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter, Location], (async: AsyncTestCompleter, location: any /** TODO #9100 */) => {
compile(tcb, `nav to child | outer { }`)
.then((rtc) => {rootTC = rtc})
.then((_) => rtr.config([
@@ -486,7 +486,7 @@ function asyncRoutesWithAsyncChildrenWithoutParamsWithDefaultRoutes() {
rtr = router;
}));
- it('should navigate by URL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should navigate by URL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb, `outer { }`)
.then((rtc) => {rootTC = rtc})
.then((_) => rtr.config([
@@ -501,7 +501,7 @@ function asyncRoutesWithAsyncChildrenWithoutParamsWithDefaultRoutes() {
});
}));
- it('should navigate by link DSL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should navigate by link DSL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb, `outer { }`)
.then((rtc) => {rootTC = rtc})
.then((_) => rtr.config([
@@ -516,7 +516,7 @@ function asyncRoutesWithAsyncChildrenWithoutParamsWithDefaultRoutes() {
});
}));
- it('should generate a link URL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should generate a link URL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb, `nav to child | outer { }`)
.then((rtc) => {rootTC = rtc})
.then((_) => rtr.config([
@@ -531,7 +531,7 @@ function asyncRoutesWithAsyncChildrenWithoutParamsWithDefaultRoutes() {
}));
it('should navigate from a link click',
- inject([AsyncTestCompleter, Location], (async: any /** TODO #9100 */, location: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter, Location], (async: AsyncTestCompleter, location: any /** TODO #9100 */) => {
compile(tcb, `nav to child | outer { }`)
.then((rtc) => {rootTC = rtc})
.then((_) => rtr.config([
@@ -568,7 +568,7 @@ function asyncRoutesWithAsyncChildrenWithParamsWithoutDefaultRoutes() {
rtr = router;
}));
- it('should navigate by URL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should navigate by URL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb, `{ }`)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config([
@@ -583,7 +583,7 @@ function asyncRoutesWithAsyncChildrenWithParamsWithoutDefaultRoutes() {
});
}));
- it('should navigate by link DSL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should navigate by link DSL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb, `{ }`)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config([
@@ -598,7 +598,7 @@ function asyncRoutesWithAsyncChildrenWithParamsWithoutDefaultRoutes() {
});
}));
- it('should generate a link URL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should generate a link URL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(
tcb,
`nav to matias { }`)
@@ -614,7 +614,7 @@ function asyncRoutesWithAsyncChildrenWithParamsWithoutDefaultRoutes() {
}));
it('should navigate from a link click',
- inject([AsyncTestCompleter, Location], (async: any /** TODO #9100 */, location: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter, Location], (async: AsyncTestCompleter, location: any /** TODO #9100 */) => {
compile(
tcb,
`nav to matias { }`)
diff --git a/modules/@angular/router-deprecated/test/integration/impl/aux_route_spec_impl.ts b/modules/@angular/router-deprecated/test/integration/impl/aux_route_spec_impl.ts
index 6748d18454..d172061bf1 100644
--- a/modules/@angular/router-deprecated/test/integration/impl/aux_route_spec_impl.ts
+++ b/modules/@angular/router-deprecated/test/integration/impl/aux_route_spec_impl.ts
@@ -34,7 +34,7 @@ function auxRoutes() {
rtr = router;
}));
- it('should recognize and navigate from the URL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should recognize and navigate from the URL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb, `main { } | aux { }`)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config([
@@ -49,7 +49,7 @@ function auxRoutes() {
});
}));
- it('should navigate via the link DSL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should navigate via the link DSL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb, `main { } | aux { }`)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config([
@@ -64,7 +64,7 @@ function auxRoutes() {
});
}));
- it('should generate a link URL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should generate a link URL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(
tcb,
`open modal | main { } | aux { }`)
@@ -81,7 +81,7 @@ function auxRoutes() {
}));
it('should navigate from a link click',
- inject([AsyncTestCompleter, Location], (async: any /** TODO #9100 */, location: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter, Location], (async: AsyncTestCompleter, location: any /** TODO #9100 */) => {
compile(
tcb,
`open modal | hello | main { } | aux { }`)
@@ -137,7 +137,7 @@ function auxRoutesWithAPrimaryRoute() {
rtr = router;
}));
- it('should recognize and navigate from the URL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should recognize and navigate from the URL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb, `main { } | aux { }`)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config([
@@ -152,7 +152,7 @@ function auxRoutesWithAPrimaryRoute() {
});
}));
- it('should navigate via the link DSL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should navigate via the link DSL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb, `main { } | aux { }`)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config([
@@ -167,7 +167,7 @@ function auxRoutesWithAPrimaryRoute() {
});
}));
- it('should generate a link URL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should generate a link URL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(
tcb,
`open modal | main { } | aux { }`)
@@ -184,7 +184,7 @@ function auxRoutesWithAPrimaryRoute() {
}));
it('should navigate from a link click',
- inject([AsyncTestCompleter, Location], (async: any /** TODO #9100 */, location: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter, Location], (async: AsyncTestCompleter, location: any /** TODO #9100 */) => {
compile(
tcb,
`open modal | main { } | aux { }`)
diff --git a/modules/@angular/router-deprecated/test/integration/impl/sync_route_spec_impl.ts b/modules/@angular/router-deprecated/test/integration/impl/sync_route_spec_impl.ts
index c83d24fefb..aebfb1c6d6 100644
--- a/modules/@angular/router-deprecated/test/integration/impl/sync_route_spec_impl.ts
+++ b/modules/@angular/router-deprecated/test/integration/impl/sync_route_spec_impl.ts
@@ -41,7 +41,7 @@ function syncRoutesWithoutChildrenWithoutParams() {
rtr = router;
}));
- it('should navigate by URL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should navigate by URL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb)
.then((rtc) => {fixture = rtc})
.then((_) =>
@@ -54,7 +54,7 @@ function syncRoutesWithoutChildrenWithoutParams() {
});
}));
- it('should navigate by link DSL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should navigate by link DSL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb)
.then((rtc) => {fixture = rtc})
.then((_) =>
@@ -67,7 +67,7 @@ function syncRoutesWithoutChildrenWithoutParams() {
});
}));
- it('should generate a link URL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should generate a link URL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb, `go to hello | `)
.then((rtc) => {fixture = rtc})
.then((_) =>
@@ -80,7 +80,7 @@ function syncRoutesWithoutChildrenWithoutParams() {
}));
it('should navigate from a link click',
- inject([AsyncTestCompleter, Location], (async: any /** TODO #9100 */, location: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter, Location], (async: AsyncTestCompleter, location: any /** TODO #9100 */) => {
compile(tcb, `go to hello | `)
.then((rtc) => {fixture = rtc})
.then((_) =>
@@ -114,7 +114,7 @@ function syncRoutesWithoutChildrenWithParams() {
rtr = router;
}));
- it('should navigate by URL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should navigate by URL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config(
@@ -127,7 +127,7 @@ function syncRoutesWithoutChildrenWithParams() {
});
}));
- it('should navigate by link DSL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should navigate by link DSL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config(
@@ -140,7 +140,7 @@ function syncRoutesWithoutChildrenWithParams() {
});
}));
- it('should generate a link URL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should generate a link URL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb, `greet naomi | `)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config(
@@ -153,7 +153,7 @@ function syncRoutesWithoutChildrenWithParams() {
}));
it('should navigate from a link click',
- inject([AsyncTestCompleter, Location], (async: any /** TODO #9100 */, location: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter, Location], (async: AsyncTestCompleter, location: any /** TODO #9100 */) => {
compile(tcb, `greet naomi | `)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config(
@@ -174,7 +174,7 @@ function syncRoutesWithoutChildrenWithParams() {
}));
it('should navigate between components with different parameters',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config(
@@ -206,7 +206,7 @@ function syncRoutesWithSyncChildrenWithoutDefaultRoutesWithoutParams() {
rtr = router;
}));
- it('should navigate by URL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should navigate by URL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb, `outer { }`)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config(
@@ -219,7 +219,7 @@ function syncRoutesWithSyncChildrenWithoutDefaultRoutesWithoutParams() {
});
}));
- it('should navigate by link DSL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should navigate by link DSL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb, `outer { }`)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config(
@@ -232,7 +232,7 @@ function syncRoutesWithSyncChildrenWithoutDefaultRoutesWithoutParams() {
});
}));
- it('should generate a link URL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should generate a link URL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb, `nav to child | outer { }`)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config(
@@ -245,7 +245,7 @@ function syncRoutesWithSyncChildrenWithoutDefaultRoutesWithoutParams() {
}));
it('should navigate from a link click',
- inject([AsyncTestCompleter, Location], (async: any /** TODO #9100 */, location: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter, Location], (async: AsyncTestCompleter, location: any /** TODO #9100 */) => {
compile(tcb, `nav to child | outer { }`)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config(
@@ -280,7 +280,7 @@ function syncRoutesWithSyncChildrenWithoutDefaultRoutesWithParams() {
rtr = router;
}));
- it('should navigate by URL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should navigate by URL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb, `{ }`)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config(
@@ -294,7 +294,7 @@ function syncRoutesWithSyncChildrenWithoutDefaultRoutesWithParams() {
});
}));
- it('should navigate by link DSL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should navigate by link DSL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb, `{ }`)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config(
@@ -308,7 +308,7 @@ function syncRoutesWithSyncChildrenWithoutDefaultRoutesWithParams() {
});
}));
- it('should generate a link URL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should generate a link URL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(
tcb,
`nav to matias { }`)
@@ -323,7 +323,7 @@ function syncRoutesWithSyncChildrenWithoutDefaultRoutesWithParams() {
}));
it('should navigate from a link click',
- inject([AsyncTestCompleter, Location], (async: any /** TODO #9100 */, location: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter, Location], (async: AsyncTestCompleter, location: any /** TODO #9100 */) => {
compile(
tcb,
`nav to matias { }`)
@@ -360,7 +360,7 @@ function syncRoutesWithSyncChildrenWithDefaultRoutesWithoutParams() {
rtr = router;
}));
- it('should navigate by URL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should navigate by URL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb, `outer { }`)
.then((rtc) => {fixture = rtc})
.then(
@@ -374,7 +374,7 @@ function syncRoutesWithSyncChildrenWithDefaultRoutesWithoutParams() {
});
}));
- it('should navigate by link DSL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should navigate by link DSL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb, `outer { }`)
.then((rtc) => {fixture = rtc})
.then(
@@ -388,7 +388,7 @@ function syncRoutesWithSyncChildrenWithDefaultRoutesWithoutParams() {
});
}));
- it('should generate a link URL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should generate a link URL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb, `link to inner | outer { }`)
.then((rtc) => {fixture = rtc})
.then(
@@ -402,7 +402,7 @@ function syncRoutesWithSyncChildrenWithDefaultRoutesWithoutParams() {
}));
it('should navigate from a link click',
- inject([AsyncTestCompleter, Location], (async: any /** TODO #9100 */, location: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter, Location], (async: AsyncTestCompleter, location: any /** TODO #9100 */) => {
compile(tcb, `link to inner | outer { }`)
.then((rtc) => {fixture = rtc})
.then(
@@ -440,7 +440,7 @@ function syncRoutesWithDynamicComponents() {
it('should work',
inject([AsyncTestCompleter],
- (async: any /** TODO #9100 */) => {tcb.createAsync(DynamicLoaderCmp)
+ (async: AsyncTestCompleter) => {tcb.createAsync(DynamicLoaderCmp)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config([new Route({path: '/', component: HelloCmp})]))
.then((_) => {
diff --git a/modules/@angular/router-deprecated/test/integration/lifecycle_hook_spec.ts b/modules/@angular/router-deprecated/test/integration/lifecycle_hook_spec.ts
index 408ef17e7d..52a4ee927b 100644
--- a/modules/@angular/router-deprecated/test/integration/lifecycle_hook_spec.ts
+++ b/modules/@angular/router-deprecated/test/integration/lifecycle_hook_spec.ts
@@ -61,7 +61,7 @@ export function main() {
eventBus = new EventEmitter();
}));
- it('should call the routerOnActivate hook', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should call the routerOnActivate hook', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config([new Route({path: '/...', component: LifecycleCmp})]))
@@ -75,7 +75,7 @@ export function main() {
}));
it('should wait for a parent component\'s routerOnActivate hook to resolve before calling its child\'s',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config([new Route({path: '/...', component: LifecycleCmp})]))
@@ -98,7 +98,7 @@ export function main() {
});
}));
- it('should call the routerOnDeactivate hook', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should call the routerOnDeactivate hook', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config([new Route({path: '/...', component: LifecycleCmp})]))
@@ -113,7 +113,7 @@ export function main() {
}));
it('should wait for a child component\'s routerOnDeactivate hook to resolve before calling its parent\'s',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config([new Route({path: '/...', component: LifecycleCmp})]))
@@ -139,7 +139,7 @@ export function main() {
}));
it('should reuse a component when the routerCanReuse hook returns true',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config([new Route({path: '/...', component: LifecycleCmp})]))
@@ -162,7 +162,7 @@ export function main() {
it('should not reuse a component when the routerCanReuse hook returns false',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config([new Route({path: '/...', component: LifecycleCmp})]))
@@ -185,7 +185,7 @@ export function main() {
it('should navigate when routerCanActivate returns true',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config([new Route({path: '/...', component: LifecycleCmp})]))
@@ -206,7 +206,7 @@ export function main() {
}));
it('should not navigate when routerCanActivate returns false',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config([new Route({path: '/...', component: LifecycleCmp})]))
@@ -227,7 +227,7 @@ export function main() {
}));
it('should navigate away when routerCanDeactivate returns true',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config([new Route({path: '/...', component: LifecycleCmp})]))
@@ -253,7 +253,7 @@ export function main() {
}));
it('should not navigate away when routerCanDeactivate returns false',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config([new Route({path: '/...', component: LifecycleCmp})]))
@@ -280,7 +280,7 @@ export function main() {
it('should run activation and deactivation hooks in the correct order',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config([new Route({path: '/...', component: LifecycleCmp})]))
@@ -307,7 +307,7 @@ export function main() {
});
}));
- it('should only run reuse hooks when reusing', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should only run reuse hooks when reusing', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config([new Route({path: '/...', component: LifecycleCmp})]))
@@ -337,7 +337,7 @@ export function main() {
});
}));
- it('should not run reuse hooks when not reusing', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should not run reuse hooks when not reusing', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb)
.then((_) => rtr.config([new Route({path: '/...', component: LifecycleCmp})]))
.then((_) => rtr.navigateByUrl('/reuse-hooks/1'))
diff --git a/modules/@angular/router-deprecated/test/integration/navigation_spec.ts b/modules/@angular/router-deprecated/test/integration/navigation_spec.ts
index 34898af7d1..1cceef8d34 100644
--- a/modules/@angular/router-deprecated/test/integration/navigation_spec.ts
+++ b/modules/@angular/router-deprecated/test/integration/navigation_spec.ts
@@ -47,7 +47,7 @@ export function main() {
cmpInstanceCount = 0;
}));
- it('should work in a simple case', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should work in a simple case', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config([new Route({path: '/test', component: HelloCmp})]))
@@ -61,7 +61,7 @@ export function main() {
it('should navigate between components with different parameters',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config([new Route({path: '/user/:name', component: UserCmp})]))
@@ -78,7 +78,7 @@ export function main() {
});
}));
- it('should navigate to child routes', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should navigate to child routes', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb, 'outer { }')
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config([new Route({path: '/a/...', component: ParentCmp})]))
@@ -91,7 +91,7 @@ export function main() {
}));
it('should navigate to child routes that capture an empty path',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb, 'outer { }')
.then((rtc) => {fixture = rtc})
@@ -105,7 +105,7 @@ export function main() {
}));
it('should navigate to child routes when the root component has an empty path',
- inject([AsyncTestCompleter, Location], (async: any /** TODO #9100 */, location: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter, Location], (async: AsyncTestCompleter, location: any /** TODO #9100 */) => {
compile(tcb, 'outer { }')
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config([new Route({path: '/...', component: ParentCmp})]))
@@ -118,7 +118,7 @@ export function main() {
});
}));
- it('should navigate to child routes of async routes', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should navigate to child routes of async routes', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb, 'outer { }')
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config([new AsyncRoute({path: '/a/...', loader: parentLoader})]))
@@ -132,7 +132,7 @@ export function main() {
it('should replace state when normalized paths are equal',
- inject([AsyncTestCompleter, Location], (async: any /** TODO #9100 */, location: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter, Location], (async: AsyncTestCompleter, location: any /** TODO #9100 */) => {
compile(tcb)
.then((rtc) => {fixture = rtc})
.then((_) => location.setInitialPath("/test/"))
@@ -146,7 +146,7 @@ export function main() {
});
}));
- it('should reuse common parent components', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should reuse common parent components', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config([new Route({path: '/team/:id/...', component: TeamCmp})]))
@@ -167,7 +167,7 @@ export function main() {
}));
it('should not reuse children when parent components change',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config([new Route({path: '/team/:id/...', component: TeamCmp})]))
@@ -188,7 +188,7 @@ export function main() {
});
}));
- it('should inject route data into component', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should inject route data into component', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config([
@@ -203,7 +203,7 @@ export function main() {
}));
it('should inject route data into component with AsyncRoute',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config([
@@ -219,7 +219,7 @@ export function main() {
}));
it('should inject empty object if the route has no data property',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb)
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config(
@@ -233,7 +233,7 @@ export function main() {
}));
it('should fire an event for each activated component',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(tcb, ' ')
.then((rtc) => {fixture = rtc})
.then((_) => rtr.config([new Route({path: '/test', component: HelloCmp})]))
diff --git a/modules/@angular/router-deprecated/test/integration/redirect_route_spec.ts b/modules/@angular/router-deprecated/test/integration/redirect_route_spec.ts
index 91ae8c7ab7..463b571746 100644
--- a/modules/@angular/router-deprecated/test/integration/redirect_route_spec.ts
+++ b/modules/@angular/router-deprecated/test/integration/redirect_route_spec.ts
@@ -47,7 +47,7 @@ export function main() {
it('should apply when navigating by URL',
- inject([AsyncTestCompleter, Location], (async: any /** TODO #9100 */, location: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter, Location], (async: AsyncTestCompleter, location: any /** TODO #9100 */) => {
compile(tcb)
.then((rtc) => {rootTC = rtc})
.then((_) => rtr.config([
@@ -65,7 +65,7 @@ export function main() {
it('should recognize and apply absolute redirects',
- inject([AsyncTestCompleter, Location], (async: any /** TODO #9100 */, location: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter, Location], (async: AsyncTestCompleter, location: any /** TODO #9100 */) => {
compile(tcb)
.then((rtc) => {rootTC = rtc})
.then((_) => rtr.config([
@@ -83,7 +83,7 @@ export function main() {
it('should recognize and apply relative child redirects',
- inject([AsyncTestCompleter, Location], (async: any /** TODO #9100 */, location: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter, Location], (async: AsyncTestCompleter, location: any /** TODO #9100 */) => {
compile(tcb)
.then((rtc) => {rootTC = rtc})
.then((_) => rtr.config([
@@ -101,7 +101,7 @@ export function main() {
it('should recognize and apply relative parent redirects',
- inject([AsyncTestCompleter, Location], (async: any /** TODO #9100 */, location: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter, Location], (async: AsyncTestCompleter, location: any /** TODO #9100 */) => {
compile(tcb)
.then((rtc) => {rootTC = rtc})
.then((_) => rtr.config([
@@ -119,7 +119,7 @@ export function main() {
it('should not redirect when redirect is less specific than other matching routes',
- inject([AsyncTestCompleter, Location], (async: any /** TODO #9100 */, location: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter, Location], (async: AsyncTestCompleter, location: any /** TODO #9100 */) => {
compile(tcb)
.then((rtc) => {rootTC = rtc})
.then((_) => rtr.config([
diff --git a/modules/@angular/router-deprecated/test/integration/router_link_spec.ts b/modules/@angular/router-deprecated/test/integration/router_link_spec.ts
index 0dc068e429..5ef12de362 100644
--- a/modules/@angular/router-deprecated/test/integration/router_link_spec.ts
+++ b/modules/@angular/router-deprecated/test/integration/router_link_spec.ts
@@ -67,7 +67,7 @@ export function main() {
}
it('should generate absolute hrefs that include the base href',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
(location).setBaseHref('/my/base');
compile(' ')
.then((_) => router.config(
@@ -81,7 +81,7 @@ export function main() {
}));
- it('should generate link hrefs without params', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should generate link hrefs without params', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(' ')
.then((_) => router.config(
[new Route({path: '/user', component: UserCmp, name: 'User'})]))
@@ -94,7 +94,7 @@ export function main() {
}));
- it('should generate link hrefs with params', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should generate link hrefs with params', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile('{{name}} ')
.then((_) => router.config(
[new Route({path: '/user/:name', component: UserCmp, name: 'User'})]))
@@ -109,7 +109,7 @@ export function main() {
}));
it('should generate link hrefs from a child to its sibling',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile()
.then(
(_) => router.config(
@@ -123,7 +123,7 @@ export function main() {
}));
it('should generate link hrefs from a child to its sibling with no leading slash',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile()
.then((_) => router.config([
new Route(
@@ -138,7 +138,7 @@ export function main() {
}));
it('should generate link hrefs to a child with no leading slash',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile()
.then((_) => router.config([
new Route({path: '/book/:title/...', component: NoPrefixBookCmp, name: 'Book'})
@@ -152,7 +152,7 @@ export function main() {
}));
it('should throw when links without a leading slash are ambiguous',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile()
.then((_) => router.config([
new Route({path: '/book/:title/...', component: AmbiguousBookCmp, name: 'Book'})
@@ -168,7 +168,7 @@ export function main() {
}));
it('should generate link hrefs when asynchronously loaded',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile()
.then((_) => router.config([
new AsyncRoute({
@@ -186,7 +186,7 @@ export function main() {
}));
it('should generate relative links preserving the existing parent route',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile()
.then((_) => router.config(
[new Route({path: '/book/:title/...', component: BookCmp, name: 'Book'})]))
@@ -211,7 +211,7 @@ export function main() {
});
}));
- it('should generate links to auxiliary routes', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should generate links to auxiliary routes', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile()
.then((_) => router.config([new Route({path: '/...', component: AuxLinkCmp})]))
.then((_) => router.navigateByUrl('/'))
@@ -224,7 +224,7 @@ export function main() {
describe('router-link-active CSS class', () => {
- it('should be added to the associated element', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should be added to the associated element', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
router.config([
new Route({path: '/child', component: HelloCmp, name: 'Child'}),
new Route({path: '/better-child', component: Hello2Cmp, name: 'BetterChild'})
@@ -255,7 +255,7 @@ export function main() {
});
}));
- it('should be added to links in child routes', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should be added to links in child routes', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
router.config([
new Route({path: '/child', component: HelloCmp, name: 'Child'}),
new Route({
@@ -297,7 +297,7 @@ export function main() {
}));
it('should not be added to links in other child routes',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
router.config([
new Route({path: '/child', component: HelloCmp, name: 'Child'}),
new Route({
@@ -351,7 +351,7 @@ export function main() {
return dispatchedEvent;
};
- it('should navigate to link hrefs without params', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should navigate to link hrefs without params', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
compile(' ')
.then((_) => router.config(
[new Route({path: '/user', component: UserCmp, name: 'User'})]))
@@ -371,7 +371,7 @@ export function main() {
}));
it('should navigate to link hrefs in presence of base href',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
(location).setBaseHref('/base');
compile(' ')
.then((_) => router.config(
diff --git a/modules/@angular/router-deprecated/test/location/location_spec.ts b/modules/@angular/router-deprecated/test/location/location_spec.ts
index 73cf499094..aa628fdce6 100644
--- a/modules/@angular/router-deprecated/test/location/location_spec.ts
+++ b/modules/@angular/router-deprecated/test/location/location_spec.ts
@@ -43,7 +43,7 @@ export function main() {
expect(locationStrategy.path()).toEqual('/my/app/user/btford');
});
- it('should normalize urls on popstate', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should normalize urls on popstate', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
location.subscribe((ev: any /** TODO #9100 */) => {
expect(ev['url']).toEqual('/user/btford');
diff --git a/modules/@angular/router-deprecated/test/route_config/route_config_spec.ts b/modules/@angular/router-deprecated/test/route_config/route_config_spec.ts
index f5b75ac1d9..673cefaed7 100644
--- a/modules/@angular/router-deprecated/test/route_config/route_config_spec.ts
+++ b/modules/@angular/router-deprecated/test/route_config/route_config_spec.ts
@@ -53,7 +53,7 @@ export function main() {
];
});
- it('should bootstrap an app with a hierarchy', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should bootstrap an app with a hierarchy', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
bootstrap(HierarchyAppCmp, testBindings)
.then((applicationRef) => {
var router = applicationRef.instance.router;
@@ -67,7 +67,7 @@ export function main() {
}));
- it('should work in an app with redirects', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should work in an app with redirects', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
bootstrap(RedirectAppCmp, testBindings)
.then((applicationRef) => {
var router = applicationRef.instance.router;
@@ -81,7 +81,7 @@ export function main() {
}));
- it('should work in an app with async components', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should work in an app with async components', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
bootstrap(AsyncAppCmp, testBindings)
.then((applicationRef) => {
var router = applicationRef.instance.router;
@@ -95,7 +95,7 @@ export function main() {
}));
- it('should work in an app with aux routes', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should work in an app with aux routes', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
bootstrap(AuxAppCmp, testBindings)
.then((applicationRef) => {
var router = applicationRef.instance.router;
@@ -110,7 +110,7 @@ export function main() {
it('should work in an app with async components defined with "loader"',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
bootstrap(ConciseAsyncAppCmp, testBindings)
.then((applicationRef) => {
var router = applicationRef.instance.router;
@@ -125,7 +125,7 @@ export function main() {
it('should work in an app with a constructor component',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
bootstrap(ExplicitConstructorAppCmp, testBindings)
.then((applicationRef) => {
var router = applicationRef.instance.router;
@@ -141,7 +141,7 @@ export function main() {
it('should throw if a config is missing a target',
inject(
[AsyncTestCompleter],
- (async: any /** TODO #9100 */) => {
+ (async: AsyncTestCompleter) => {
bootstrap(WrongConfigCmp, testBindings)
.catch((e) => {
expect(e.originalException)
@@ -154,7 +154,7 @@ export function main() {
it('should throw if a config has an invalid component type',
inject(
[AsyncTestCompleter],
- (async: any /** TODO #9100 */) => {
+ (async: AsyncTestCompleter) => {
bootstrap(WrongComponentTypeCmp, testBindings)
.catch((e) => {
expect(e.originalException)
@@ -167,7 +167,7 @@ export function main() {
it('should throw if a config has an invalid alias name',
inject(
[AsyncTestCompleter],
- (async: any /** TODO #9100 */) => {
+ (async: AsyncTestCompleter) => {
bootstrap(BadAliasNameCmp, testBindings)
.catch((e) => {
expect(e.originalException)
diff --git a/modules/@angular/router-deprecated/test/route_registry_spec.ts b/modules/@angular/router-deprecated/test/route_registry_spec.ts
index 19e5de6bb1..d67a2b2437 100644
--- a/modules/@angular/router-deprecated/test/route_registry_spec.ts
+++ b/modules/@angular/router-deprecated/test/route_registry_spec.ts
@@ -28,7 +28,7 @@ export function main() {
beforeEach(() => { registry = new RouteRegistry(RootHostCmp); });
- it('should match the full URL', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should match the full URL', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
registry.config(RootHostCmp, new Route({path: '/', component: DummyCmpA}));
registry.config(RootHostCmp, new Route({path: '/test', component: DummyCmpB}));
@@ -100,7 +100,7 @@ export function main() {
it('should generate URLs of loaded components after they are loaded',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
registry.config(
RootHostCmp,
new AsyncRoute({path: '/first/...', loader: asyncParentLoader, name: 'FirstCmp'}));
@@ -131,7 +131,7 @@ export function main() {
.toEqual('primary(aux)');
});
- it('should prefer static segments to dynamic', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should prefer static segments to dynamic', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
registry.config(RootHostCmp, new Route({path: '/:site', component: DummyCmpB}));
registry.config(RootHostCmp, new Route({path: '/home', component: DummyCmpA}));
@@ -142,7 +142,7 @@ export function main() {
});
}));
- it('should prefer dynamic segments to star', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should prefer dynamic segments to star', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
registry.config(RootHostCmp, new Route({path: '/:site', component: DummyCmpA}));
registry.config(RootHostCmp, new Route({path: '/*site', component: DummyCmpB}));
@@ -153,7 +153,7 @@ export function main() {
});
}));
- it('should prefer routes with more dynamic segments', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should prefer routes with more dynamic segments', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
registry.config(RootHostCmp, new Route({path: '/:first/*rest', component: DummyCmpA}));
registry.config(RootHostCmp, new Route({path: '/*all', component: DummyCmpB}));
@@ -164,7 +164,7 @@ export function main() {
});
}));
- it('should prefer routes with more static segments', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should prefer routes with more static segments', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
registry.config(RootHostCmp, new Route({path: '/first/:second', component: DummyCmpA}));
registry.config(RootHostCmp, new Route({path: '/:first/:second', component: DummyCmpB}));
@@ -176,7 +176,7 @@ export function main() {
}));
it('should prefer routes with static segments before dynamic segments',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
registry.config(RootHostCmp,
new Route({path: '/first/second/:third', component: DummyCmpB}));
registry.config(RootHostCmp,
@@ -190,7 +190,7 @@ export function main() {
}));
it('should prefer routes with high specificity over routes with children with lower specificity',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
registry.config(RootHostCmp, new Route({path: '/first', component: DummyCmpA}));
// terminates to DummyCmpB
@@ -204,7 +204,7 @@ export function main() {
});
}));
- it('should match the full URL using child components', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should match the full URL using child components', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
registry.config(RootHostCmp, new Route({path: '/first/...', component: DummyParentCmp}));
registry.recognize('/first/second', [])
@@ -216,7 +216,7 @@ export function main() {
}));
it('should match the URL using async child components',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
registry.config(RootHostCmp, new Route({path: '/first/...', component: DummyAsyncCmp}));
registry.recognize('/first/second', [])
@@ -231,7 +231,7 @@ export function main() {
}));
it('should match the URL using an async parent component',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
registry.config(RootHostCmp,
new AsyncRoute({path: '/first/...', loader: asyncParentLoader}));
@@ -282,7 +282,7 @@ export function main() {
});
it('should match matrix params on child components and query params on the root component',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
registry.config(RootHostCmp, new Route({path: '/first/...', component: DummyParentCmp}));
registry.recognize('/first/second;filter=odd?comments=all', [])
@@ -297,7 +297,7 @@ export function main() {
}));
it('should match query params on the root component even when the next URL segment is null',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
registry.config(RootHostCmp,
new Route({path: '/first/...', component: SingleSlashChildCmp}));
diff --git a/modules/@angular/router-deprecated/test/router_spec.ts b/modules/@angular/router-deprecated/test/router_spec.ts
index 9e525e2457..7beaa38f43 100644
--- a/modules/@angular/router-deprecated/test/router_spec.ts
+++ b/modules/@angular/router-deprecated/test/router_spec.ts
@@ -41,7 +41,7 @@ export function main() {
}));
- it('should navigate based on the initial URL state', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should navigate based on the initial URL state', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var outlet = makeDummyOutlet();
router.config([new Route({path: '/', component: DummyComponent})])
@@ -54,7 +54,7 @@ export function main() {
}));
it('should activate viewports and update URL on navigate',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var outlet = makeDummyOutlet();
router.registerPrimaryOutlet(outlet)
@@ -68,7 +68,7 @@ export function main() {
}));
it('should activate viewports and update URL when navigating via DSL',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var outlet = makeDummyOutlet();
router.registerPrimaryOutlet(outlet)
@@ -83,7 +83,7 @@ export function main() {
}));
it('should not push a history change on when navigate is called with skipUrlChange',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var outlet = makeDummyOutlet();
router.registerPrimaryOutlet(outlet)
@@ -100,7 +100,7 @@ export function main() {
// This test is disabled because it is flaky.
// TODO: bford. make this test not flaky and reenable it.
xit('should replace history when triggered by a hashchange with a redirect',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var outlet = makeDummyOutlet();
router.registerPrimaryOutlet(outlet)
@@ -119,7 +119,7 @@ export function main() {
}));
it('should push history when triggered by a hashchange without a redirect',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var outlet = makeDummyOutlet();
router.registerPrimaryOutlet(outlet)
@@ -136,7 +136,7 @@ export function main() {
it('should pass an object containing the component instruction to the router change subscription after a successful navigation',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var outlet = makeDummyOutlet();
router.registerPrimaryOutlet(outlet)
@@ -152,7 +152,7 @@ export function main() {
}));
it('should pass an object containing the bad url to the router change subscription after a failed navigation',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var outlet = makeDummyOutlet();
router.registerPrimaryOutlet(outlet)
@@ -167,7 +167,7 @@ export function main() {
});
}));
- it('should navigate after being configured', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should navigate after being configured', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var outlet = makeDummyOutlet();
router.registerPrimaryOutlet(outlet)
@@ -208,7 +208,7 @@ export function main() {
});
it('should generate an instruction with terminal async routes',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var outlet = makeDummyOutlet();
router.registerPrimaryOutlet(outlet);
@@ -223,7 +223,7 @@ export function main() {
}));
it('should return whether a given instruction is active with isRouteActive',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var outlet = makeDummyOutlet();
router.registerPrimaryOutlet(outlet)
@@ -242,7 +242,7 @@ export function main() {
});
}));
- it('should provide the current instruction', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should provide the current instruction', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var outlet = makeDummyOutlet();
router.registerPrimaryOutlet(outlet)
diff --git a/modules/@angular/router-deprecated/test/rules/rule_set_spec.ts b/modules/@angular/router-deprecated/test/rules/rule_set_spec.ts
index 68cda4de3a..38e71884cd 100644
--- a/modules/@angular/router-deprecated/test/rules/rule_set_spec.ts
+++ b/modules/@angular/router-deprecated/test/rules/rule_set_spec.ts
@@ -23,7 +23,7 @@ export function main() {
beforeEach(() => { recognizer = new RuleSet(); });
- it('should recognize a static segment', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should recognize a static segment', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
recognizer.config(new Route({path: '/test', component: DummyCmpA}));
recognize(recognizer, '/test')
.then((solutions: RouteMatch[]) => {
@@ -34,7 +34,7 @@ export function main() {
}));
- it('should recognize a single slash', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should recognize a single slash', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
recognizer.config(new Route({path: '/', component: DummyCmpA}));
recognize(recognizer, '/')
.then((solutions: RouteMatch[]) => {
@@ -45,7 +45,7 @@ export function main() {
}));
- it('should recognize a dynamic segment', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should recognize a dynamic segment', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
recognizer.config(new Route({path: '/user/:name', component: DummyCmpA}));
recognize(recognizer, '/user/brian')
.then((solutions: RouteMatch[]) => {
@@ -57,7 +57,7 @@ export function main() {
}));
- it('should recognize a star segment', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should recognize a star segment', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
recognizer.config(new Route({path: '/first/*rest', component: DummyCmpA}));
recognize(recognizer, '/first/second/third')
.then((solutions: RouteMatch[]) => {
@@ -68,7 +68,7 @@ export function main() {
});
}));
- it('should recognize a regex', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should recognize a regex', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
function emptySerializer(params: any /** TODO #9100 */): GeneratedUrl { return new GeneratedUrl('', {}); }
recognizer.config(
@@ -83,7 +83,7 @@ export function main() {
});
}));
- it('should recognize a regex with named_groups', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should recognize a regex with named_groups', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
function emptySerializer(params: any /** TODO #9100 */): GeneratedUrl { return new GeneratedUrl('', {}); }
recognizer.config(new Route({
@@ -125,7 +125,7 @@ export function main() {
});
- it('should recognize redirects', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should recognize redirects', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
recognizer.config(new Route({path: '/b', component: DummyCmpA}));
recognizer.config(new Redirect({path: '/a', redirectTo: ['B']}));
recognize(recognizer, '/a')
@@ -190,7 +190,7 @@ export function main() {
describe('params', () => {
it('should recognize parameters within the URL path',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
recognizer.config(
new Route({path: 'profile/:name', component: DummyCmpA, name: 'User'}));
recognize(recognizer, '/profile/matsko?comments=all')
@@ -216,7 +216,7 @@ export function main() {
it('should prefer positional params over query params',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
recognizer.config(
new Route({path: 'profile/:name', component: DummyCmpA, name: 'User'}));
recognize(recognizer, '/profile/yegor?name=igor')
@@ -229,7 +229,7 @@ export function main() {
it('should ignore matrix params for the top-level component',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
recognizer.config(
new Route({path: '/home/:subject', component: DummyCmpA, name: 'User'}));
recognize(recognizer, '/home;sort=asc/zero;one=1?two=2')
diff --git a/modules/@angular/router/test/recognize_spec.ts b/modules/@angular/router/test/recognize_spec.ts
index a7e243497e..6ec2f52383 100644
--- a/modules/@angular/router/test/recognize_spec.ts
+++ b/modules/@angular/router/test/recognize_spec.ts
@@ -24,7 +24,7 @@ export function main() {
let emptyRouteTree = createEmptyRouteTree(ComponentA);
it('should handle position args',
- inject([AsyncTestCompleter, ComponentResolver], (async: any /** TODO #9100 */, resolver: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter, ComponentResolver], (async: AsyncTestCompleter, resolver: any /** TODO #9100 */) => {
recognize(resolver, ComponentA, tree("b/paramB/c/paramC/d"), emptyRouteTree)
.then(r => {
let a = r.root;
@@ -48,7 +48,7 @@ export function main() {
}));
it('should support empty routes',
- inject([AsyncTestCompleter, ComponentResolver], (async: any /** TODO #9100 */, resolver: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter, ComponentResolver], (async: AsyncTestCompleter, resolver: any /** TODO #9100 */) => {
recognize(resolver, ComponentA, tree("f"), emptyRouteTree)
.then(r => {
let a = r.root;
@@ -68,7 +68,7 @@ export function main() {
}));
it('should handle aux routes',
- inject([AsyncTestCompleter, ComponentResolver], (async: any /** TODO #9100 */, resolver: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter, ComponentResolver], (async: AsyncTestCompleter, resolver: any /** TODO #9100 */) => {
recognize(resolver, ComponentA, tree("b/paramB(/d//right:d)"), emptyRouteTree)
.then(r => {
let c = r.children(r.root);
@@ -89,7 +89,7 @@ export function main() {
}));
it("should error when two segments with the same outlet name",
- inject([AsyncTestCompleter, ComponentResolver], (async: any /** TODO #9100 */, resolver: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter, ComponentResolver], (async: AsyncTestCompleter, resolver: any /** TODO #9100 */) => {
recognize(resolver, ComponentA, tree("b/paramB(right:d//right:e)"), emptyRouteTree)
.catch(e => {
expect(e.message).toEqual(
@@ -99,7 +99,7 @@ export function main() {
}));
it('should handle nested aux routes',
- inject([AsyncTestCompleter, ComponentResolver], (async: any /** TODO #9100 */, resolver: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter, ComponentResolver], (async: AsyncTestCompleter, resolver: any /** TODO #9100 */) => {
recognize(resolver, ComponentA, tree("b/paramB(/d(right:e))"), emptyRouteTree)
.then(r => {
let c = r.children(r.root);
@@ -120,7 +120,7 @@ export function main() {
}));
it('should handle non top-level aux routes',
- inject([AsyncTestCompleter, ComponentResolver], (async: any /** TODO #9100 */, resolver: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter, ComponentResolver], (async: AsyncTestCompleter, resolver: any /** TODO #9100 */) => {
recognize(resolver, ComponentA, tree('b/paramB/d(e)'), emptyRouteTree)
.then(r => {
let c = r.children(r.firstChild(r.root));
@@ -137,7 +137,7 @@ export function main() {
}));
it('should handle matrix parameters',
- inject([AsyncTestCompleter, ComponentResolver], (async: any /** TODO #9100 */, resolver: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter, ComponentResolver], (async: AsyncTestCompleter, resolver: any /** TODO #9100 */) => {
recognize(resolver, ComponentA, tree("b/paramB;b1=1;b2=2(/d;d1=1;d2=2)"), emptyRouteTree)
.then(r => {
let c = r.children(r.root);
@@ -149,7 +149,7 @@ export function main() {
}));
it('should match a wildcard',
- inject([AsyncTestCompleter, ComponentResolver], (async: any /** TODO #9100 */, resolver: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter, ComponentResolver], (async: AsyncTestCompleter, resolver: any /** TODO #9100 */) => {
recognize(resolver, ComponentG, tree("a;aa=1/b;bb=2"), emptyRouteTree)
.then(r => {
let c = r.children(r.root);
@@ -162,7 +162,7 @@ export function main() {
}));
it('should error when no matching routes',
- inject([AsyncTestCompleter, ComponentResolver], (async: any /** TODO #9100 */, resolver: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter, ComponentResolver], (async: AsyncTestCompleter, resolver: any /** TODO #9100 */) => {
recognize(resolver, ComponentA, tree("invalid"), emptyRouteTree)
.catch(e => {
expect(e.message).toContain("Cannot match any routes");
@@ -171,7 +171,7 @@ export function main() {
}));
it('should handle no matching routes (too short)',
- inject([AsyncTestCompleter, ComponentResolver], (async: any /** TODO #9100 */, resolver: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter, ComponentResolver], (async: AsyncTestCompleter, resolver: any /** TODO #9100 */) => {
recognize(resolver, ComponentA, tree("b"), emptyRouteTree)
.catch(e => {
expect(e.message).toContain("Cannot match any routes");
@@ -180,7 +180,7 @@ export function main() {
}));
it("should error when a component doesn't have @Routes",
- inject([AsyncTestCompleter, ComponentResolver], (async: any /** TODO #9100 */, resolver: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter, ComponentResolver], (async: AsyncTestCompleter, resolver: any /** TODO #9100 */) => {
recognize(resolver, ComponentA, tree("d/invalid"), emptyRouteTree)
.catch(e => {
expect(e.message)
@@ -190,7 +190,7 @@ export function main() {
}));
it("should reuse existing segments",
- inject([AsyncTestCompleter, ComponentResolver], (async: any /** TODO #9100 */, resolver: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter, ComponentResolver], (async: AsyncTestCompleter, resolver: any /** TODO #9100 */) => {
recognize(resolver, ComponentA, tree("/b/1/d"), emptyRouteTree)
.then(t1 => {
recognize(resolver, ComponentA, tree("/b/1/e"), t1)
diff --git a/modules/@angular/upgrade/test/upgrade_spec.ts b/modules/@angular/upgrade/test/upgrade_spec.ts
index 049c719a4a..0e3d5b1710 100644
--- a/modules/@angular/upgrade/test/upgrade_spec.ts
+++ b/modules/@angular/upgrade/test/upgrade_spec.ts
@@ -8,7 +8,7 @@ export function main() {
it('should have angular 1 loaded', () => expect(angular.version.major).toBe(1));
it('should instantiate ng2 in ng1 template and project content',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var ng1Module = angular.module('ng1', []);
var Ng2 = Component({selector: 'ng2', template: `{{ 'NG2' }}( )`})
.Class({constructor: function() {}});
@@ -26,7 +26,7 @@ export function main() {
}));
it('should instantiate ng1 in ng2 template and project content',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var adapter: UpgradeAdapter = new UpgradeAdapter();
var ng1Module = angular.module('ng1', []);
@@ -53,7 +53,7 @@ export function main() {
describe('scope/component change-detection', () => {
it('should interleave scope and component expressions',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var ng1Module = angular.module('ng1', []);
var log: any[] /** TODO #9100 */ = [];
var l = function(value: any /** TODO #9100 */) {
@@ -92,7 +92,7 @@ export function main() {
});
describe('downgrade ng2 component', () => {
- it('should bind properties, events', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should bind properties, events', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var adapter: UpgradeAdapter = new UpgradeAdapter();
var ng1Module = angular.module('ng1', []);
@@ -202,7 +202,7 @@ export function main() {
}));
it('should properly run cleanup when ng1 directive is destroyed',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var adapter: UpgradeAdapter = new UpgradeAdapter();
var ng1Module = angular.module('ng1', []);
var onDestroyed: EventEmitter = new EventEmitter();
@@ -232,7 +232,7 @@ export function main() {
it('should fallback to the root ng2.injector when compiled outside the dom',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var adapter: UpgradeAdapter = new UpgradeAdapter();
var ng1Module = angular.module('ng1', []);
@@ -263,7 +263,7 @@ export function main() {
});
describe('upgrade ng1 component', () => {
- it('should bind properties, events', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should bind properties, events', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var adapter = new UpgradeAdapter();
var ng1Module = angular.module('ng1', []);
@@ -318,7 +318,7 @@ export function main() {
});
}));
- it('should bind properties, events in controller when bindToController is not used', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should bind properties, events in controller when bindToController is not used', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var adapter = new UpgradeAdapter();
var ng1Module = angular.module('ng1', []);
@@ -362,7 +362,7 @@ export function main() {
});
}));
- it('should bind properties, events in link function', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should bind properties, events in link function', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var adapter = new UpgradeAdapter();
var ng1Module = angular.module('ng1', []);
@@ -407,7 +407,7 @@ export function main() {
}));
it('should support templateUrl fetched from $httpBackend',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var adapter = new UpgradeAdapter();
var ng1Module = angular.module('ng1', []);
ng1Module.value('$httpBackend',
@@ -431,7 +431,7 @@ export function main() {
}));
it('should support templateUrl as a function',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var adapter = new UpgradeAdapter();
var ng1Module = angular.module('ng1', []);
ng1Module.value('$httpBackend',
@@ -454,7 +454,7 @@ export function main() {
});
}));
- it('should support empty template', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should support empty template', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var adapter = new UpgradeAdapter();
var ng1Module = angular.module('ng1', []);
@@ -475,7 +475,7 @@ export function main() {
});
}));
- it('should support template as a function', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should support template as a function', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var adapter = new UpgradeAdapter();
var ng1Module = angular.module('ng1', []);
@@ -497,7 +497,7 @@ export function main() {
}));
it('should support templateUrl fetched from $templateCache',
- inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var adapter = new UpgradeAdapter();
var ng1Module = angular.module('ng1', []);
ng1Module.run(($templateCache: any /** TODO #9100 */) => $templateCache.put('url.html', 'WORKS'));
@@ -519,7 +519,7 @@ export function main() {
});
}));
- it('should support controller with controllerAs', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should support controller with controllerAs', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var adapter = new UpgradeAdapter();
var ng1Module = angular.module('ng1', []);
@@ -560,7 +560,7 @@ export function main() {
});
}));
- it('should support bindToController', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should support bindToController', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var adapter = new UpgradeAdapter();
var ng1Module = angular.module('ng1', []);
@@ -589,7 +589,7 @@ export function main() {
});
}));
- it('should support bindToController with bindings', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should support bindToController with bindings', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var adapter = new UpgradeAdapter();
var ng1Module = angular.module('ng1', []);
@@ -618,7 +618,7 @@ export function main() {
});
}));
- it('should support single require in linking fn', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should support single require in linking fn', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var adapter = new UpgradeAdapter();
var ng1Module = angular.module('ng1', []);
@@ -654,7 +654,7 @@ export function main() {
});
}));
- it('should support array require in linking fn', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should support array require in linking fn', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var adapter = new UpgradeAdapter();
var ng1Module = angular.module('ng1', []);
@@ -695,7 +695,7 @@ export function main() {
});
}));
- it('should call $onInit of components', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should call $onInit of components', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var adapter = new UpgradeAdapter();
var ng1Module = angular.module('ng1', []);
var valueToFind = '$onInit';
@@ -724,7 +724,7 @@ export function main() {
});
}));
- it('should bind input properties (<) of components', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should bind input properties (<) of components', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var adapter = new UpgradeAdapter();
var ng1Module = angular.module('ng1', []);
@@ -755,7 +755,7 @@ export function main() {
});
}));
- it('should support ng2 > ng1 > ng2', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should support ng2 > ng1 > ng2', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var adapter = new UpgradeAdapter();
var ng1Module = angular.module('ng1', []);
@@ -798,7 +798,7 @@ export function main() {
describe('injection', () => {
function SomeToken() {}
- it('should export ng2 instance to ng1', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should export ng2 instance to ng1', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var adapter = new UpgradeAdapter();
var module = angular.module('myExample', []);
adapter.addProvider({provide: SomeToken, useValue: 'correct_value'});
@@ -811,7 +811,7 @@ export function main() {
});
}));
- it('should export ng1 instance to ng2', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should export ng1 instance to ng2', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var adapter = new UpgradeAdapter();
var module = angular.module('myExample', []);
module.value('testValue', 'secreteToken');
@@ -830,7 +830,7 @@ export function main() {
});
describe('testability', () => {
- it('should handle deferred bootstrap', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should handle deferred bootstrap', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var adapter: UpgradeAdapter = new UpgradeAdapter();
var ng1Module = angular.module('ng1', []);
var bootstrapResumed: boolean = false;
@@ -851,7 +851,7 @@ export function main() {
}, 100);
}));
- it('should wait for ng2 testability', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should wait for ng2 testability', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var adapter: UpgradeAdapter = new UpgradeAdapter();
var ng1Module = angular.module('ng1', []);
var element = html("
");
@@ -876,7 +876,7 @@ export function main() {
});
describe('examples', () => {
- it('should verify UpgradeAdapter example', inject([AsyncTestCompleter], (async: any /** TODO #9100 */) => {
+ it('should verify UpgradeAdapter example', inject([AsyncTestCompleter], (async: AsyncTestCompleter) => {
var adapter = new UpgradeAdapter();
var module = angular.module('myExample', []);