export default { 'skip-ssr': true, data: { indeterminate: true, }, html: `
checked? false
indeterminate? true
`, test(assert, component, target, window) { const input = target.querySelector('input'); assert.equal(input.checked, false); assert.equal(input.indeterminate, true); const event = new window.Event('change'); input.checked = true; input.indeterminate = false; input.dispatchEvent(event); assert.equal(component.get().indeterminate, false); assert.equal(component.get().checked, true); assert.htmlEqual(target.innerHTML, `checked? true
indeterminate? false
`); component.set({ indeterminate: true }); assert.equal(input.indeterminate, true); assert.equal(input.checked, true); assert.htmlEqual(target.innerHTML, `checked? true
indeterminate? true
`); }, };