mirror of
https://github.com/material-components/material-web.git
synced 2024-09-11 13:46:10 +03:00
21 lines
449 B
TypeScript
21 lines
449 B
TypeScript
|
/**
|
||
|
* @license
|
||
|
* Copyright 2022 Google LLC
|
||
|
* SPDX-License-Identifier: Apache-2.0
|
||
|
*/
|
||
|
|
||
|
import {Harness} from '@material/web/testing/harness';
|
||
|
|
||
|
import {List} from './lib/list';
|
||
|
import {ListItemHarness} from './lib/listitem/harness';
|
||
|
|
||
|
/**
|
||
|
* Test harness for list.
|
||
|
*/
|
||
|
export class ListHarness extends Harness<List> {
|
||
|
/** @return List item harnesses. */
|
||
|
getItems() {
|
||
|
return this.element.items.map((item) => new ListItemHarness(item));
|
||
|
}
|
||
|
}
|