Bug 1679555 [wpt PR 26661] - Fix a few flaky test in css-paint-api/, a=testonly
commit6914f6479f761167c163ca5eecbc53a02d5048ba
authorXida Chen <xidachen@chromium.org>
Tue, 1 Dec 2020 04:22:20 +0000 (1 04:22 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Thu, 3 Dec 2020 09:54:50 +0000 (3 09:54 +0000)
treeeb74b770fb2e82ae3e5ba9b48ef7e9dea3eccbe5
parentb8b8a4d311fe84a0560c198771dee76f0e5d180a
Bug 1679555 [wpt PR 26661] - Fix a few flaky test in css-paint-api/, a=testonly

Automatic update from web-platform-tests
Fix a few flaky test in css-paint-api/

The problem of these tests is that we do a takeScreenShot in the
rAF, and a rAF doesn't guarantee that the animation is ready, so
it can be easily flaky given that the animations are running on
the compositor thread.

This CL fixes it so that it calls takeScreenShot when the animation
ready promise is resolved, and the makes sure that the animation
already begun.

Bug: 1133821
Change-Id: I4fae6ccb9fe992316831d4d2013e1aa32eb52c82
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2562728
Reviewed-by: Kevin Ellis <kevers@chromium.org>
Commit-Queue: Xida Chen <xidachen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#831650}

--

wpt-commits: 130f163afe563f8d858e960570bfdd9dc02cdbae
wpt-pr: 26661
testing/web-platform/tests/css/css-paint-api/color-custom-property-animation-ref.html
testing/web-platform/tests/css/css-paint-api/color-custom-property-animation.https.html [copied from testing/web-platform/tests/css/css-paint-api/one-custom-property-animation.https.html with 50% similarity]
testing/web-platform/tests/css/css-paint-api/one-custom-property-animation.https.html
testing/web-platform/tests/css/css-paint-api/two-custom-property-animation-ref.html
testing/web-platform/tests/css/css-paint-api/two-custom-property-animation.https.html
testing/web-platform/tests/css/css-paint-api/two-element-custom-property-animation-ref.html
testing/web-platform/tests/css/css-paint-api/two-element-custom-property-animation.https.html