fix(platform-server): correctly import private DOMTestComponentRenderer

This commit is contained in:
Igor Minar 2016-06-14 17:21:16 -07:00
parent 6fc267f22c
commit 7afee97d1b
5 changed files with 17 additions and 1 deletions

View File

@ -0,0 +1,10 @@
import * as testing from './testing/dom_test_component_renderer';
export declare namespace __platform_browser_dynamic_private_types__ {
export type DOMTestComponentRenderer = testing.DOMTestComponentRenderer;
export var DOMTestComponentRenderer: typeof testing.DOMTestComponentRenderer;
}
export var __platform_browser_dynamic_private__ = {
DOMTestComponentRenderer: testing.DOMTestComponentRenderer
};

View File

@ -5,6 +5,8 @@ import {TEST_BROWSER_APPLICATION_PROVIDERS, TEST_BROWSER_PLATFORM_PROVIDERS} fro
import {BROWSER_APP_COMPILER_PROVIDERS} from './index'; import {BROWSER_APP_COMPILER_PROVIDERS} from './index';
import {DOMTestComponentRenderer} from './testing/dom_test_component_renderer'; import {DOMTestComponentRenderer} from './testing/dom_test_component_renderer';
export * from './private_export_testing'
/** /**
* Default platform providers for testing. * Default platform providers for testing.
*/ */

View File

@ -0,0 +1,3 @@
import {__platform_browser_dynamic_private__ as r, __platform_browser_dynamic_private_types__ as t} from '@angular/platform-browser-dynamic/testing';
export var DOMTestComponentRenderer: typeof t.DOMTestComponentRenderer = r.DOMTestComponentRenderer;

View File

@ -2,10 +2,10 @@ import {MockLocationStrategy} from '@angular/common/testing';
import {COMPILER_PROVIDERS, DirectiveResolver, ViewResolver, XHR} from '@angular/compiler'; import {COMPILER_PROVIDERS, DirectiveResolver, ViewResolver, XHR} from '@angular/compiler';
import {MockDirectiveResolver, MockViewResolver, TestComponentBuilder, TestComponentRenderer} from '@angular/compiler/testing'; import {MockDirectiveResolver, MockViewResolver, TestComponentBuilder, TestComponentRenderer} from '@angular/compiler/testing';
import {APPLICATION_COMMON_PROVIDERS, APP_ID, NgZone, PLATFORM_COMMON_PROVIDERS, PLATFORM_INITIALIZER, RootRenderer} from '@angular/core'; import {APPLICATION_COMMON_PROVIDERS, APP_ID, NgZone, PLATFORM_COMMON_PROVIDERS, PLATFORM_INITIALIZER, RootRenderer} from '@angular/core';
import {DOMTestComponentRenderer} from '@angular/platform-browser-dynamic/testing';
import {BrowserDetection} from '@angular/platform-browser/testing'; import {BrowserDetection} from '@angular/platform-browser/testing';
import {AnimationDriver, NoOpAnimationDriver} from '../core_private'; import {AnimationDriver, NoOpAnimationDriver} from '../core_private';
import {DOMTestComponentRenderer} from '../platform_browser_dynamic_testing_private';
import {Parse5DomAdapter} from '../src/parse5_adapter'; import {Parse5DomAdapter} from '../src/parse5_adapter';
import {DOCUMENT, BROWSER_SANITIZATION_PROVIDERS, EventManager, EVENT_MANAGER_PLUGINS, ELEMENT_PROBE_PROVIDERS, DomEventsPlugin,} from '@angular/platform-browser'; import {DOCUMENT, BROWSER_SANITIZATION_PROVIDERS, EventManager, EVENT_MANAGER_PLUGINS, ELEMENT_PROBE_PROVIDERS, DomEventsPlugin,} from '@angular/platform-browser';

View File

@ -1656,6 +1656,7 @@ const PLATFORM_BROWSER_DYNAMIC = [
const PLATFORM_BROWSER_DYNAMIC_TESTING = [ const PLATFORM_BROWSER_DYNAMIC_TESTING = [
'const TEST_BROWSER_DYNAMIC_APPLICATION_PROVIDERS:Array<any>', 'const TEST_BROWSER_DYNAMIC_APPLICATION_PROVIDERS:Array<any>',
'const TEST_BROWSER_DYNAMIC_PLATFORM_PROVIDERS:Array<any>', 'const TEST_BROWSER_DYNAMIC_PLATFORM_PROVIDERS:Array<any>',
'var __platform_browser_dynamic_private__:any',
]; ];