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.4 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 | */
|
---|
8 | import { ContentContainerComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
---|
9 | import { ToolbarHarnessFilters } from './toolbar-harness-filters';
|
---|
10 | /** Selectors for different sections of the mat-toolbar that contain user content. */
|
---|
11 | export declare const enum MatToolbarSection {
|
---|
12 | ROW = ".mat-toolbar-row"
|
---|
13 | }
|
---|
14 | /** Harness for interacting with a standard mat-toolbar in tests. */
|
---|
15 | export declare class MatToolbarHarness extends ContentContainerComponentHarness<MatToolbarSection> {
|
---|
16 | static hostSelector: string;
|
---|
17 | private _getRows;
|
---|
18 | /**
|
---|
19 | * Gets a `HarnessPredicate` that can be used to search for a `MatToolbarHarness` that meets
|
---|
20 | * certain criteria.
|
---|
21 | * @param options Options for filtering which card instances are considered a match.
|
---|
22 | * @return a `HarnessPredicate` configured with the given options.
|
---|
23 | */
|
---|
24 | static with(options?: ToolbarHarnessFilters): HarnessPredicate<MatToolbarHarness>;
|
---|
25 | /** Whether the toolbar has multiple rows. */
|
---|
26 | hasMultipleRows(): Promise<boolean>;
|
---|
27 | /** Gets all of the toolbar's content as text. */
|
---|
28 | private _getText;
|
---|
29 | /** Gets the text of each row in the toolbar. */
|
---|
30 | getRowsAsText(): Promise<string[]>;
|
---|
31 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.