REGRESSION: [ Mac WK2 ] animations/suspend-resume-animation-events.html is a flaky...
authordarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 25 Jan 2020 20:07:20 +0000 (20:07 +0000)
committerdarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 25 Jan 2020 20:07:20 +0000 (20:07 +0000)
https://bugs.webkit.org/show_bug.cgi?id=206615

Reviewed by Alexey Proskuryakov.

* animations/suspend-resume-animation-events.html: Make test slightly less timing
dependent.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@255124 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/animations/suspend-resume-animation-events.html

index 5953ecc..57201e1 100644 (file)
@@ -1,3 +1,13 @@
+2020-01-25  Darin Adler  <darin@apple.com>
+
+        REGRESSION: [ Mac WK2 ] animations/suspend-resume-animation-events.html is a flaky failure
+        https://bugs.webkit.org/show_bug.cgi?id=206615
+
+        Reviewed by Alexey Proskuryakov.
+
+        * animations/suspend-resume-animation-events.html: Make test slightly less timing
+        dependent.
+
 2020-01-25  Jer Noble  <jer.noble@apple.com>
 
         Regression (r255103): media/modern-media-controls/placard-support/placard-support-airplay-fullscreen-no-controls.html
index 6a28c7e..399ce1c 100644 (file)
     }
   </style>
   <script type="text/javascript" charset="utf-8">
-    
+
     function suspend()
     {
         if (window.internals)
             internals.suspendAnimations();
+
+        setTimeout(resume, 60);
     }
-    
+
     function resume()
     {
         if (window.internals)
             internals.resumeAnimations();
+
+        setTimeout(function()
+        {
+            if (window.testRunner)
+                testRunner.notifyDone();
+        }, 250);
     }
-    
+
     function startTest()
     {
         if (window.testRunner) {
             testRunner.dumpAsText();
             testRunner.waitUntilDone();
         }
-        
+
         setTimeout(suspend, 40);
-        setTimeout(resume, 100);
-        setTimeout(function()
-        {
-            if (window.testRunner)
-                testRunner.notifyDone();
-        }, 350);
     }
-    
+
     function logEvent(e, phase)
     {
         var log = document.getElementById('log');
         log.innerHTML = log.innerHTML + phase + ' animation ' + e.animationName + '<br>';
     }
-
     
   </script>
 </head>