Bug 1880548 [wpt PR 44614] - [CodeHealth] Rewrite an old-style WPT using promises...
commit5d347fdeb0f85070918a5b7df242a3bc278d2fef
authorMustaq Ahmed <mustaq@google.com>
Wed, 28 Feb 2024 08:36:23 +0000 (28 08:36 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Fri, 1 Mar 2024 20:10:05 +0000 (1 20:10 +0000)
tree326959b1d8bdefe8504336166092906c0fb30199
parent980f8c8153822e4d88aa43f8c98f1e210094017e
Bug 1880548 [wpt PR 44614] - [CodeHealth] Rewrite an old-style WPT using promises., a=testonly

Automatic update from web-platform-tests
[CodeHealth] Rewrite an old-style WPT using promises.

This CL rewrites pointerevent_click_during_capture.html to:
- replace a complicated state-machine logic with 4 independent
  promise_tests that are easier to reason about and debug,
- renames all targets for better readablity, and
- adds a new "symmetrical" test (the 4th promise_test) that captures
  the pointer to the `pointerdown` target, for completeness.

This is a no-op change.

For a captured pointer, the WPT wrongly assumes that the click event
is dispatched before the lostpointercapture event.  This gap will be
fixed in the follow-up CL.

Bug: 40851596
Change-Id: I52c32afccba1faa5475ab5f5ff7d4132232ddeee
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5300776
Commit-Queue: Mustaq Ahmed <mustaq@chromium.org>
Commit-Queue: Robert Flack <flackr@chromium.org>
Reviewed-by: Robert Flack <flackr@chromium.org>
Auto-Submit: Mustaq Ahmed <mustaq@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1264710}

--

wpt-commits: 086442ef2dadf688117448fa57269de64f736466
wpt-pr: 44614
testing/web-platform/tests/pointerevents/pointerevent_click_during_capture.html