You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.4 KiB
32 lines
1.4 KiB
/**
|
|
* @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 { AsyncFactoryFn, ComponentHarness, HarnessPredicate, TestElement } from '@angular/cdk/testing';
|
|
import { TooltipHarnessFilters } from './tooltip-harness-filters';
|
|
export declare abstract class _MatTooltipHarnessBase extends ComponentHarness {
|
|
protected abstract _optionalPanel: AsyncFactoryFn<TestElement | null>;
|
|
/** Shows the tooltip. */
|
|
show(): Promise<void>;
|
|
/** Hides the tooltip. */
|
|
hide(): Promise<void>;
|
|
/** Gets whether the tooltip is open. */
|
|
isOpen(): Promise<boolean>;
|
|
/** Gets a promise for the tooltip panel's text. */
|
|
getTooltipText(): Promise<string>;
|
|
}
|
|
/** Harness for interacting with a standard mat-tooltip in tests. */
|
|
export declare class MatTooltipHarness extends _MatTooltipHarnessBase {
|
|
protected _optionalPanel: AsyncFactoryFn<TestElement | null>;
|
|
static hostSelector: string;
|
|
/**
|
|
* 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?: TooltipHarnessFilters): HarnessPredicate<MatTooltipHarness>;
|
|
}
|