[6a3a178] | 1 | /**
|
---|
| 2 | * @license
|
---|
| 3 | * Copyright Google LLC All Rights Reserved.
|
---|
| 4 | *
|
---|
| 5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
| 6 | * found in the LICENSE file at https://angular.io/license
|
---|
| 7 | */
|
---|
| 8 | import { AsyncFactoryFn, ComponentHarness, HarnessPredicate, TestElement } from '@angular/cdk/testing';
|
---|
| 9 | import { TooltipHarnessFilters } from './tooltip-harness-filters';
|
---|
| 10 | export declare abstract class _MatTooltipHarnessBase extends ComponentHarness {
|
---|
| 11 | protected abstract _optionalPanel: AsyncFactoryFn<TestElement | null>;
|
---|
| 12 | /** Shows the tooltip. */
|
---|
| 13 | show(): Promise<void>;
|
---|
| 14 | /** Hides the tooltip. */
|
---|
| 15 | hide(): Promise<void>;
|
---|
| 16 | /** Gets whether the tooltip is open. */
|
---|
| 17 | isOpen(): Promise<boolean>;
|
---|
| 18 | /** Gets a promise for the tooltip panel's text. */
|
---|
| 19 | getTooltipText(): Promise<string>;
|
---|
| 20 | }
|
---|
| 21 | /** Harness for interacting with a standard mat-tooltip in tests. */
|
---|
| 22 | export declare class MatTooltipHarness extends _MatTooltipHarnessBase {
|
---|
| 23 | protected _optionalPanel: AsyncFactoryFn<TestElement | null>;
|
---|
| 24 | static hostSelector: string;
|
---|
| 25 | /**
|
---|
| 26 | * Gets a `HarnessPredicate` that can be used to search
|
---|
| 27 | * for a tooltip trigger with specific attributes.
|
---|
| 28 | * @param options Options for narrowing the search.
|
---|
| 29 | * @return a `HarnessPredicate` configured with the given options.
|
---|
| 30 | */
|
---|
| 31 | static with(options?: TooltipHarnessFilters): HarnessPredicate<MatTooltipHarness>;
|
---|
| 32 | }
|
---|