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:
3.0 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 { __awaiter } from "tslib";
|
---|
9 | import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
---|
10 | /** Harness for interacting with a `mat-divider`. */
|
---|
11 | export class MatDividerHarness extends ComponentHarness {
|
---|
12 | static with(options = {}) {
|
---|
13 | return new HarnessPredicate(MatDividerHarness, options);
|
---|
14 | }
|
---|
15 | getOrientation() {
|
---|
16 | return __awaiter(this, void 0, void 0, function* () {
|
---|
17 | return (yield this.host()).getAttribute('aria-orientation');
|
---|
18 | });
|
---|
19 | }
|
---|
20 | isInset() {
|
---|
21 | return __awaiter(this, void 0, void 0, function* () {
|
---|
22 | return (yield this.host()).hasClass('mat-divider-inset');
|
---|
23 | });
|
---|
24 | }
|
---|
25 | }
|
---|
26 | MatDividerHarness.hostSelector = '.mat-divider';
|
---|
27 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGl2aWRlci1oYXJuZXNzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL21hdGVyaWFsL2RpdmlkZXIvdGVzdGluZy9kaXZpZGVyLWhhcm5lc3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HOztBQUVILE9BQU8sRUFBQyxnQkFBZ0IsRUFBRSxnQkFBZ0IsRUFBQyxNQUFNLHNCQUFzQixDQUFDO0FBR3hFLG9EQUFvRDtBQUNwRCxNQUFNLE9BQU8saUJBQWtCLFNBQVEsZ0JBQWdC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