/** * @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 { _MatTooltipHarnessBase } from '@angular/material/tooltip/testing'; /** * Harness for interacting with a standard mat-tooltip in tests. * @deprecated Use `MatTooltipHarness` from `@angular/material/tooltip/testing` instead. See https://material.angular.io/guide/mdc-migration for information about migrating. * @breaking-change 17.0.0 */ export class MatLegacyTooltipHarness extends _MatTooltipHarnessBase { constructor() { super(...arguments); this._optionalPanel = this.documentRootLocatorFactory().locatorForOptional('.mat-tooltip'); this._hiddenClass = 'mat-tooltip-hide'; this._disabledClass = 'mat-tooltip-disabled'; this._showAnimationName = 'mat-tooltip-show'; this._hideAnimationName = 'mat-tooltip-hide'; } static { this.hostSelector = '.mat-tooltip-trigger'; } /** * Gets a `HarnessPredicate` that can be used to search * for a tooltip trigger with specific attributes. * @param options Options for narrowing the search. * @return a `HarnessPredicate` configured with the given options. */ static with(options = {}) { return new HarnessPredicate(MatLegacyTooltipHarness, options); } } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbHRpcC1oYXJuZXNzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL21hdGVyaWFsL2xlZ2FjeS10b29sdGlwL3Rlc3RpbmcvdG9vbHRpcC1oYXJuZXNzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRztBQUVILE9BQU8sRUFBQyxnQkFBZ0IsRUFBQyxNQUFNLHNCQUFzQixDQUFDO0FBQ3RELE9BQU8sRUFBQyxzQkFBc0IsRUFBd0IsTUFBTSxtQ0FBbUMsQ0FBQztBQUVoRzs7OztHQUlHO0FBQ0gsTUFBTSxPQUFPLHVCQUF3QixTQUFRLHNCQUFzQjtJQUFuRTs7UUFDWSxtQkFBYyxHQUFHLElB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