Flaky Test: media/track/track-mode.html
authoreric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 18 Apr 2013 13:54:17 +0000 (13:54 +0000)
committereric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 18 Apr 2013 13:54:17 +0000 (13:54 +0000)
https://bugs.webkit.org/show_bug.cgi?id=114361

Unreviewed, fix a flaky test.

* media/track/track-mode.html:

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

LayoutTests/ChangeLog
LayoutTests/media/track/track-mode.html

index 141b4b2..d59dd38 100644 (file)
@@ -1,3 +1,12 @@
+2013-04-18  Eric Carlson  <eric.carlson@apple.com>
+
+        Flaky Test: media/track/track-mode.html
+        https://bugs.webkit.org/show_bug.cgi?id=114361
+
+        Unreviewed, fix a flaky test.
+
+        * media/track/track-mode.html:
+
 2013-04-18  Allan Sandfeld Jensen  <allan.jensen@digia.com>
 
         Unset :hover in inner documents
index 82e35bd..088bf0c 100644 (file)
                 video.src = findMediaFile("video", "../content/test");
                 video.play();
                 // Wait for end of first cue (no events should fire while track is disabled).
-                setTimeout(testHiddenAndShowing, 400);
+                setTimeout(testHiddenAndShowing, 100);
                 consoleWrite("++ 0 events expected while mode = disabled");
                 consoleWrite("");
             }
             
             function testHiddenAndShowing()
             {
+                video.pause();
+                video.currentTime = 0;
+
                 consoleWrite("<b>++ 'hidden'</b>");
                 setMode("hidden");
 
@@ -62,6 +65,7 @@
                 setMode("showing");
 
                 consoleWrite("++ at least " + textTrack.cues.length + " events expected while mode = showing");
+                video.play();
             }
             
             waitForEvent('cuechange',
@@ -78,7 +82,7 @@
     </head>
     <body>
         <p>Tests that the TextTrack mode attribute is appropriately set.</p>
-        <video>
+        <video controls>
             <track id=track_1 src="captions-webvtt/captions-fast.vtt" onload="start()" default>
         </video>
     </body>