Title: [255153] trunk/LayoutTests
Revision
255153
Author
[email protected]
Date
2020-01-27 10:39:00 -0800 (Mon, 27 Jan 2020)

Log Message

REGRESSION: [Mac wk2] fast/animation/request-animation-frame.html is flaky failing
https://bugs.webkit.org/show_bug.cgi?id=206675
<rdar://problem/58839955>

Reviewed by Said Abou-Hallawa.

Rewrite test to stop relying on ordering between requestAnimationFrame() and setTimeout().

* fast/animation/request-animation-frame-expected.txt:
* fast/animation/request-animation-frame.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (255152 => 255153)


--- trunk/LayoutTests/ChangeLog	2020-01-27 18:16:07 UTC (rev 255152)
+++ trunk/LayoutTests/ChangeLog	2020-01-27 18:39:00 UTC (rev 255153)
@@ -1,3 +1,16 @@
+2020-01-27  Chris Dumez  <[email protected]>
+
+        REGRESSION: [Mac wk2] fast/animation/request-animation-frame.html is flaky failing
+        https://bugs.webkit.org/show_bug.cgi?id=206675
+        <rdar://problem/58839955>
+
+        Reviewed by Said Abou-Hallawa.
+
+        Rewrite test to stop relying on ordering between requestAnimationFrame() and setTimeout().
+
+        * fast/animation/request-animation-frame-expected.txt:
+        * fast/animation/request-animation-frame.html:
+
 2020-01-27  Diego Pino Garcia  <[email protected]>
 
         [WPE] Gardening, update baselines and synchronize with GTK

Modified: trunk/LayoutTests/fast/animation/request-animation-frame-expected.txt (255152 => 255153)


--- trunk/LayoutTests/fast/animation/request-animation-frame-expected.txt	2020-01-27 18:16:07 UTC (rev 255152)
+++ trunk/LayoutTests/fast/animation/request-animation-frame-expected.txt	2020-01-27 18:39:00 UTC (rev 255153)
@@ -3,7 +3,11 @@
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 
 
-PASS callbackInvoked is true
+PASS requestAnimationFrame callback was called
+PASS requestAnimationFrame callback was called
+PASS requestAnimationFrame callback was called
+PASS requestAnimationFrame callback was called
+PASS requestAnimationFrame callback was called
 PASS successfullyParsed is true
 
 TEST COMPLETE

Modified: trunk/LayoutTests/fast/animation/request-animation-frame.html (255152 => 255153)


--- trunk/LayoutTests/fast/animation/request-animation-frame.html	2020-01-27 18:16:07 UTC (rev 255152)
+++ trunk/LayoutTests/fast/animation/request-animation-frame.html	2020-01-27 18:39:00 UTC (rev 255153)
@@ -1,35 +1,28 @@
 <!DOCTYPE html>
 <html>
 <head>
-<script src=""
+<script src=""
 </head>
 <body>
-<span id="e"></span>
-<span id="f"></span>
 <script>
 description("Tests basic use of requestAnimationFrame");
+jsTestIsAsync = true;
 
-var e = document.getElementById("e");
-var callbackInvoked = false;
-window.requestAnimationFrame(function() {
-    callbackInvoked = true;
-}, e);
-
 if (window.testRunner)
     testRunner.displayAndTrackRepaints();
 
-setTimeout(function() {
-    shouldBeTrue("callbackInvoked");
-}, 100);
+let callbackCount = 0;
+let rAFCallback = () => {
+    testPassed("requestAnimationFrame callback was called");
+    callbackCount++;
+    if (callbackCount < 5)
+        requestAnimationFrame(rAFCallback);
+    else
+       finishJSTest();
+}
 
-if (window.testRunner)
-    testRunner.waitUntilDone();
+requestAnimationFrame(rAFCallback);
 
-setTimeout(function() {
-    isSuccessfullyParsed();
-    if (window.testRunner)
-        testRunner.notifyDone();
-}, 200);
 </script>
 </body>
 </html>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to