source: trip-planner-front/node_modules/@angular/material/fesm2015/progress-bar/testing.js.map@ 8d391a1

Last change on this file since 8d391a1 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 3.4 KB
Line 
1{"version":3,"file":"progress-bar__testing.js","sources":["../../../../../../src/material/progress-bar/testing/progress-bar-harness.ts","../../../../../../src/material/progress-bar/testing/progress-bar-harness-filters.ts","../../../../../../src/material/progress-bar/testing/public-api.ts","../../../../../../src/material/progress-bar/testing/index.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 {coerceNumberProperty} from '@angular/cdk/coercion';\nimport {ComponentHarness, HarnessPredicate} from '@angular/cdk/testing';\nimport {ProgressBarHarnessFilters} from './progress-bar-harness-filters';\n\n/** Harness for interacting with a standard mat-progress-bar in tests. */\nexport class MatProgressBarHarness extends ComponentHarness {\n /** The selector for the host element of a `MatProgressBar` instance. */\n static hostSelector = '.mat-progress-bar';\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a `MatProgressBarHarness` that meets\n * certain criteria.\n * @param options Options for filtering which progress bar instances are considered a match.\n * @return a `HarnessPredicate` configured with the given options.\n */\n static with(options: ProgressBarHarnessFilters = {}): HarnessPredicate<MatProgressBarHarness> {\n return new HarnessPredicate(MatProgressBarHarness, options);\n }\n\n /** Gets the progress bar's value. */\n async getValue(): Promise<number|null> {\n const host = await this.host();\n const ariaValue = await host.getAttribute('aria-valuenow');\n return ariaValue ? coerceNumberProperty(ariaValue) : null;\n }\n\n /** Gets the progress bar's mode. */\n async getMode(): Promise<string|null> {\n return (await this.host()).getAttribute('mode');\n }\n}\n","/**\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 {BaseHarnessFilters} from '@angular/cdk/testing';\n\n/** A set of criteria that can be used to filter a list of `MatProgressBarHarness` instances. */\nexport interface ProgressBarHarnessFilters extends BaseHarnessFilters {}\n","/**\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\nexport * from './progress-bar-harness';\nexport * from './progress-bar-harness-filters';\n","/**\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\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAAA;;;;;;;AAYA;MACa,qBAAsB,SAAQ,gBAAgB;;;;;;;IAUzD,OAAO,IAAI,CAAC,UAAqC,EAAE;QACjD,OAAO,IAAI,gBAAgB,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;KAC7D;;IAGK,QAAQ;;YACZ,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;YAC/B,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC;YAC3D,OAAO,SAAS,GAAG,oBAAoB,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC;SAC3D;KAAA;;IAGK,OAAO;;YACX,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;SACjD;KAAA;;AAvBD;AACO,kCAAY,GAAG,mBAAmB;;ACf3C;;;;;;;;ACAA;;;;;;;;ACAA;;;;;;;;;;"}
Note: See TracBrowser for help on using the repository browser.