refactor(test_injector): Provide separate methods for creating test injector with and without runtime compiler.

BREAKING CHANGE:
`createTestInjector()` does not more include the runtime compiler. Use `createTestInjectorWithRuntimeCompiler()` instead.
Closes #5583
This commit is contained in:
Tobias Bosch
2015-12-03 13:31:11 -08:00
parent 0a3a17ff10
commit 0614797d84
10 changed files with 39 additions and 17 deletions
@@ -5,7 +5,7 @@ import {
it,
expect,
beforeEach,
createTestInjector,
createTestInjectorWithRuntimeCompiler,
beforeEachProviders,
SpyObject,
proxy
@@ -5,7 +5,7 @@ import {
it,
expect,
beforeEach,
createTestInjector,
createTestInjectorWithRuntimeCompiler,
beforeEachProviders,
SpyObject,
proxy
@@ -5,7 +5,7 @@ import {
it,
expect,
beforeEach,
createTestInjector,
createTestInjectorWithRuntimeCompiler,
beforeEachProviders,
SpyObject,
proxy
@@ -7,7 +7,7 @@ import {
iit,
expect,
beforeEach,
createTestInjector,
createTestInjectorWithRuntimeCompiler,
beforeEachProviders,
TestComponentBuilder
} from "angular2/testing_internal";
@@ -101,7 +101,7 @@ export function main() {
beforeEachProviders(() => {
var uiRenderProtoViewStore = new RenderProtoViewRefStore(false);
uiRenderViewStore = new RenderViewWithFragmentsStore(false);
uiInjector = createTestInjector([
uiInjector = createTestInjectorWithRuntimeCompiler([
provide(RenderProtoViewRefStore, {useValue: uiRenderProtoViewStore}),
provide(RenderViewWithFragmentsStore, {useValue: uiRenderViewStore}),
provide(DomRenderer, {useClass: DomRenderer_}),
@@ -5,7 +5,7 @@ import {
it,
expect,
beforeEach,
createTestInjector,
createTestInjectorWithRuntimeCompiler,
beforeEachProviders
} from 'angular2/testing_internal';
import {SpyMessageBroker} from './spies';