mirror of
https://github.com/material-components/material-web.git
synced 2026-01-09 07:21:09 +08:00
test(select): implement screenshot tests for select
PiperOrigin-RevId: 523798756
This commit is contained in:
parent
9d7b2910d7
commit
45c6cb236e
31
select/select_test.ts
Normal file
31
select/select_test.ts
Normal file
@ -0,0 +1,31 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2023 Google LLC
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
// import 'jasmine'; (google3-only)
|
||||
|
||||
import {createTokenTests} from '../testing/tokens.js';
|
||||
|
||||
import {MdOutlinedSelect} from './outlined-select.js';
|
||||
import {MdFilledSelect} from './filled-select.js';
|
||||
import {MdSelectOption} from './select-option.js';
|
||||
|
||||
describe('<md-outlined-select>', () => {
|
||||
describe('.styles', () => {
|
||||
createTokenTests(MdOutlinedSelect.styles);
|
||||
});
|
||||
});
|
||||
|
||||
describe('<md-filled-select>', () => {
|
||||
describe('.styles', () => {
|
||||
createTokenTests(MdFilledSelect.styles);
|
||||
});
|
||||
});
|
||||
|
||||
describe('<md-select-option>', () => {
|
||||
describe('.styles', () => {
|
||||
createTokenTests(MdSelectOption.styles);
|
||||
});
|
||||
});
|
||||
23
select/test/assets.ts
Normal file
23
select/test/assets.ts
Normal file
File diff suppressed because one or more lines are too long
13
select/test/window_size.json
Normal file
13
select/test/window_size.json
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"capabilities": {
|
||||
"goog:chromeOptions": {
|
||||
"args": ["--window-position=0,0", "--window-size=3400,2215"]
|
||||
},
|
||||
"moz:firefoxOptions": {
|
||||
"args": ["-width=3400","-height=2215"]
|
||||
}
|
||||
},
|
||||
"extension": {
|
||||
"xvfbResolution": "3400x2215x24"
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user