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 | */
|
---|
8 | import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
---|
9 | import { GridListHarnessFilters, GridTileHarnessFilters } from './grid-list-harness-filters';
|
---|
10 | import { MatGridTileHarness } from './grid-tile-harness';
|
---|
11 | /** Harness for interacting with a standard `MatGridList` in tests. */
|
---|
12 | export 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 | }
|
---|