mirror of
https://github.com/material-components/material-web.git
synced 2024-09-11 13:46:10 +03:00
15df1d5f1a
This changes the following imports from: ```js import '@material/web/circularprogress/circular-progress.js'; import '@material/web/linearprogress/linear-progress.js'; ``` to ```js import '@material/web/progress/circular-progress.js'; import '@material/web/progress/linear-progress.js'; ``` PiperOrigin-RevId: 547860610
33 lines
880 B
TypeScript
33 lines
880 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2023 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import {Harness} from '../testing/harness.js';
|
|
|
|
import {CircularProgress} from './lib/circular-progress.js';
|
|
import {LinearProgress} from './lib/linear-progress.js';
|
|
|
|
/**
|
|
* Test harness for linear-progress.
|
|
*/
|
|
export class LinearProgressHarness extends Harness<LinearProgress> {
|
|
override async getInteractiveElement() {
|
|
await this.element.updateComplete;
|
|
// Test access to protected property
|
|
// tslint:disable-next-line:no-dict-access-on-struct-type
|
|
return this.element['rootEl'];
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Test harness for circular-progress.
|
|
*/
|
|
export class CircularProgressHarness extends Harness<CircularProgress> {
|
|
override async getInteractiveElement() {
|
|
await this.element.updateComplete;
|
|
return this.element.querySelector<HTMLElement>('.circularProgresss')!;
|
|
}
|
|
}
|