2016-05-20 19:11:49 -04:00
|
|
|
import {TEST_BROWSER_STATIC_PLATFORM_PROVIDERS, ADDITIONAL_TEST_BROWSER_STATIC_PROVIDERS} from "./browser_static";
|
|
|
|
import {BROWSER_APP_PROVIDERS, BROWSER_APP_COMPILER_PROVIDERS} from "../index";
|
|
|
|
import {DirectiveResolver, ViewResolver} from "@angular/compiler";
|
2016-05-13 16:22:29 -04:00
|
|
|
import {
|
|
|
|
MockDirectiveResolver,
|
|
|
|
MockViewResolver,
|
|
|
|
TestComponentRenderer,
|
|
|
|
TestComponentBuilder
|
2016-05-20 19:11:49 -04:00
|
|
|
} from "@angular/compiler/testing";
|
|
|
|
import {DOMTestComponentRenderer} from "./dom_test_component_renderer";
|
2016-04-28 20:50:03 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Default platform providers for testing.
|
|
|
|
*/
|
2016-05-19 17:31:21 -04:00
|
|
|
export const TEST_BROWSER_PLATFORM_PROVIDERS: Array<any /*Type | Provider | any[]*/> =
|
2016-05-20 19:11:49 -04:00
|
|
|
[TEST_BROWSER_STATIC_PLATFORM_PROVIDERS];
|
2016-04-28 20:50:03 -04:00
|
|
|
|
2016-05-13 16:22:29 -04:00
|
|
|
|
2016-05-19 17:31:21 -04:00
|
|
|
export const ADDITIONAL_TEST_BROWSER_PROVIDERS = [
|
2016-05-20 19:11:49 -04:00
|
|
|
{provide: DirectiveResolver, useClass: MockDirectiveResolver},
|
|
|
|
{provide: ViewResolver, useClass: MockViewResolver},
|
2016-05-13 16:22:29 -04:00
|
|
|
TestComponentBuilder,
|
2016-05-20 19:11:49 -04:00
|
|
|
{provide: TestComponentRenderer, useClass: DOMTestComponentRenderer},
|
2016-05-13 16:22:29 -04:00
|
|
|
];
|
|
|
|
|
2016-04-28 20:50:03 -04:00
|
|
|
/**
|
|
|
|
* Default application providers for testing.
|
|
|
|
*/
|
2016-05-19 17:31:21 -04:00
|
|
|
export const TEST_BROWSER_APPLICATION_PROVIDERS: Array<any /*Type | Provider | any[]*/> =
|
2016-05-20 19:11:49 -04:00
|
|
|
[
|
2016-05-19 17:31:21 -04:00
|
|
|
BROWSER_APP_PROVIDERS,
|
2016-05-20 19:11:49 -04:00
|
|
|
BROWSER_APP_COMPILER_PROVIDERS,
|
2016-05-19 17:31:21 -04:00
|
|
|
ADDITIONAL_TEST_BROWSER_STATIC_PROVIDERS,
|
|
|
|
ADDITIONAL_TEST_BROWSER_PROVIDERS
|
2016-05-13 16:22:29 -04:00
|
|
|
];
|