|
|
|
@ -9,7 +9,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
details.open = true;
|
|
|
|
|
await details.dispatchEvent(event);
|
|
|
|
|
assert.equal(component.open, true);
|
|
|
|
|
assert.equal(component.visible, true);
|
|
|
|
|
assert.htmlEqual(target.innerHTML, `
|
|
|
|
|
<details open><summary>toggle</summary></details>
|
|
|
|
|
<p>hello!</p>
|
|
|
|
@ -17,9 +17,9 @@ export default {
|
|
|
|
|
|
|
|
|
|
details.open = false;
|
|
|
|
|
await details.dispatchEvent(event);
|
|
|
|
|
assert.equal(component.open, false);
|
|
|
|
|
assert.equal(component.visible, false);
|
|
|
|
|
assert.htmlEqual(target.innerHTML, `
|
|
|
|
|
<details open=""><summary>toggle</summary></details>
|
|
|
|
|
<details><summary>toggle</summary></details>
|
|
|
|
|
`);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|