mirror of
https://github.com/material-components/material-web.git
synced 2024-10-26 21:56:56 +03:00
07d77da034
PiperOrigin-RevId: 557552908
31 lines
809 B
TypeScript
31 lines
809 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2023 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import {Harness} from '../testing/harness.js';
|
|
|
|
import {CircularProgress} from './internal/circular-progress.js';
|
|
import {LinearProgress} from './internal/linear-progress.js';
|
|
|
|
/**
|
|
* Test harness for linear-progress.
|
|
*/
|
|
export class LinearProgressHarness extends Harness<LinearProgress> {
|
|
override async getInteractiveElement() {
|
|
await this.element.updateComplete;
|
|
return this.element.querySelector<HTMLElement>('.progress')!;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Test harness for circular-progress.
|
|
*/
|
|
export class CircularProgressHarness extends Harness<CircularProgress> {
|
|
override async getInteractiveElement() {
|
|
await this.element.updateComplete;
|
|
return this.element.querySelector<HTMLElement>('.progress')!;
|
|
}
|
|
}
|