for fixup - keep RootTestComponent around, but deprecate

This commit is contained in:
Julie Ralph 2015-11-03 13:51:33 -08:00
parent 686457890d
commit d0c65c144a
2 changed files with 14 additions and 2 deletions

View File

@ -22,13 +22,21 @@ import {DOM} from 'angular2/src/core/dom/dom_adapter';
import {DebugElement, DebugElement_} from 'angular2/src/core/debug/debug_element'; import {DebugElement, DebugElement_} from 'angular2/src/core/debug/debug_element';
export abstract class ComponentFixture {
/**
* @deprecated Use ComponentFixture
*/
export abstract class RootTestComponent {
debugElement: DebugElement; debugElement: DebugElement;
abstract detectChanges(): void; abstract detectChanges(): void;
abstract destroy(): void; abstract destroy(): void;
} }
export abstract class ComponentFixture extends RootTestComponent {}
export class ComponentFixture_ extends ComponentFixture { export class ComponentFixture_ extends ComponentFixture {
/** @internal */ /** @internal */
_componentRef: ComponentRef; _componentRef: ComponentRef;

View File

@ -7,6 +7,10 @@
* *
*/ */
export * from './src/testing/testing'; export * from './src/testing/testing';
export {ComponentFixture, TestComponentBuilder} from './src/testing/test_component_builder'; export {
ComponentFixture,
RootTestComponent,
TestComponentBuilder
} from './src/testing/test_component_builder';
export * from './src/testing/test_injector'; export * from './src/testing/test_injector';
export * from './src/testing/fake_async'; export * from './src/testing/fake_async';