mirror of https://github.com/sveltejs/svelte
21 lines
416 B
21 lines
416 B
export default {
|
|
// This is a bit of a funny one — there's no equivalent attribute,
|
|
// so it can't be server-rendered
|
|
skip_if_ssr: true,
|
|
|
|
props: {
|
|
indeterminate: true
|
|
},
|
|
|
|
html: `
|
|
<input type='checkbox'>
|
|
`,
|
|
|
|
test({ assert, component, target }) {
|
|
const input = target.querySelector('input');
|
|
|
|
assert.ok(input.indeterminate);
|
|
component.indeterminate = false;
|
|
assert.ok(!input.indeterminate);
|
|
}
|
|
}; |