Title: [275752] trunk/LayoutTests
Revision
275752
Author
[email protected]
Date
2021-04-09 02:11:27 -0700 (Fri, 09 Apr 2021)

Log Message

[ Mac WK2 ] compositing/animation/keyframe-order.html is a flakey image failure
https://bugs.webkit.org/show_bug.cgi?id=221359

Reviewed by Dean Jackson.

Attempt to make this test more stable by awaiting the resolution of the animation.ready
promise as well as UIHelper.renderingUpdate() to ensure the animation has been committed.

* compositing/animation/keyframe-order.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (275751 => 275752)


--- trunk/LayoutTests/ChangeLog	2021-04-09 08:54:34 UTC (rev 275751)
+++ trunk/LayoutTests/ChangeLog	2021-04-09 09:11:27 UTC (rev 275752)
@@ -1,3 +1,15 @@
+2021-04-09  Antoine Quint  <[email protected]>
+
+        [ Mac WK2 ] compositing/animation/keyframe-order.html is a flakey image failure
+        https://bugs.webkit.org/show_bug.cgi?id=221359
+
+        Reviewed by Dean Jackson.
+
+        Attempt to make this test more stable by awaiting the resolution of the animation.ready
+        promise as well as UIHelper.renderingUpdate() to ensure the animation has been committed.
+
+        * compositing/animation/keyframe-order.html:
+
 2021-04-09  Yusuke Suzuki  <[email protected]>
 
         ServiceWorker should save module scripts

Modified: trunk/LayoutTests/compositing/animation/keyframe-order.html (275751 => 275752)


--- trunk/LayoutTests/compositing/animation/keyframe-order.html	2021-04-09 08:54:34 UTC (rev 275751)
+++ trunk/LayoutTests/compositing/animation/keyframe-order.html	2021-04-09 09:11:27 UTC (rev 275752)
@@ -45,21 +45,22 @@
         }
     }
     </style>
+    <script src=""
     <script>
         if (window.testRunner)
             testRunner.waitUntilDone();
         
-        function doTest()
-        {
-            var box = document.getElementById('spinner');
-            box.addEventListener('webkitAnimationStart', function() {
-                if (window.testRunner)
-                    testRunner.notifyDone();
-            }, false);
+        window.addEventListener('load', async () => {
+            const box = document.getElementById('spinner');
             box.classList.add('animating');
-        }
+            const animation = box.getAnimations()[0];
 
-        window.addEventListener('load', doTest, false);
+            await animation.ready;
+            await UIHelper.renderingUpdate();
+
+            if (window.testRunner)
+                testRunner.notifyDone();
+        });
     </script>
 </head>
 <body>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to