Skip to content

Commit 69e72c0

Browse files
committed
chore: remove browserDynamicTestingPlatform as it is deprecated and was not part of rc.4
Closes angular#10319
1 parent 5533447 commit 69e72c0

File tree

4 files changed

+3
-11
lines changed

4 files changed

+3
-11
lines changed

modules/@angular/platform-browser-dynamic/testing.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ export const platformBrowserDynamicTesting = createPlatformFactory(
2525
platformCoreDynamicTesting, 'browserDynamicTesting',
2626
INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS);
2727

28-
/**
29-
* @deprecated Use {@link platformBrowserDynamicTesting} instead
30-
*/
31-
export const browserDynamicTestingPlatform = platformBrowserDynamicTesting;
32-
3328
/**
3429
* NgModule for testing.
3530
*
@@ -46,7 +41,7 @@ export class BrowserDynamicTestingModule {
4641
}
4742

4843
/**
49-
* @deprecated Use initTestEnvironment with browserDynamicTestingPlatform instead.
44+
* @deprecated Use initTestEnvironment with platformBrowserDynamicTesting instead.
5045
*/
5146
export const TEST_BROWSER_DYNAMIC_PLATFORM_PROVIDERS: Array<any /*Type | Provider | any[]*/> =
5247
// Note: This is not a real provider but a hack to still support the deprecated

modules/@angular/router/karma-test-shim.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Promise.all([
7474

7575
testing.initTestEnvironment(
7676
testingBrowser.BrowserDynamicTestingModule,
77-
testingBrowser.browserDynamicTestingPlatform());
77+
testingBrowser.platformBrowserDynamicTesting());
7878

7979
}).then(function() {
8080
// Finally, load all spec files.

test-main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ System.import('@angular/core/testing')
7777
.then(function(browserTesting) {
7878
coreTesting.initTestEnvironment(
7979
browserTesting.BrowserDynamicTestingModule,
80-
browserTesting.browserDynamicTestingPlatform());
80+
browserTesting.platformBrowserDynamicTesting());
8181
});
8282
})
8383
.then(function() {

tools/public_api_guard/platform-browser-dynamic/testing.d.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
export declare class BrowserDynamicTestingModule {
33
}
44

5-
/** @deprecated */
6-
export declare const browserDynamicTestingPlatform: (extraProviders?: any[]) => PlatformRef;
7-
85
/** @experimental */
96
export declare const platformBrowserDynamicTesting: (extraProviders?: any[]) => PlatformRef;
107

0 commit comments

Comments
 (0)