|
|
|
@ -3,25 +3,18 @@ import { ok, test } from '../../test';
|
|
|
|
|
|
|
|
|
|
export default test({
|
|
|
|
|
async test({ assert, target, raf }) {
|
|
|
|
|
const button = target.querySelector('#button');
|
|
|
|
|
const button = /** @type {HTMLButtonElement} */ (target.querySelector('#button'));
|
|
|
|
|
const container = target.querySelector('#container');
|
|
|
|
|
ok(button);
|
|
|
|
|
ok(container);
|
|
|
|
|
|
|
|
|
|
// Multiple click on button
|
|
|
|
|
// @ts-ignore
|
|
|
|
|
button.click();
|
|
|
|
|
// @ts-ignore
|
|
|
|
|
button.click();
|
|
|
|
|
// @ts-ignore
|
|
|
|
|
button.click();
|
|
|
|
|
// @ts-ignore
|
|
|
|
|
button.click();
|
|
|
|
|
// @ts-ignore
|
|
|
|
|
button.click();
|
|
|
|
|
// @ts-ignore
|
|
|
|
|
button.click();
|
|
|
|
|
// @ts-ignore
|
|
|
|
|
button.click();
|
|
|
|
|
|
|
|
|
|
raf.tick(0);
|
|
|
|
|