export default { html: `

1

1, 2, 3

2

1

`, async test({ assert, component, target, window }) { const inputs = target.querySelectorAll('input'); assert.equal(inputs[0].checked, true); assert.equal(inputs[1].checked, false); assert.equal(inputs[2].checked, false); assert.equal(inputs[3].checked, true); assert.equal(inputs[4].checked, true); assert.equal(inputs[5].checked, true); assert.equal(inputs[6].checked, false); assert.equal(inputs[7].checked, true); assert.equal(inputs[8].checked, false); assert.equal(inputs[9].checked, true); assert.equal(inputs[10].checked, false); assert.equal(inputs[11].checked, false); const event = new window.Event('change'); inputs[2].checked = true; await inputs[2].dispatchEvent(event); assert.htmlEqual(target.innerHTML, `

1, 3

1, 2, 3

2

1

`); inputs[8].checked = true; await inputs[8].dispatchEvent(event); assert.htmlEqual(target.innerHTML, `

1, 3

1, 2, 3

2, 3

1

`); component.selected_index = [1, 1]; assert.htmlEqual(target.innerHTML, `

1, 2, 3

1, 2, 3

1

1

`); assert.equal(inputs[0].checked, true); assert.equal(inputs[1].checked, true); assert.equal(inputs[2].checked, true); assert.equal(inputs[3].checked, true); assert.equal(inputs[4].checked, true); assert.equal(inputs[5].checked, true); assert.equal(inputs[6].checked, true); assert.equal(inputs[7].checked, false); assert.equal(inputs[8].checked, false); assert.equal(inputs[9].checked, true); assert.equal(inputs[10].checked, false); assert.equal(inputs[11].checked, false); inputs[5].checked = false; await inputs[5].dispatchEvent(event); assert.htmlEqual(target.innerHTML, `

1, 2

1, 2

1

1

`); assert.equal(inputs[0].checked, true); assert.equal(inputs[1].checked, true); assert.equal(inputs[2].checked, false); assert.equal(inputs[3].checked, true); assert.equal(inputs[4].checked, true); assert.equal(inputs[5].checked, false); assert.equal(inputs[6].checked, true); assert.equal(inputs[7].checked, false); assert.equal(inputs[8].checked, false); assert.equal(inputs[9].checked, true); assert.equal(inputs[10].checked, false); assert.equal(inputs[11].checked, false); } };