Skip to content

Commit 3ad0894

Browse files
authored
refactor(material/tabs): remove deprecated APIs for v13 (#23426)
Removes the APIs that were marked for removal in v13. BREAKING CHANGE: * `MatTabHarness.getHarnessLoaderForContent` has been removed. Use `MatTabHarness.getRootHarnessLoader` instead.
1 parent c4cf3c9 commit 3ad0894

File tree

3 files changed

+0
-22
lines changed

3 files changed

+0
-22
lines changed

src/material-experimental/mdc-tabs/testing/tab-harness.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,6 @@ export class MatTabHarness extends ContentContainerComponentHarness<string> {
6969
return contentEl.text();
7070
}
7171

72-
/**
73-
* Gets a `HarnessLoader` that can be used to load harnesses for components within the tab's
74-
* content area.
75-
* @deprecated Use `getHarness` or `getChildLoader` instead.
76-
* @breaking-change 12.0.0
77-
*/
78-
async getHarnessLoaderForContent(): Promise<HarnessLoader> {
79-
return this.getRootHarnessLoader();
80-
}
81-
8272
protected override async getRootHarnessLoader(): Promise<HarnessLoader> {
8373
const contentId = await this._getContentId();
8474
return this.documentRootLocatorFactory().harnessLoaderFor(`#${contentId}`);

src/material/tabs/testing/tab-harness.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,6 @@ export class MatTabHarness extends ContentContainerComponentHarness<string> {
6969
return contentEl.text();
7070
}
7171

72-
/**
73-
* Gets a `HarnessLoader` that can be used to load harnesses for components within the tab's
74-
* content area.
75-
* @deprecated Use `getHarness` or `getChildLoader` instead.
76-
* @breaking-change 12.0.0
77-
*/
78-
async getHarnessLoaderForContent(): Promise<HarnessLoader> {
79-
return this.getRootHarnessLoader();
80-
}
81-
8272
protected override async getRootHarnessLoader(): Promise<HarnessLoader> {
8373
const contentId = await this._getContentId();
8474
return this.documentRootLocatorFactory().harnessLoaderFor(`#${contentId}`);

tools/public_api_guard/material/tabs-testing.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ export class MatTabGroupHarness extends ComponentHarness {
2323
export class MatTabHarness extends ContentContainerComponentHarness<string> {
2424
getAriaLabel(): Promise<string | null>;
2525
getAriaLabelledby(): Promise<string | null>;
26-
// @deprecated
27-
getHarnessLoaderForContent(): Promise<HarnessLoader>;
2826
getLabel(): Promise<string>;
2927
// (undocumented)
3028
protected getRootHarnessLoader(): Promise<HarnessLoader>;

0 commit comments

Comments
 (0)