{"version":3,"file":"testing.mjs","sources":["../../../../../../../src/material/legacy-select/testing/select-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.io/license\n */\n\nimport {HarnessPredicate} from '@angular/cdk/testing';\nimport {_MatSelectHarnessBase} from '@angular/material/select/testing';\nimport {\n MatLegacyOptionHarness,\n MatLegacyOptgroupHarness,\n LegacyOptionHarnessFilters,\n LegacyOptgroupHarnessFilters,\n} from '@angular/material/legacy-core/testing';\nimport {LegacySelectHarnessFilters} from './select-harness-filters';\n\n/**\n * Harness for interacting with a standard mat-select in tests.\n * @deprecated Use `MatSelectHarness` from `@angular/material/select/testing` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.\n * @breaking-change 17.0.0\n */\nexport class MatLegacySelectHarness extends _MatSelectHarnessBase<\n typeof MatLegacyOptionHarness,\n MatLegacyOptionHarness,\n LegacyOptionHarnessFilters,\n typeof MatLegacyOptgroupHarness,\n MatLegacyOptgroupHarness,\n LegacyOptgroupHarnessFilters\n> {\n static hostSelector = '.mat-select';\n protected _prefix = 'mat';\n protected _optionClass = MatLegacyOptionHarness;\n protected _optionGroupClass = MatLegacyOptgroupHarness;\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a `MatSelectHarness` that meets\n * certain criteria.\n * @param options Options for filtering which select instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n static with(options: LegacySelectHarnessFilters = {}): HarnessPredicate {\n return new HarnessPredicate(MatLegacySelectHarness, options).addOption(\n 'disabled',\n options.disabled,\n async (harness, disabled) => {\n return (await harness.isDisabled()) === disabled;\n },\n );\n }\n}\n"],"names":[],"mappings":";;;;AAkBA;;;;AAIG;AACG,MAAO,sBAAuB,SAAQ,qBAO3C,CAAA;AAPD,IAAA,WAAA,GAAA;;QASY,IAAO,CAAA,OAAA,GAAG,KAAK,CAAC;QAChB,IAAY,CAAA,YAAA,GAAG,sBAAsB,CAAC;QACtC,IAAiB,CAAA,iBAAA,GAAG,wBAAwB,CAAC;KAiBxD;aApBQ,IAAY,CAAA,YAAA,GAAG,aAAH,CAAiB,EAAA;AAKpC;;;;;AAKG;AACH,IAAA,OAAO,IAAI,CAAC,OAAA,GAAsC,EAAE,EAAA;QAClD,OAAO,IAAI,gBAAgB,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,CACpE,UAAU,EACV,OAAO,CAAC,QAAQ,EAChB,OAAO,OAAO,EAAE,QAAQ,KAAI;YAC1B,OAAO,CAAC,MAAM,OAAO,CAAC,UAAU,EAAE,MAAM,QAAQ,CAAC;AACnD,SAAC,CACF,CAAC;KACH;;;;;"}