chore(test): remove deprecated RootTestComponent
Uses of `RootTestComponent` should be migrated to `ComponentFixture`.
This commit is contained in:
committed by
Jeremy Elbourn
parent
c7242a39d2
commit
ad99199d50
@@ -1,5 +1,5 @@
|
||||
import {
|
||||
RootTestComponent,
|
||||
ComponentFixture,
|
||||
AsyncTestCompleter,
|
||||
TestComponentBuilder,
|
||||
beforeEach,
|
||||
@@ -22,7 +22,7 @@ import {RouteConfig, Route, AuxRoute, Redirect} from 'angular2/src/router/route_
|
||||
|
||||
import {TEST_ROUTER_PROVIDERS, RootCmp, compile, clickOnElement, getHref} from './util';
|
||||
|
||||
function getLinkElement(rtc: RootTestComponent) {
|
||||
function getLinkElement(rtc: ComponentFixture) {
|
||||
return rtc.debugElement.componentViewChildren[0].nativeElement;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ export function main() {
|
||||
describe('auxiliary routes', () => {
|
||||
|
||||
var tcb: TestComponentBuilder;
|
||||
var fixture: RootTestComponent;
|
||||
var fixture: ComponentFixture;
|
||||
var rtr;
|
||||
|
||||
beforeEachProviders(() => TEST_ROUTER_PROVIDERS);
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
inject,
|
||||
it,
|
||||
TestComponentBuilder,
|
||||
RootTestComponent,
|
||||
ComponentFixture,
|
||||
xit,
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
@@ -32,7 +32,7 @@ import {
|
||||
asyncRouteDataCmp
|
||||
} from './fixture_components';
|
||||
|
||||
function getLinkElement(rtc: RootTestComponent) {
|
||||
function getLinkElement(rtc: ComponentFixture) {
|
||||
return rtc.debugElement.componentViewChildren[0].nativeElement;
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
inject,
|
||||
it,
|
||||
TestComponentBuilder,
|
||||
RootTestComponent,
|
||||
ComponentFixture,
|
||||
xit,
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
@@ -19,7 +19,7 @@ import {Router, Route, Location} from 'angular2/router';
|
||||
import {HelloCmp, UserCmp, TeamCmp, ParentCmp, ParentWithDefaultCmp} from './fixture_components';
|
||||
|
||||
|
||||
function getLinkElement(rtc: RootTestComponent) {
|
||||
function getLinkElement(rtc: ComponentFixture) {
|
||||
return rtc.debugElement.componentViewChildren[0].nativeElement;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {
|
||||
RootTestComponent,
|
||||
ComponentFixture,
|
||||
AsyncTestCompleter,
|
||||
TestComponentBuilder,
|
||||
beforeEach,
|
||||
@@ -34,7 +34,7 @@ export function main() {
|
||||
describe('redirects', () => {
|
||||
|
||||
var tcb: TestComponentBuilder;
|
||||
var rootTC: RootTestComponent;
|
||||
var rootTC: ComponentFixture;
|
||||
var rtr;
|
||||
|
||||
beforeEachProviders(() => TEST_ROUTER_PROVIDERS);
|
||||
|
||||
@@ -3,7 +3,7 @@ import {Type, isBlank} from 'angular2/src/facade/lang';
|
||||
import {BaseException} from 'angular2/src/facade/exceptions';
|
||||
|
||||
import {
|
||||
RootTestComponent,
|
||||
ComponentFixture,
|
||||
AsyncTestCompleter,
|
||||
TestComponentBuilder,
|
||||
beforeEach,
|
||||
|
||||
Reference in New Issue
Block a user