@angular/material
Version:
Angular Material
22 lines • 2.86 kB
JavaScript
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("tslib"),require("@angular/cdk/testing"),require("@angular/cdk/coercion")):"function"==typeof define&&define.amd?define("@angular/material/button/testing",["exports","tslib","@angular/cdk/testing","@angular/cdk/coercion"],e):e(((t=t||self).ng=t.ng||{},t.ng.material=t.ng.material||{},t.ng.material.button=t.ng.material.button||{},t.ng.material.button.testing={}),t.tslib,t.ng.cdk.testing,t.ng.cdk.coercion)}(this,(function(t,e,n,r){"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 i=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e.__extends(i,t),i.with=function(t){return void 0===t&&(t={}),new n.HarnessPredicate(i,t).addOption("text",t.text,(function(t,e){return n.HarnessPredicate.stringMatches(t.getText(),e)}))},i.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()]}}))}))},i.prototype.isDisabled=function(){return e.__awaiter(this,void 0,void 0,(function(){var t,n;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,this.host()];case 1:return t=e.sent().getAttribute("disabled"),n=r.coerceBooleanProperty,[4,t];case 2:return[2,n.apply(void 0,[e.sent()])]}}))}))},i.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()]}}))}))},i.prototype.focus=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().focus()]}}))}))},i.prototype.blur=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().blur()]}}))}))},i.hostSelector=["[mat-button]","[mat-raised-button]","[mat-flat-button]","[mat-icon-button]","[mat-stroked-button]","[mat-fab]","[mat-mini-fab]"].join(","),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
*/t.MatButtonHarness=i,Object.defineProperty(t,"__esModule",{value:!0})}));