@angular/material
Version:
Angular Material
1 lines • 1.67 kB
Source Map (JSON)
{"version":3,"file":"divider-testing.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/src/material/divider/testing/divider-harness.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {ComponentHarness, HarnessPredicate} from '@angular/cdk/testing';\nimport {DividerHarnessFilters} from './divider-harness-filters';\n\n/** Harness for interacting with a `mat-divider`. */\nexport class MatDividerHarness extends ComponentHarness {\n static hostSelector = '.mat-divider';\n\n static with(options: DividerHarnessFilters = {}) {\n return new HarnessPredicate(MatDividerHarness, options);\n }\n\n async getOrientation(): Promise<'horizontal' | 'vertical'> {\n return (await this.host()).getAttribute('aria-orientation') as Promise<\n 'horizontal' | 'vertical'\n >;\n }\n\n async isInset(): Promise<boolean> {\n return (await this.host()).hasClass('mat-divider-inset');\n }\n}\n"],"names":["MatDividerHarness","ComponentHarness","hostSelector","with","options","HarnessPredicate","getOrientation","host","getAttribute","isInset","hasClass"],"mappings":";;AAYM,MAAOA,iBAAkB,SAAQC,gBAAgB,CAAA;EACrD,OAAOC,YAAY,GAAG,cAAc;AAEpC,EAAA,OAAOC,IAAIA,CAACC,OAAA,GAAiC,EAAE,EAAA;AAC7C,IAAA,OAAO,IAAIC,gBAAgB,CAACL,iBAAiB,EAAEI,OAAO,CAAC;AACzD;EAEA,MAAME,cAAcA,GAAA;IAClB,OAAO,CAAC,MAAM,IAAI,CAACC,IAAI,EAAE,EAAEC,YAAY,CAAC,kBAAkB,CAEzD;AACH;EAEA,MAAMC,OAAOA,GAAA;IACX,OAAO,CAAC,MAAM,IAAI,CAACF,IAAI,EAAE,EAAEG,QAAQ,CAAC,mBAAmB,CAAC;AAC1D;;;;;"}