source: trip-planner-front/node_modules/@angular/material/datepicker/testing/calendar-cell-harness.d.ts@ 6a3a178

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

initial commit

  • Property mode set to 100644
File size: 2.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 { HarnessPredicate, ComponentHarness } from '@angular/cdk/testing';
9import { CalendarCellHarnessFilters } from './datepicker-harness-filters';
10/** Harness for interacting with a standard Material calendar cell in tests. */
11export declare class MatCalendarCellHarness extends ComponentHarness {
12 static hostSelector: string;
13 /** Reference to the inner content element inside the cell. */
14 private _content;
15 /**
16 * Gets a `HarnessPredicate` that can be used to search for a `MatCalendarCellHarness`
17 * that meets certain criteria.
18 * @param options Options for filtering which cell instances are considered a match.
19 * @return a `HarnessPredicate` configured with the given options.
20 */
21 static with(options?: CalendarCellHarnessFilters): HarnessPredicate<MatCalendarCellHarness>;
22 /** Gets the text of the calendar cell. */
23 getText(): Promise<string>;
24 /** Gets the aria-label of the calendar cell. */
25 getAriaLabel(): Promise<string>;
26 /** Whether the cell is selected. */
27 isSelected(): Promise<boolean>;
28 /** Whether the cell is disabled. */
29 isDisabled(): Promise<boolean>;
30 /** Whether the cell is currently activated using keyboard navigation. */
31 isActive(): Promise<boolean>;
32 /** Whether the cell represents today's date. */
33 isToday(): Promise<boolean>;
34 /** Selects the calendar cell. Won't do anything if the cell is disabled. */
35 select(): Promise<void>;
36 /** Hovers over the calendar cell. */
37 hover(): Promise<void>;
38 /** Moves the mouse away from the calendar cell. */
39 mouseAway(): Promise<void>;
40 /** Focuses the calendar cell. */
41 focus(): Promise<void>;
42 /** Removes focus from the calendar cell. */
43 blur(): Promise<void>;
44 /** Whether the cell is the start of the main range. */
45 isRangeStart(): Promise<boolean>;
46 /** Whether the cell is the end of the main range. */
47 isRangeEnd(): Promise<boolean>;
48 /** Whether the cell is part of the main range. */
49 isInRange(): Promise<boolean>;
50 /** Whether the cell is the start of the comparison range. */
51 isComparisonRangeStart(): Promise<boolean>;
52 /** Whether the cell is the end of the comparison range. */
53 isComparisonRangeEnd(): Promise<boolean>;
54 /** Whether the cell is inside of the comparison range. */
55 isInComparisonRange(): Promise<boolean>;
56 /** Whether the cell is the start of the preview range. */
57 isPreviewRangeStart(): Promise<boolean>;
58 /** Whether the cell is the end of the preview range. */
59 isPreviewRangeEnd(): Promise<boolean>;
60 /** Whether the cell is inside of the preview range. */
61 isInPreviewRange(): Promise<boolean>;
62 /** Returns whether the cell has a particular CSS class-based state. */
63 private _hasState;
64}
Note: See TracBrowser for help on using the repository browser.