| Index: LayoutTests/media/video-played.js
|
| diff --git a/LayoutTests/media/video-played.js b/LayoutTests/media/video-played.js
|
| index a6a2e8e3b73f5cff935ca376b1e03fb6ad4f9334..a1cfee9ff19340e61b0dc287856afb1de79cb6a3 100644
|
| --- a/LayoutTests/media/video-played.js
|
| +++ b/LayoutTests/media/video-played.js
|
| @@ -116,7 +116,7 @@ function playForMillisecs(milliseconds)
|
| var callPauseIfTimeIsReached = function ()
|
| {
|
| var playedTime = video.currentTime - playedFromTime;
|
| -
|
| +
|
| if (playedTime < 0) {
|
| // Deal with 'loop' attribue. This work only once, hence the warning
|
| // At the begining of playForMillisecs()
|
| @@ -153,7 +153,7 @@ function videoPlayedMain()
|
| waitForEvent("loadstart");
|
| waitForEvent("ratechange");
|
| waitForEvent("loadedmetadata");
|
| - waitForEvent("canplay", canplay); // Will trigger nextTest() which launches the tests.
|
| + waitForEventOnce("canplay", canplay); // Will trigger nextTest() which launches the tests.
|
| waitForEvent("pause", pause);
|
|
|
| video.load();
|
|
|