UNPKG

@angular/material

Version:
22 lines 2.06 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("tslib"),require("@angular/cdk/coercion"),require("@angular/cdk/testing")):"function"==typeof define&&define.amd?define("@angular/material/progress-bar/testing",["exports","tslib","@angular/cdk/coercion","@angular/cdk/testing"],t):t(((e=e||self).ng=e.ng||{},e.ng.material=e.ng.material||{},e.ng.material.progressBar=e.ng.material.progressBar||{},e.ng.material.progressBar.testing={}),e.tslib,e.ng.cdk.coercion,e.ng.cdk.testing)}(this,(function(e,t,r,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 i=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return t.__extends(i,e),i.with=function(e){return void 0===e&&(e={}),new n.HarnessPredicate(i,e)},i.prototype.getValue=function(){return t.__awaiter(this,void 0,void 0,(function(){var e;return t.__generator(this,(function(t){switch(t.label){case 0:return[4,this.host()];case 1:return[4,t.sent().getAttribute("aria-valuenow")];case 2:return[2,(e=t.sent())?r.coerceNumberProperty(e):null]}}))}))},i.prototype.getMode=function(){return t.__awaiter(this,void 0,void 0,(function(){return t.__generator(this,(function(e){switch(e.label){case 0:return[4,this.host()];case 1:return[2,e.sent().getAttribute("mode")]}}))}))},i.hostSelector="mat-progress-bar",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 */e.MatProgressBarHarness=i,Object.defineProperty(e,"__esModule",{value:!0})}));