Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove browserDynamicTestingPlatform as it is deprecated and… #10319

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 1 addition & 6 deletions modules/@angular/platform-browser-dynamic/testing.ts
Expand Up @@ -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.
*
Expand All @@ -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<any /*Type | Provider | any[]*/> =
// Note: This is not a real provider but a hack to still support the deprecated
Expand Down
2 changes: 1 addition & 1 deletion modules/@angular/router/karma-test-shim.js
Expand Up @@ -74,7 +74,7 @@ Promise.all([

testing.initTestEnvironment(
testingBrowser.BrowserDynamicTestingModule,
testingBrowser.browserDynamicTestingPlatform());
testingBrowser.platformBrowserDynamicTesting());

}).then(function() {
// Finally, load all spec files.
Expand Down
2 changes: 1 addition & 1 deletion test-main.js
Expand Up @@ -77,7 +77,7 @@ System.import('@angular/core/testing')
.then(function(browserTesting) {
coreTesting.initTestEnvironment(
browserTesting.BrowserDynamicTestingModule,
browserTesting.browserDynamicTestingPlatform());
browserTesting.platformBrowserDynamicTesting());
});
})
.then(function() {
Expand Down
3 changes: 0 additions & 3 deletions tools/public_api_guard/platform-browser-dynamic/testing.d.ts
Expand Up @@ -2,9 +2,6 @@
export declare class BrowserDynamicTestingModule {
}

/** @deprecated */
export declare const browserDynamicTestingPlatform: (extraProviders?: any[]) => PlatformRef;

/** @experimental */
export declare const platformBrowserDynamicTesting: (extraProviders?: any[]) => PlatformRef;

Expand Down