[High Sierra/Sierra Release] Layout Test media/track/track-cue-css.html is a flaky...
authorpvollan@apple.com <pvollan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 26 Oct 2018 17:44:38 +0000 (17:44 +0000)
committerpvollan@apple.com <pvollan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 26 Oct 2018 17:44:38 +0000 (17:44 +0000)
https://bugs.webkit.org/show_bug.cgi?id=190876

Unreviewed test fix.

This is a speculative flakiness fix.

* media/track/track-cue-css-expected.html:
* media/track/track-cue-css.html:

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

LayoutTests/ChangeLog
LayoutTests/media/track/track-cue-css-expected.html
LayoutTests/media/track/track-cue-css.html

index 1238ea1..d6a7fa0 100644 (file)
@@ -1,3 +1,15 @@
+2018-10-26  Per Arne Vollan  <pvollan@apple.com>
+
+        [High Sierra/Sierra Release] Layout Test media/track/track-cue-css.html is a flaky image failure
+        https://bugs.webkit.org/show_bug.cgi?id=190876
+
+        Unreviewed test fix.
+
+        This is a speculative flakiness fix.
+
+        * media/track/track-cue-css-expected.html:
+        * media/track/track-cue-css.html:
+
 2018-10-26  Zalan Bujtas  <zalan@apple.com>
 
         [iOS] Unreviewed test gardening.
index 75593cd..13b62ab 100644 (file)
@@ -21,7 +21,8 @@
             consoleWrite("Test that CSS in VTT file is applied correctly.");
             findMediaElement();
             video.src = findMediaFile('video', '../content/test');
-            waitForEvent('canplaythrough', endTest);
+            waitForEvent('seeked', endTest);
+            waitForEvent('canplaythrough', function() { video.currentTime = 0; });
         }
 
         setCaptionDisplayMode('Automatic');
index 18944fb..c1d6e98 100644 (file)
@@ -11,7 +11,8 @@
             consoleWrite("Test that CSS in VTT file is applied correctly.");
             findMediaElement();
             video.src = findMediaFile('video', '../content/test');
-            waitForEvent('canplaythrough', endTest);
+            waitForEvent('seeked', endTest);
+            waitForEvent('canplaythrough', function() { video.currentTime = 0; });
         }
 
         setCaptionDisplayMode('Automatic');