Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1771177 [wpt PR 34202] - Replace setTimeout with rAF in the selec…
…t-event.html test, a=testonly Automatic update from web-platform-tests Replace setTimeout with rAF in the select-event.html test The previous code used a 200ms timeout to let events fire, but that made the test take a very long time (~34s for all browsers). Two rAF() loops are now used instead, which helped reduce the total test time to ~3.4s. Another change in this CL is to use `element.addEventListener` to make it easier to handle events only once, and use more modern syntax. Changing the event listener code exposed more failures that weren't caught by the prior test. crbug.com/1329942 tracks work to fix these failures. Fixed: 1161590 Bug: 1329942 Change-Id: I150dfbe0b381599f3d24da94a2e2f4af6a6b6f75 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3665518 Reviewed-by: Mason Freed <[email protected]> Commit-Queue: Mason Freed <[email protected]> Cr-Commit-Position: refs/heads/main@{#1008419} -- wpt-commits: 113fc44bf3186a6aafc3262ce9aa1b4ba7a0c5fe wpt-pr: 34202
- Loading branch information