Chromium Code Reviews| Index: LayoutTests/media/video-played-reset.html |
| diff --git a/LayoutTests/media/video-played-reset.html b/LayoutTests/media/video-played-reset.html |
| index dbc25e6c7e8a7d527564690040b6e6c6df72712f..3e695f102573b1b330a428041e427f37605bdd03 100644 |
| --- a/LayoutTests/media/video-played-reset.html |
| +++ b/LayoutTests/media/video-played-reset.html |
| @@ -5,19 +5,19 @@ |
| <script src=video-test.js></script> |
| <script src=video-played.js></script> |
| <script> |
| - |
| - var testFunctions = |
| - [ |
| + |
| + var testFunctions = |
| + [ |
| PlayWithNoRanges, |
| ResetToAVideoSource, |
| JumpAndPlayFwd, |
| ResetToAnEmptyVideoSource |
| ]; |
| - |
| + |
| // NOTE: Result details are not printed for this test because time values are different from machine |
| // to machine and run to run. Commenting out the following line turns on detailed logging back on, which |
| // can be useful for debugging test failure. |
| - disableFullTestDetailsPrinting(); |
| + disableFullTestDetailsPrinting(); |
| function PlayWithNoRanges() |
| { |
| @@ -29,11 +29,11 @@ |
| startPlayingInNewRange(); |
| } |
| - |
| + |
| function ResetToAVideoSource() |
| { |
| consoleWrite("<br><b><em>Test to reset to non empty video source</em></b>"); |
| - |
| + |
| timeRangeCount = currentTimeRange = 0; |
| expectedStartTimes = new Array(); |
| expectedEndTimes = new Array(); |
| @@ -43,6 +43,8 @@ |
| var mediaFile = findMediaFile("video", "content/test"); |
| runSilently("video.src = \"" + mediaFile + "\""); |
| + |
| + waitForEventOnce("canplay", canplay); |
|
acolwell GONE FROM CHROMIUM
2013/06/18 21:35:07
This is needed now because of the waitForEventOnce
|
| run("video.load()"); // Triggers canplay() |
| } |
| @@ -63,7 +65,7 @@ |
| function ResetToAnEmptyVideoSource() |
| { |
| consoleWrite("<br><b><em>Test to reset to an empty video source</em></b>"); |
| - |
| + |
| willPauseInExistingRange = false; |
| willExtendAnExistingRange = false; |
| timeRangeCount = currentTimeRange = 0; |