github web-platform-tests/wpt merge_pr_49335

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
2 months ago

Refactor touch-handler-count

The original test is using an internals method to access the handler
count. We can make this more universal by adding listeners and
measuring the number of responses. Also my using touch instead of some
other category of events, we are not necessarily fully testing on the
mac, where real devices don't have touch screens.

This patch, uses click instead of touch events since fully handled on
all platforms and moves the test to wpt/dom/events. The tracking of a
nested document's handlers in the parent frame is not to spec, so that
portion of the test was removed.

Refactored to use variants for document/window/element, to determine
the event target. The animationstart event supports bubbling, making
it a suitable candidate for the test.

Bug: 40281811
Change-Id: Ia05164623266ff72557d3f815b5985a3cf2c80fa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6031569
Commit-Queue: Kevin Ellis kevers@chromium.org
Reviewed-by: Mustaq Ahmed mustaq@chromium.org
Cr-Commit-Position: refs/heads/main@{#1386913}

Don't miss a new wpt release

NewReleases is sending notifications on new releases.