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