source: trip-planner-front/node_modules/@angular/material/datepicker/testing/datepicker-toggle-harness.d.ts@ e29cc2e

Last change on this file since e29cc2e 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 { HarnessPredicate } from '@angular/cdk/testing';
9import { DatepickerToggleHarnessFilters } from './datepicker-harness-filters';
10import { DatepickerTriggerHarnessBase } from './datepicker-trigger-harness-base';
11/** Harness for interacting with a standard Material datepicker toggle in tests. */
12export declare class MatDatepickerToggleHarness extends DatepickerTriggerHarnessBase {
13 static hostSelector: string;
14 /** The clickable button inside the toggle. */
15 private _button;
16 /**
17 * Gets a `HarnessPredicate` that can be used to search for a `MatDatepickerToggleHarness` that
18 * meets certain criteria.
19 * @param options Options for filtering which datepicker toggle instances are considered a match.
20 * @return a `HarnessPredicate` configured with the given options.
21 */
22 static with(options?: DatepickerToggleHarnessFilters): HarnessPredicate<MatDatepickerToggleHarness>;
23 /** Gets whether the calendar associated with the toggle is open. */
24 isCalendarOpen(): Promise<boolean>;
25 /** Whether the toggle is disabled. */
26 isDisabled(): Promise<boolean>;
27 protected _openCalendar(): Promise<void>;
28}
Note: See TracBrowser for help on using the repository browser.