2016-04-28 20:50:03 -04:00
|
|
|
import {
|
|
|
|
TEST_BROWSER_STATIC_PLATFORM_PROVIDERS,
|
|
|
|
ADDITIONAL_TEST_BROWSER_PROVIDERS
|
|
|
|
} from '@angular/platform-browser/testing';
|
|
|
|
import {BROWSER_APP_DYNAMIC_PROVIDERS} from '../index';
|
2016-05-13 16:22:29 -04:00
|
|
|
import {DirectiveResolver, ViewResolver} from '@angular/compiler';
|
|
|
|
import {
|
|
|
|
MockDirectiveResolver,
|
|
|
|
MockViewResolver,
|
|
|
|
TestComponentRenderer,
|
|
|
|
TestComponentBuilder
|
|
|
|
} from '@angular/compiler/testing';
|
|
|
|
import {DOMTestComponentRenderer} from './dom_test_component_renderer';
|
2016-04-28 20:50:03 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Default platform providers for testing.
|
|
|
|
*/
|
|
|
|
export const TEST_BROWSER_DYNAMIC_PLATFORM_PROVIDERS: Array<any /*Type | Provider | any[]*/> =
|
2016-05-02 01:50:37 -04:00
|
|
|
/*@ts2dart_const*/[TEST_BROWSER_STATIC_PLATFORM_PROVIDERS];
|
2016-04-28 20:50:03 -04:00
|
|
|
|
2016-05-13 16:22:29 -04:00
|
|
|
|
|
|
|
export const ADDITIONAL_DYNAMIC_TEST_BROWSER_PROVIDERS = [
|
|
|
|
/*@ts2dart_Provider*/ {provide: DirectiveResolver, useClass: MockDirectiveResolver},
|
|
|
|
/*@ts2dart_Provider*/ {provide: ViewResolver, useClass: MockViewResolver},
|
|
|
|
TestComponentBuilder,
|
|
|
|
/*@ts2dart_Provider*/ {provide: TestComponentRenderer, useClass: DOMTestComponentRenderer},
|
|
|
|
];
|
|
|
|
|
2016-04-28 20:50:03 -04:00
|
|
|
/**
|
|
|
|
* Default application providers for testing.
|
|
|
|
*/
|
|
|
|
export const TEST_BROWSER_DYNAMIC_APPLICATION_PROVIDERS: Array<any /*Type | Provider | any[]*/> =
|
2016-05-13 16:22:29 -04:00
|
|
|
/*@ts2dart_const*/[
|
|
|
|
BROWSER_APP_DYNAMIC_PROVIDERS,
|
|
|
|
ADDITIONAL_TEST_BROWSER_PROVIDERS,
|
|
|
|
ADDITIONAL_DYNAMIC_TEST_BROWSER_PROVIDERS
|
|
|
|
];
|