source: trip-planner-front/node_modules/@angular/material/icon/testing/icon-harness.d.ts@ ceaed42

Last change on this file since ceaed42 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.2 KB
Line 
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 */
8import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
9import { IconHarnessFilters, IconType } from './icon-harness-filters';
10/** Harness for interacting with a standard mat-icon in tests. */
11export declare class MatIconHarness extends ComponentHarness {
12 /** The selector for the host element of a `MatIcon` instance. */
13 static hostSelector: string;
14 /**
15 * Gets a `HarnessPredicate` that can be used to search for a `MatIconHarness` that meets
16 * certain criteria.
17 * @param options Options for filtering which icon instances are considered a match.
18 * @return a `HarnessPredicate` configured with the given options.
19 */
20 static with(options?: IconHarnessFilters): HarnessPredicate<MatIconHarness>;
21 /** Gets the type of the icon. */
22 getType(): Promise<IconType>;
23 /** Gets the name of the icon. */
24 getName(): Promise<string | null>;
25 /** Gets the namespace of the icon. */
26 getNamespace(): Promise<string | null>;
27 /** Gets whether the icon is inline. */
28 isInline(): Promise<boolean>;
29}
Note: See TracBrowser for help on using the repository browser.