@angular/material
Version:
Angular Material
50 lines (44 loc) • 1.41 kB
JavaScript
import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/** Harness for interacting with a `mat-divider`. */
class MatDividerHarness extends ComponentHarness {
static with(options = {}) {
return new HarnessPredicate(MatDividerHarness, options);
}
async getOrientation() {
return (await this.host()).getAttribute('aria-orientation');
}
async isInset() {
return (await this.host()).hasClass('mat-divider-inset');
}
}
MatDividerHarness.hostSelector = '.mat-divider';
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
export { MatDividerHarness };
//# sourceMappingURL=testing.mjs.map