mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-28 04:39:07 -10:00
Automatic update from web-platform-testsLoosen timing expectation in IntersectionObserver WPTs IntersectionObserver WPTs expect that intersection observations are delivered within two step_timeouts of requestAnimationFrame. This expectation holds in Blink, but doesn't necessarily hold in other engines. In WebKit, requestAnimationFrame and layout are separate tasks, so it's possible for the first step_timeout to fire in between rAF and layout, leading to test flakiness. This CL switches these WPTs to using double-rAF rather than rAF-setTimeout-setTimeout when waiting for observations to be delivered. Change-Id: Iad80943db184bc4519ab323c3bd7cfac1256e175 Reviewed-on: https://chromium-review.googlesource.com/1214176 Commit-Queue: Ali Juma <[email protected]> Reviewed-by: Stefan Zager <[email protected]> Cr-Commit-Position: refs/heads/master@{#590195} -- wpt-commits: 2dce278555acc0b91ca98d2ee9ce8219c91f4e98 wpt-pr: 12901