fix(platform-server): correctly import private DOMTestComponentRenderer
This commit is contained in:
parent
6fc267f22c
commit
7afee97d1b
|
@ -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
|
||||
};
|
|
@ -5,6 +5,8 @@ import {TEST_BROWSER_APPLICATION_PROVIDERS, TEST_BROWSER_PLATFORM_PROVIDERS} fro
|
|||
import {BROWSER_APP_COMPILER_PROVIDERS} from './index';
|
||||
import {DOMTestComponentRenderer} from './testing/dom_test_component_renderer';
|
||||
|
||||
export * from './private_export_testing'
|
||||
|
||||
/**
|
||||
* Default platform providers for testing.
|
||||
*/
|
||||
|
|
|
@ -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;
|
|
@ -2,10 +2,10 @@ import {MockLocationStrategy} from '@angular/common/testing';
|
|||
import {COMPILER_PROVIDERS, DirectiveResolver, ViewResolver, XHR} from '@angular/compiler';
|
||||
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 {DOMTestComponentRenderer} from '@angular/platform-browser-dynamic/testing';
|
||||
import {BrowserDetection} from '@angular/platform-browser/testing';
|
||||
|
||||
import {AnimationDriver, NoOpAnimationDriver} from '../core_private';
|
||||
import {DOMTestComponentRenderer} from '../platform_browser_dynamic_testing_private';
|
||||
import {Parse5DomAdapter} from '../src/parse5_adapter';
|
||||
|
||||
import {DOCUMENT, BROWSER_SANITIZATION_PROVIDERS, EventManager, EVENT_MANAGER_PLUGINS, ELEMENT_PROBE_PROVIDERS, DomEventsPlugin,} from '@angular/platform-browser';
|
||||
|
|
|
@ -1656,6 +1656,7 @@ const PLATFORM_BROWSER_DYNAMIC = [
|
|||
const PLATFORM_BROWSER_DYNAMIC_TESTING = [
|
||||
'const TEST_BROWSER_DYNAMIC_APPLICATION_PROVIDERS:Array<any>',
|
||||
'const TEST_BROWSER_DYNAMIC_PLATFORM_PROVIDERS:Array<any>',
|
||||
'var __platform_browser_dynamic_private__:any',
|
||||
];
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue