Skip to content

Commit b310e6b

Browse files
asynclizcopybara-github
authored andcommitted
test(text-field): add token tests
PiperOrigin-RevId: 512659469
1 parent a969fda commit b310e6b

File tree

4 files changed

+68
-0
lines changed

4 files changed

+68
-0
lines changed

field/filled-field_test.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* @license
3+
* Copyright 2023 Google LLC
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
// import 'jasmine'; (google3-only)
8+
9+
import {createTokenTests} from '../testing/tokens.js';
10+
11+
import {MdFilledField} from './filled-field.js';
12+
13+
describe('<md-filled-field>', () => {
14+
describe('.styles', () => {
15+
createTokenTests(MdFilledField.styles);
16+
});
17+
});

field/outlined-field_test.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* @license
3+
* Copyright 2023 Google LLC
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
// import 'jasmine'; (google3-only)
8+
9+
import {createTokenTests} from '../testing/tokens.js';
10+
11+
import {MdOutlinedField} from './outlined-field.js';
12+
13+
describe('<md-outlined-field>', () => {
14+
describe('.styles', () => {
15+
createTokenTests(MdOutlinedField.styles);
16+
});
17+
});
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* @license
3+
* Copyright 2023 Google LLC
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
// import 'jasmine'; (google3-only)
8+
9+
import {createTokenTests} from '../testing/tokens.js';
10+
11+
import {MdFilledTextField} from './filled-text-field.js';
12+
13+
describe('<md-filled-field>', () => {
14+
describe('.styles', () => {
15+
createTokenTests(MdFilledTextField.styles);
16+
});
17+
});
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* @license
3+
* Copyright 2023 Google LLC
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
// import 'jasmine'; (google3-only)
8+
9+
import {createTokenTests} from '../testing/tokens.js';
10+
11+
import {MdOutlinedTextField} from './outlined-text-field.js';
12+
13+
describe('<md-outlined-field>', () => {
14+
describe('.styles', () => {
15+
createTokenTests(MdOutlinedTextField.styles);
16+
});
17+
});

0 commit comments

Comments
 (0)