Loosen 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 <ajuma@chromium.org> Reviewed-by:Stefan Zager <szager@chromium.org> Cr-Commit-Position: refs/heads/master@{#590195}
Showing
Please register or sign in to comment