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.3 KB
|
Rev | Line | |
---|
[6a3a178] | 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 { SortDirection } from '@angular/material/sort';
|
---|
| 10 | import { SortHeaderHarnessFilters } from './sort-harness-filters';
|
---|
| 11 | /** Harness for interacting with a standard Angular Material sort header in tests. */
|
---|
| 12 | export declare class MatSortHeaderHarness extends ComponentHarness {
|
---|
| 13 | static hostSelector: string;
|
---|
| 14 | private _container;
|
---|
| 15 | /**
|
---|
| 16 | * Gets a `HarnessPredicate` that can be used to
|
---|
| 17 | * search for a sort header with specific attributes.
|
---|
| 18 | */
|
---|
| 19 | static with(options?: SortHeaderHarnessFilters): HarnessPredicate<MatSortHeaderHarness>;
|
---|
| 20 | /** Gets the label of the sort header. */
|
---|
| 21 | getLabel(): Promise<string>;
|
---|
| 22 | /** Gets the sorting direction of the header. */
|
---|
| 23 | getSortDirection(): Promise<SortDirection>;
|
---|
| 24 | /** Gets whether the sort header is currently being sorted by. */
|
---|
| 25 | isActive(): Promise<boolean>;
|
---|
| 26 | /** Whether the sort header is disabled. */
|
---|
| 27 | isDisabled(): Promise<boolean>;
|
---|
| 28 | /** Clicks the header to change its sorting direction. Only works if the header is enabled. */
|
---|
| 29 | click(): Promise<void>;
|
---|
| 30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.