diff options
Diffstat (limited to 'testing/web-platform/tests/event-timing/resources')
-rw-r--r-- | testing/web-platform/tests/event-timing/resources/event-timing-test-utils.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/web-platform/tests/event-timing/resources/event-timing-test-utils.js b/testing/web-platform/tests/event-timing/resources/event-timing-test-utils.js index 9670d8d26f..7b281a4e0e 100644 --- a/testing/web-platform/tests/event-timing/resources/event-timing-test-utils.js +++ b/testing/web-platform/tests/event-timing/resources/event-timing-test-utils.js @@ -357,6 +357,13 @@ async function pointerdown(target) { .send(); } +async function pointerup(target) { + const actions = new test_driver.Actions(); + return actions.addPointer("mousePointer", "mouse") + .pointerMove(0, 0, { origin: target }) + .pointerUp() + .send(); +} async function auxPointerdown(target) { const actions = new test_driver.Actions(); return actions.addPointer("mousePointer", "mouse") @@ -443,6 +450,11 @@ async function interactAndObserve(interactionType, target, observerPromise) { interactionPromise = Promise.all([auxPointerdown(target), pointerdown(target)]); break; } + case 'orphan-pointerup': { + addListeners(target, ['pointerup']); + interactionPromise = pointerup(target); + break; + } } return Promise.all([interactionPromise, observerPromise]); } |