| Index: LayoutTests/media/track/track-disabled.html
|
| diff --git a/LayoutTests/media/track/track-disabled.html b/LayoutTests/media/track/track-disabled.html
|
| index 21da7fa5b20e07ee8b32c76cca5652cce6f71837..aba3ccf35cbce5f7fbabd200cd706998658a65b9 100644
|
| --- a/LayoutTests/media/track/track-disabled.html
|
| +++ b/LayoutTests/media/track/track-disabled.html
|
| @@ -9,11 +9,23 @@
|
|
|
| waitForEvent('loadstart', function ()
|
| {
|
| - var v = document.getElementById('vid');
|
| - v.textTracks[0].mode = "disabled";
|
| + var video = document.getElementById('vid');
|
| + video.textTracks[0].mode = "disabled";
|
| +
|
| + consoleWrite("Waiting for the duration of the first cue to elapse.");
|
| + video.addEventListener('timeupdate', function (e)
|
| + {
|
| + if (e.target.currentTime < 1)
|
| + return;
|
| +
|
| + // End test after the duration of the first cue to make sure the test
|
| + // doesn't crash during the period this cue would have been
|
| + // rendered if the track was not disabled.
|
| + consoleWrite("The duration of the first cue has elapsed.");
|
| + endTest();
|
| + });
|
| });
|
|
|
| - waitForEventAndEnd('loadedmetadata');
|
| </script>
|
| </head>
|
| <body>
|
|
|