[High Sierra/Sierra Release] Layout Test media/track/track-cue-css.html is a flaky...
[WebKit-https.git] / LayoutTests / media / track / track-cue-css-expected.html
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');
             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');
         }
 
         setCaptionDisplayMode('Automatic');