mirror of
https://github.com/material-components/material-web.git
synced 2024-11-10 01:17:24 +03:00
5092de07e9
In this PR: - Remove unnecessary list-item variants - `md-list-item-icon` -> md-icon[data-variant=icon] - `md-list-item-video` -> video[data-variant=video] - `md-list-item-avatar` -> :is(img,div)[data-variant=avatar] - `md-list-item-avatar` -> img[data-variant=avatar] - also upgrade menu tokens to maximize token sharing in list-item and menu-item - testing menu and list for unused & undefined tokens - fixed some small things in list to align with spec more PiperOrigin-RevId: 513932810
25 lines
484 B
TypeScript
25 lines
484 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2022 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
// import 'jasmine'; (google3-only)
|
|
|
|
import {createTokenTests} from '../testing/tokens.js';
|
|
|
|
import {MdMenu} from './menu.js';
|
|
import {MdMenuItem} from './menu-item.js';
|
|
|
|
describe('<md-menu>', () => {
|
|
describe('.styles', () => {
|
|
createTokenTests(MdMenu.styles);
|
|
});
|
|
});
|
|
|
|
describe('<md-menu-item>', () => {
|
|
describe('.styles', () => {
|
|
createTokenTests(MdMenuItem.styles);
|
|
});
|
|
});
|