| Index: LayoutTests/media/video-currentTime-delay.html
|
| diff --git a/LayoutTests/media/video-currentTime-delay.html b/LayoutTests/media/video-currentTime-delay.html
|
| index fed6c201fbf2a6e57c555078ea400bd194da23b1..30afa6ef6f72e9a7b173694310e2ad473feed13c 100644
|
| --- a/LayoutTests/media/video-currentTime-delay.html
|
| +++ b/LayoutTests/media/video-currentTime-delay.html
|
| @@ -2,27 +2,27 @@
|
| <body>
|
|
|
| <video controls></video>
|
| -
|
| +
|
| <p>Test a delay in playing the movie results in a canPlay event.</p>
|
| -
|
| +
|
| <script src=media-file.js></script>
|
| <script src=video-test.js></script>
|
| <script>
|
| - waitForEvent('canplaythrough',
|
| - function () {
|
| + waitForEventOnce('canplaythrough',
|
| + function () {
|
| waitForEventAndEnd('ended');
|
| -
|
| +
|
| testExpected("video.currentTime", 0);
|
| - run("video.currentTime = video.duration - 0.2");
|
| + run("video.currentTime = video.duration - 0.2");
|
| });
|
|
|
| waitForEvent('seeked',
|
| - function () {
|
| + function () {
|
| setTimeout(function() {
|
| - run("video.play()");
|
| + run("video.play()");
|
| }, 400);
|
| });
|
| -
|
| +
|
| video.src = findMediaFile("video", "content/test");
|
| </script>
|
|
|
|
|