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