diff --git a/modules/@angular/platform-browser-dynamic/testing.ts b/modules/@angular/platform-browser-dynamic/testing.ts index b373f87d65..415eb286f3 100644 --- a/modules/@angular/platform-browser-dynamic/testing.ts +++ b/modules/@angular/platform-browser-dynamic/testing.ts @@ -25,11 +25,6 @@ export const platformBrowserDynamicTesting = createPlatformFactory( platformCoreDynamicTesting, 'browserDynamicTesting', INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS); -/** - * @deprecated Use {@link platformBrowserDynamicTesting} instead - */ -export const browserDynamicTestingPlatform = platformBrowserDynamicTesting; - /** * NgModule for testing. * @@ -46,7 +41,7 @@ export class BrowserDynamicTestingModule { } /** - * @deprecated Use initTestEnvironment with browserDynamicTestingPlatform instead. + * @deprecated Use initTestEnvironment with platformBrowserDynamicTesting instead. */ export const TEST_BROWSER_DYNAMIC_PLATFORM_PROVIDERS: Array = // Note: This is not a real provider but a hack to still support the deprecated diff --git a/modules/@angular/router/karma-test-shim.js b/modules/@angular/router/karma-test-shim.js index ac87dabe79..e4b03e2137 100644 --- a/modules/@angular/router/karma-test-shim.js +++ b/modules/@angular/router/karma-test-shim.js @@ -74,7 +74,7 @@ Promise.all([ testing.initTestEnvironment( testingBrowser.BrowserDynamicTestingModule, - testingBrowser.browserDynamicTestingPlatform()); + testingBrowser.platformBrowserDynamicTesting()); }).then(function() { // Finally, load all spec files. diff --git a/test-main.js b/test-main.js index 03007ce42a..896db2c67c 100644 --- a/test-main.js +++ b/test-main.js @@ -77,7 +77,7 @@ System.import('@angular/core/testing') .then(function(browserTesting) { coreTesting.initTestEnvironment( browserTesting.BrowserDynamicTestingModule, - browserTesting.browserDynamicTestingPlatform()); + browserTesting.platformBrowserDynamicTesting()); }); }) .then(function() { diff --git a/tools/public_api_guard/platform-browser-dynamic/testing.d.ts b/tools/public_api_guard/platform-browser-dynamic/testing.d.ts index 5f4d631e96..8019615d36 100644 --- a/tools/public_api_guard/platform-browser-dynamic/testing.d.ts +++ b/tools/public_api_guard/platform-browser-dynamic/testing.d.ts @@ -2,9 +2,6 @@ export declare class BrowserDynamicTestingModule { } -/** @deprecated */ -export declare const browserDynamicTestingPlatform: (extraProviders?: any[]) => PlatformRef; - /** @experimental */ export declare const platformBrowserDynamicTesting: (extraProviders?: any[]) => PlatformRef;