!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("tslib"),require("@angular/cdk/testing")):"function"==typeof define&&define.amd?define("@angular/material/core/testing",["exports","tslib","@angular/cdk/testing"],e):e(((t=t||self).ng=t.ng||{},t.ng.material=t.ng.material||{},t.ng.material.core=t.ng.material.core||{},t.ng.material.core.testing={}),t.tslib,t.ng.cdk.testing)}(this,(function(t,e,n){"use strict"; /** * @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 */var r=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return e.__extends(r,t),r.with=function(t){var i=this;return void 0===t&&(t={}),new n.HarnessPredicate(r,t).addOption("text",t.text,(function(t,r){return e.__awaiter(i,void 0,void 0,(function(){var i,s;return e.__generator(this,(function(e){switch(e.label){case 0:return s=(i=n.HarnessPredicate).stringMatches,[4,t.getText()];case 1:return[2,s.apply(i,[e.sent(),r])]}}))}))})).addOption("isSelected",t.isSelected,(function(t,n){return e.__awaiter(i,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,t.isSelected()];case 1:return[2,e.sent()===n]}}))}))}))},r.prototype.click=function(){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(t){switch(t.label){case 0:return[4,this.host()];case 1:return[2,t.sent().click()]}}))}))},r.prototype.getText=function(){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(t){switch(t.label){case 0:return[4,this.host()];case 1:return[2,t.sent().text()]}}))}))},r.prototype.isDisabled=function(){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(t){switch(t.label){case 0:return[4,this.host()];case 1:return[2,t.sent().hasClass("mat-option-disabled")]}}))}))},r.prototype.isSelected=function(){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(t){switch(t.label){case 0:return[4,this.host()];case 1:return[2,t.sent().hasClass("mat-selected")]}}))}))},r.prototype.isActive=function(){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(t){switch(t.label){case 0:return[4,this.host()];case 1:return[2,t.sent().hasClass("mat-active")]}}))}))},r.prototype.isMultiple=function(){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(t){switch(t.label){case 0:return[4,this.host()];case 1:return[2,t.sent().hasClass("mat-option-multiple")]}}))}))},r.hostSelector=".mat-option",r}(n.ComponentHarness),i=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e._label=e.locatorFor(".mat-optgroup-label"),e}return e.__extends(i,t),i.with=function(t){var r=this;return void 0===t&&(t={}),new n.HarnessPredicate(i,t).addOption("labelText",t.labelText,(function(t,i){return e.__awaiter(r,void 0,void 0,(function(){var r,s;return e.__generator(this,(function(e){switch(e.label){case 0:return s=(r=n.HarnessPredicate).stringMatches,[4,t.getLabelText()];case 1:return[2,s.apply(r,[e.sent(),i])]}}))}))}))},i.prototype.getLabelText=function(){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(t){switch(t.label){case 0:return[4,this._label()];case 1:return[2,t.sent().text()]}}))}))},i.prototype.isDisabled=function(){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(t){switch(t.label){case 0:return[4,this.host()];case 1:return[2,t.sent().hasClass("mat-optgroup-disabled")]}}))}))},i.prototype.getOptions=function(t){return void 0===t&&(t={}),e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){return[2,this.locatorForAll(r.with(t))()]}))}))},i.hostSelector=".mat-optgroup",i}(n.ComponentHarness); /** * @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 */ t.MatOptgroupHarness=i,t.MatOptionHarness=r,Object.defineProperty(t,"__esModule",{value:!0})}));