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

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

initial commit

  • Property mode set to 100644
File size: 1.9 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 { ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
9import { MatFormFieldControlHarness } from '@angular/material/form-field/testing/control';
10import { DatepickerInputHarnessFilters } from './datepicker-harness-filters';
11/** Sets up the filter predicates for a datepicker input harness. */
12export declare function getInputPredicate<T extends MatDatepickerInputHarnessBase>(type: ComponentHarnessConstructor<T>, options: DatepickerInputHarnessFilters): HarnessPredicate<T>;
13/** Base class for datepicker input harnesses. */
14export declare abstract class MatDatepickerInputHarnessBase extends MatFormFieldControlHarness {
15 /** Whether the input is disabled. */
16 isDisabled(): Promise<boolean>;
17 /** Whether the input is required. */
18 isRequired(): Promise<boolean>;
19 /** Gets the value of the input. */
20 getValue(): Promise<string>;
21 /**
22 * Sets the value of the input. The value will be set by simulating
23 * keypresses that correspond to the given value.
24 */
25 setValue(newValue: string): Promise<void>;
26 /** Gets the placeholder of the input. */
27 getPlaceholder(): Promise<string>;
28 /**
29 * Focuses the input and returns a promise that indicates when the
30 * action is complete.
31 */
32 focus(): Promise<void>;
33 /**
34 * Blurs the input and returns a promise that indicates when the
35 * action is complete.
36 */
37 blur(): Promise<void>;
38 /** Whether the input is focused. */
39 isFocused(): Promise<boolean>;
40 /** Gets the formatted minimum date for the input's value. */
41 getMin(): Promise<string | null>;
42 /** Gets the formatted maximum date for the input's value. */
43 getMax(): Promise<string | null>;
44}
Note: See TracBrowser for help on using the repository browser.