source: trip-planner-front/node_modules/@angular/material/input/testing/native-option-harness.d.ts@ 76712b2

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

initial commit

  • Property mode set to 100644
File size: 1.3 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 { NativeOptionHarnessFilters } from './native-select-harness-filters';
10/** Harness for interacting with a native `option` in tests. */
11export declare class MatNativeOptionHarness extends ComponentHarness {
12 /** Selector used to locate option instances. */
13 static hostSelector: string;
14 /**
15 * Gets a `HarnessPredicate` that can be used to search for a `MatNativeOptionHarness` that meets
16 * certain criteria.
17 * @param options Options for filtering which option instances are considered a match.
18 * @return a `HarnessPredicate` configured with the given options.
19 */
20 static with(options?: NativeOptionHarnessFilters): HarnessPredicate<MatNativeOptionHarness>;
21 /** Gets the option's label text. */
22 getText(): Promise<string>;
23 /** Index of the option within the native `select` element. */
24 getIndex(): Promise<number>;
25 /** Gets whether the option is disabled. */
26 isDisabled(): Promise<boolean>;
27 /** Gets whether the option is selected. */
28 isSelected(): Promise<boolean>;
29}
Note: See TracBrowser for help on using the repository browser.