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

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

initial commit

  • Property mode set to 100644
File size: 1.8 KB
RevLine 
[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 */
8import { HarnessPredicate } from '@angular/cdk/testing';
9import { DatepickerInputHarnessFilters, CalendarHarnessFilters } from './datepicker-harness-filters';
10import { MatDatepickerInputHarnessBase } from './datepicker-input-harness-base';
11import { MatCalendarHarness } from './calendar-harness';
12import { DatepickerTrigger } from './datepicker-trigger-harness-base';
13/** Harness for interacting with a standard Material datepicker inputs in tests. */
14export declare class MatDatepickerInputHarness extends MatDatepickerInputHarnessBase implements DatepickerTrigger {
15 static hostSelector: string;
16 /**
17 * Gets a `HarnessPredicate` that can be used to search for a `MatDatepickerInputHarness`
18 * that meets certain criteria.
19 * @param options Options for filtering which input instances are considered a match.
20 * @return a `HarnessPredicate` configured with the given options.
21 */
22 static with(options?: DatepickerInputHarnessFilters): HarnessPredicate<MatDatepickerInputHarness>;
23 /** Gets whether the calendar associated with the input is open. */
24 isCalendarOpen(): Promise<boolean>;
25 /** Opens the calendar associated with the input. */
26 openCalendar(): Promise<void>;
27 /** Closes the calendar associated with the input. */
28 closeCalendar(): Promise<void>;
29 /** Whether a calendar is associated with the input. */
30 hasCalendar(): Promise<boolean>;
31 /**
32 * Gets the `MatCalendarHarness` that is associated with the trigger.
33 * @param filter Optionally filters which calendar is included.
34 */
35 getCalendar(filter?: CalendarHarnessFilters): Promise<MatCalendarHarness>;
36}
Note: See TracBrowser for help on using the repository browser.