/** * @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 { MatLegacyCellHarness, MatLegacyFooterCellHarness, MatLegacyHeaderCellHarness, } from './cell-harness'; import { _MatRowHarnessBase } from '@angular/material/table/testing'; /** * Harness for interacting with a standard Angular Material table row. * @deprecated Use `MatRowHarness` 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 MatLegacyRowHarness extends _MatRowHarnessBase { constructor() { super(...arguments); this._cellHarness = MatLegacyCellHarness; } /** The selector for the host element of a `MatRowHarness` instance. */ static { this.hostSelector = '.mat-row'; } /** * Gets a `HarnessPredicate` that can be used to search for a table row with specific attributes. * @param options Options for narrowing the search * @return a `HarnessPredicate` configured with the given options. */ static with(options = {}) { return new HarnessPredicate(MatLegacyRowHarness, options); } } /** * Harness for interacting with a standard Angular Material table header row. * @deprecated Use `MatHeaderRowHarness` 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 MatLegacyHeaderRowHarness extends _MatRowHarnessBase { constructor() { super(...arguments); this._cellHarness = MatLegacyHeaderCellHarness; } /** The selector for the host element of a `MatHeaderRowHarness` instance. */ static { this.hostSelector = '.mat-header-row'; } /** * Gets a `HarnessPredicate` that can be used to search for * a table header row with specific attributes. * @param options Options for narrowing the search * @return a `HarnessPredicate` configured with the given options. */ static with(options = {}) { return new HarnessPredicate(MatLegacyHeaderRowHarness, options); } } /** * Harness for interacting with a standard Angular Material table footer row. * @deprecated Use `MatFooterRowHarness` 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 MatLegacyFooterRowHarness extends _MatRowHarnessBase { constructor() { super(...arguments); this._cellHarness = MatLegacyFooterCellHarness; } /** The selector for the host element of a `MatFooterRowHarness` instance. */ static { this.hostSelector = '.mat-footer-row'; } /** * Gets a `HarnessPredicate` that can be used to search for * a table footer row cell with specific attributes. * @param options Options for narrowing the search * @return a `HarnessPredicate` configured with the given options. */ static with(options = {}) { return new HarnessPredicate(MatLegacyFooterRowHarness, options); } } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm93LWhhcm5lc3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvbWF0ZXJpYWwvbGVnYWN5LXRhYmxlL3Rlc3Rpbmcvcm93LWhhcm5lc3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRUgsT0FBTyxFQUFDLGdCQUFnQixFQUFDLE1BQU0sc0JBQXNCLENBQUM7QUFDdEQsT0FBTyxFQUNMLG9CQUFvQixFQUNwQiwwQkFBMEIsRUFDMUIsMEJBQTBCLEdBQzNCLE1BQU0sZ0JBQWdCLENBQUM7QUFDeEIsT0FBTyxFQUFDLGtCQUFrQixFQUFvQixNQUFNLGlDQUFpQyxDQUFDO0FBRXRGOzs7O0dBSUc7QUFDSCxNQUFNLE9BQU8sbUJBQW9CLFNBQVEsa0JBR3hDO0lBSEQ7O1FBTVksaUJBQVksR0FBRyxvQkFBb0IsQ0FBQztJQVVoRCxDQUFDO0lBWkMsdUVBQXVFO2FBQ2hFLGlCQUFZLEdBQUcsVUFBVSxBQUFiLENBQWM7SUFHakM7Ozs7T0FJRztJQUNILE1BQU0sQ0FBQyxJQUFJLENBQUMsVUFBNkIsRUFBRTtRQUN6QyxPQUFPLElBQUksZ0JBQWdCLENBQUMsbUJBQW1CLEVBQUUsT0FBTyxDQUFDLENBQUM7SUFDNUQsQ0FBQzs7QUFHSDs7OztHQUlHO0FBQ0gsTUFBTSxPQUFPLHlCQUEwQixTQUFRLGtCQUc5QztJQUhEOztRQU1ZLGlCQUFZLEdBQUcsMEJBQTBCLENBQUM7SUFXdEQ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