material-web/menu/menu_test.ts
Material Web Team 5092de07e9 refactor(menu,list): clean up list-menu tokens and remove list-item variant components
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
2023-03-06 07:01:56 -08:00

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);
});
});