Skip to content

Commit ab8a338

Browse files
authored
test(table): remove unnecessary test (#15391)
1 parent ce4b814 commit ab8a338

File tree

1 file changed

+4
-52
lines changed

1 file changed

+4
-52
lines changed

src/cdk/table/table.spec.ts

Lines changed: 4 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -305,28 +305,6 @@ describe('CdkTable', () => {
305305
]);
306306
});
307307

308-
it('should be able to render and change multiple header and footer rows', () => {
309-
setupTableTestApp(MultipleHeaderFooterRowsCdkTableApp);
310-
fixture.detectChanges();
311-
312-
expectTableToMatchContent(tableElement, [
313-
['first-header'],
314-
['second-header'],
315-
['first-footer'],
316-
['second-footer'],
317-
]);
318-
319-
component.showAlternativeHeadersAndFooters = true;
320-
fixture.detectChanges();
321-
322-
expectTableToMatchContent(tableElement, [
323-
['first-header'],
324-
['second-header'],
325-
['first-footer'],
326-
['second-footer'],
327-
]);
328-
});
329-
330308
describe('with different data inputs other than data source', () => {
331309
let baseData: TestData[] = [
332310
{a: 'a_1', b: 'b_1', c: 'c_1'},
@@ -1513,40 +1491,14 @@ class NullDataCdkTableApp {
15131491
<td cdk-footer-cell *cdkFooterCellDef> second-footer </td>
15141492
</ng-container>
15151493
1516-
<ng-container *ngIf="!showAlternativeHeadersAndFooters">
1517-
<tr cdk-header-row *cdkHeaderRowDef="['first-header']"></tr>
1518-
<tr cdk-header-row *cdkHeaderRowDef="['second-header']"></tr>
1519-
<tr cdk-footer-row *cdkFooterRowDef="['first-footer']"></tr>
1520-
<tr cdk-footer-row *cdkFooterRowDef="['second-footer']"></tr>
1521-
</ng-container>
1522-
1523-
<ng-container cdkColumnDef="alt-first-header">
1524-
<th cdk-header-cell *cdkHeaderCellDef> alt-first-header </th>
1525-
</ng-container>
1526-
1527-
<ng-container cdkColumnDef="alt-second-header">
1528-
<th cdk-header-cell *cdkHeaderCellDef> alt-second-header </th>
1529-
</ng-container>
1530-
1531-
<ng-container cdkColumnDef="alt-first-footer">
1532-
<td cdk-footer-cell *cdkFooterCellDef> alt-first-footer </td>
1533-
</ng-container>
1534-
1535-
<ng-container cdkColumnDef="alt-second-footer">
1536-
<td cdk-footer-cell *cdkFooterCellDef> alt-second-footer </td>
1537-
</ng-container>
1538-
1539-
<ng-container *ngIf="showAlternativeHeadersAndFooters">
1540-
<tr cdk-header-row *cdkHeaderRowDef="['alt-first-header']"></tr>
1541-
<tr cdk-header-row *cdkHeaderRowDef="['alt-second-header']"></tr>
1542-
<tr cdk-footer-row *cdkFooterRowDef="['alt-first-footer']"></tr>
1543-
<tr cdk-footer-row *cdkFooterRowDef="['alt-second-footer']"></tr>
1544-
</ng-container>
1494+
<tr cdk-header-row *cdkHeaderRowDef="['first-header']"></tr>
1495+
<tr cdk-header-row *cdkHeaderRowDef="['second-header']"></tr>
1496+
<tr cdk-footer-row *cdkFooterRowDef="['first-footer']"></tr>
1497+
<tr cdk-footer-row *cdkFooterRowDef="['second-footer']"></tr>
15451498
</cdk-table>
15461499
`
15471500
})
15481501
class MultipleHeaderFooterRowsCdkTableApp {
1549-
showAlternativeHeadersAndFooters = false;
15501502
}
15511503

15521504
@Component({

0 commit comments

Comments
 (0)