/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { HarnessPredicate } from '@angular/cdk/testing'; import { MatLegacyFooterRowHarness, MatLegacyHeaderRowHarness, MatLegacyRowHarness, } from './row-harness'; import { _MatTableHarnessBase } from '@angular/material/table/testing'; /** * Harness for interacting with a standard mat-table in tests. * @deprecated Use `MatTableHarness` from `@angular/material/table/testing` instead. See https://material.angular.io/guide/mdc-migration for information about migrating. * @breaking-change 17.0.0 */ export class MatLegacyTableHarness extends _MatTableHarnessBase { constructor() { super(...arguments); this._headerRowHarness = MatLegacyHeaderRowHarness; this._rowHarness = MatLegacyRowHarness; this._footerRowHarness = MatLegacyFooterRowHarness; } /** The selector for the host element of a `MatTableHarness` instance. */ static { this.hostSelector = '.mat-table'; } /** * Gets a `HarnessPredicate` that can be used to search for a table with specific attributes. * @param options Options for narrowing the search * @return a `HarnessPredicate` configured with the given options. */ static with(options = {}) { return new HarnessPredicate(MatLegacyTableHarness, options); } } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUtaGFybmVzcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9tYXRlcmlhbC9sZWdhY3ktdGFibGUvdGVzdGluZy90YWJsZS1oYXJuZXNzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRztBQUVILE9BQU8sRUFBQyxnQkFBZ0IsRUFBQyxNQUFNLHNCQUFzQixDQUFDO0FBQ3RELE9BQU8sRUFDTCx5QkFBeUIsRUFDekIseUJBQXlCLEVBQ3pCLG1CQUFtQixHQUNwQixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUMsb0JBQW9CLEVBQXNCLE1BQU0saUNBQWlDLENBQUM7QUFFMUY7Ozs7R0FJRztBQUNILE1BQU0sT0FB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