chore: remove `browserDynamicTestingPlatform` as it is deprecated and was not part of rc.4
Closes #10319
This commit is contained in:
parent
553344739c
commit
69e72c0786
|
@ -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<any /*Type | Provider | any[]*/> =
|
||||
// Note: This is not a real provider but a hack to still support the deprecated
|
||||
|
|
|
@ -74,7 +74,7 @@ Promise.all([
|
|||
|
||||
testing.initTestEnvironment(
|
||||
testingBrowser.BrowserDynamicTestingModule,
|
||||
testingBrowser.browserDynamicTestingPlatform());
|
||||
testingBrowser.platformBrowserDynamicTesting());
|
||||
|
||||
}).then(function() {
|
||||
// Finally, load all spec files.
|
||||
|
|
|
@ -77,7 +77,7 @@ System.import('@angular/core/testing')
|
|||
.then(function(browserTesting) {
|
||||
coreTesting.initTestEnvironment(
|
||||
browserTesting.BrowserDynamicTestingModule,
|
||||
browserTesting.browserDynamicTestingPlatform());
|
||||
browserTesting.platformBrowserDynamicTesting());
|
||||
});
|
||||
})
|
||||
.then(function() {
|
||||
|
|
|
@ -2,9 +2,6 @@
|
|||
export declare class BrowserDynamicTestingModule {
|
||||
}
|
||||
|
||||
/** @deprecated */
|
||||
export declare const browserDynamicTestingPlatform: (extraProviders?: any[]) => PlatformRef;
|
||||
|
||||
/** @experimental */
|
||||
export declare const platformBrowserDynamicTesting: (extraProviders?: any[]) => PlatformRef;
|
||||
|
||||
|
|
Loading…
Reference in New Issue