Last change
on this file since 76712b2 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 { DrawerHarnessFilters } from './drawer-harness-filters';
|
---|
10 | /**
|
---|
11 | * Base class for the drawer harness functionality.
|
---|
12 | * @docs-private
|
---|
13 | */
|
---|
14 | export declare class MatDrawerHarnessBase extends ContentContainerComponentHarness<string> {
|
---|
15 | /** Whether the drawer is open. */
|
---|
16 | isOpen(): Promise<boolean>;
|
---|
17 | /** Gets the position of the drawer inside its container. */
|
---|
18 | getPosition(): Promise<'start' | 'end'>;
|
---|
19 | /** Gets the mode that the drawer is in. */
|
---|
20 | getMode(): Promise<'over' | 'push' | 'side'>;
|
---|
21 | }
|
---|
22 | /** Harness for interacting with a standard mat-drawer in tests. */
|
---|
23 | export declare class MatDrawerHarness extends MatDrawerHarnessBase {
|
---|
24 | /** The selector for the host element of a `MatDrawer` instance. */
|
---|
25 | static hostSelector: string;
|
---|
26 | /**
|
---|
27 | * Gets a `HarnessPredicate` that can be used to search for a `MatDrawerHarness` that meets
|
---|
28 | * certain criteria.
|
---|
29 | * @param options Options for filtering which drawer instances are considered a match.
|
---|
30 | * @return a `HarnessPredicate` configured with the given options.
|
---|
31 | */
|
---|
32 | static with(options?: DrawerHarnessFilters): HarnessPredicate<MatDrawerHarness>;
|
---|
33 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.