source: trip-planner-front/node_modules/@angular/material/grid-list/testing/grid-list-harness.d.ts@ fa375fe

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

initial commit

  • Property mode set to 100644
File size: 1.8 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 { GridListHarnessFilters, GridTileHarnessFilters } from './grid-list-harness-filters';
10import { MatGridTileHarness } from './grid-tile-harness';
11/** Harness for interacting with a standard `MatGridList` in tests. */
12export declare class MatGridListHarness extends ComponentHarness {
13 /** The selector for the host element of a `MatGridList` instance. */
14 static hostSelector: string;
15 /**
16 * Gets a `HarnessPredicate` that can be used to search for a `MatGridListHarness`
17 * that meets certain criteria.
18 * @param options Options for filtering which dialog instances are considered a match.
19 * @return a `HarnessPredicate` configured with the given options.
20 */
21 static with(options?: GridListHarnessFilters): HarnessPredicate<MatGridListHarness>;
22 /**
23 * Tile coordinator that is used by the "MatGridList" for computing
24 * positions of tiles. We leverage the coordinator to provide an API
25 * for retrieving tiles based on visual tile positions.
26 */
27 private _tileCoordinator;
28 /** Gets all tiles of the grid-list. */
29 getTiles(filters?: GridTileHarnessFilters): Promise<MatGridTileHarness[]>;
30 /** Gets the amount of columns of the grid-list. */
31 getColumns(): Promise<number>;
32 /**
33 * Gets a tile of the grid-list that is located at the given location.
34 * @param row Zero-based row index.
35 * @param column Zero-based column index.
36 */
37 getTileAtPosition({ row, column }: {
38 row: number;
39 column: number;
40 }): Promise<MatGridTileHarness>;
41}
Note: See TracBrowser for help on using the repository browser.