| Index: LayoutTests/media/track/track-cues-seeking.html
|
| diff --git a/LayoutTests/media/track/track-cues-seeking.html b/LayoutTests/media/track/track-cues-seeking.html
|
| index 78406b4ea0eec80ac0dbef46efebff545a9a90a2..9b5e25c6bd9911c833a7e37d555cf2185505440a 100644
|
| --- a/LayoutTests/media/track/track-cues-seeking.html
|
| +++ b/LayoutTests/media/track/track-cues-seeking.html
|
| @@ -6,15 +6,15 @@
|
| <script src=../media-file.js></script>
|
| <script src=../video-test.js></script>
|
|
|
| - <script>
|
| -
|
| + <script>
|
| +
|
| var seekedCount = 0;
|
| var testTrack;
|
| -
|
| +
|
| var trackLoaded = false;
|
| var videoCanPlayThrough = false;
|
|
|
| - function attemptTests()
|
| + function attemptTests()
|
| {
|
| if (!trackLoaded || !videoCanPlayThrough)
|
| return;
|
| @@ -41,17 +41,17 @@
|
| if (seekedCount == 4)
|
| endTest();
|
| }
|
| -
|
| +
|
| waitForEvent('seeked', seeked);
|
|
|
| - waitForEvent('canplaythrough',
|
| - function ()
|
| + waitForEventOnce('canplaythrough',
|
| + function ()
|
| {
|
| videoCanPlayThrough = true;
|
| attemptTests();
|
| }
|
| );
|
| -
|
| +
|
| function loaded()
|
| {
|
| trackLoaded = true;
|
|
|