[6a3a178] | 1 | import { __awaiter } from 'tslib';
|
---|
| 2 | import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
---|
| 3 |
|
---|
| 4 | /**
|
---|
| 5 | * @license
|
---|
| 6 | * Copyright Google LLC All Rights Reserved.
|
---|
| 7 | *
|
---|
| 8 | * Use of this source code is governed by an MIT-style license that can be
|
---|
| 9 | * found in the LICENSE file at https://angular.io/license
|
---|
| 10 | */
|
---|
| 11 | /** Harness for interacting with a `mat-divider`. */
|
---|
| 12 | class MatDividerHarness extends ComponentHarness {
|
---|
| 13 | static with(options = {}) {
|
---|
| 14 | return new HarnessPredicate(MatDividerHarness, options);
|
---|
| 15 | }
|
---|
| 16 | getOrientation() {
|
---|
| 17 | return __awaiter(this, void 0, void 0, function* () {
|
---|
| 18 | return (yield this.host()).getAttribute('aria-orientation');
|
---|
| 19 | });
|
---|
| 20 | }
|
---|
| 21 | isInset() {
|
---|
| 22 | return __awaiter(this, void 0, void 0, function* () {
|
---|
| 23 | return (yield this.host()).hasClass('mat-divider-inset');
|
---|
| 24 | });
|
---|
| 25 | }
|
---|
| 26 | }
|
---|
| 27 | MatDividerHarness.hostSelector = '.mat-divider';
|
---|
| 28 |
|
---|
| 29 | /**
|
---|
| 30 | * @license
|
---|
| 31 | * Copyright Google LLC All Rights Reserved.
|
---|
| 32 | *
|
---|
| 33 | * Use of this source code is governed by an MIT-style license that can be
|
---|
| 34 | * found in the LICENSE file at https://angular.io/license
|
---|
| 35 | */
|
---|
| 36 |
|
---|
| 37 | /**
|
---|
| 38 | * @license
|
---|
| 39 | * Copyright Google LLC All Rights Reserved.
|
---|
| 40 | *
|
---|
| 41 | * Use of this source code is governed by an MIT-style license that can be
|
---|
| 42 | * found in the LICENSE file at https://angular.io/license
|
---|
| 43 | */
|
---|
| 44 |
|
---|
| 45 | /**
|
---|
| 46 | * @license
|
---|
| 47 | * Copyright Google LLC All Rights Reserved.
|
---|
| 48 | *
|
---|
| 49 | * Use of this source code is governed by an MIT-style license that can be
|
---|
| 50 | * found in the LICENSE file at https://angular.io/license
|
---|
| 51 | */
|
---|
| 52 |
|
---|
| 53 | export { MatDividerHarness };
|
---|
| 54 | //# sourceMappingURL=testing.js.map
|
---|