chore(test): add config for pub serve testing.

Closes #5580

Closes #5580
This commit is contained in:
Kevin Moore
2015-12-03 12:00:10 -08:00
committed by Jeremy Elbourn
parent 1710272b3c
commit 1edb17b8d0
3 changed files with 14 additions and 5 deletions

View File

@ -54,7 +54,6 @@ void setUpProviders(Iterable<Provider> providerFactory()) {
});
}
dynamic _runInjectableFunction(Function fn) {
var params = reflector.parameters(fn);
List<dynamic> tokens = <dynamic>[];
@ -111,8 +110,10 @@ void ngTest(String description, Function fn,
}, testOn: testOn, timeout: timeout, skip: skip, onPlatform: onPlatform);
}
final _providersExpando = new Expando<List<Provider>>('Providers for the current test');
final _injectorExpando = new Expando<Injector>('Angular Injector for the current test');
final _providersExpando =
new Expando<List<Provider>>('Providers for the current test');
final _injectorExpando =
new Expando<Injector>('Angular Injector for the current test');
List get _currentTestProviders {
if (_providersExpando[_currentTest] == null) {
@ -120,6 +121,7 @@ List get _currentTestProviders {
}
return _providersExpando[_currentTest];
}
Injector get _currentInjector => _injectorExpando[_currentTest];
void set _currentInjector(Injector newInjector) {
_injectorExpando[_currentTest] = newInjector;