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

View File

@ -73,7 +73,7 @@ dynamic _runInjectableFunction(Function fn) {
}
if (_currentInjector == null) {
_currentInjector = createTestInjector(_currentTestProviders);
_currentInjector = createTestInjectorWithRuntimeCompiler(_currentTestProviders);
}
var injectFn = new FunctionWithParamTokens(tokens, fn, false);
return injectFn.execute(_currentInjector);