| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 5 | 5 |
| 6 <script src=../media-file.js></script> | 6 <script src=../media-file.js></script> |
| 7 <script src=../video-test.js></script> | 7 <script src=../video-test.js></script> |
| 8 <script> | 8 <script> |
| 9 var videoCanPlayThrough = false; | 9 var videoCanPlayThrough = false; |
| 10 var trackLoaded = false; | 10 var trackLoaded = false; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 consoleWrite("Cue event: " + dispatchedEvents[i].type + | 64 consoleWrite("Cue event: " + dispatchedEvents[i].type + |
| 65 " id: " + dispatchedEvents[i].cue.id + | 65 " id: " + dispatchedEvents[i].cue.id + |
| 66 " time: " + dispatchedEvents[i].time); | 66 " time: " + dispatchedEvents[i].time); |
| 67 } | 67 } |
| 68 | 68 |
| 69 endTest(); | 69 endTest(); |
| 70 } | 70 } |
| 71 | 71 |
| 72 waitForEvent('ended', logEndTest); | 72 waitForEvent('ended', logEndTest); |
| 73 | 73 |
| 74 waitForEvent('canplaythrough', function() { | 74 waitForEventOnce('canplaythrough', function() { |
| 75 video.currentTime = 5.00; | 75 video.currentTime = 5.00; |
| 76 videoCanPlayThrough = true; | 76 videoCanPlayThrough = true; |
| 77 | 77 |
| 78 runTests(); | 78 runTests(); |
| 79 }); | 79 }); |
| 80 | 80 |
| 81 </script> | 81 </script> |
| 82 </head> | 82 </head> |
| 83 <body onload="bodyLoaded()"> | 83 <body onload="bodyLoaded()"> |
| 84 <p>Tests that all events events are triggered in chronological order.</p
> | 84 <p>Tests that all events events are triggered in chronological order.</p
> |
| 85 <video controls> | 85 <video controls> |
| 86 <track id="testTrack" src="captions-webvtt/sorted-dispatch.vtt" onlo
ad="loaded()" default> | 86 <track id="testTrack" src="captions-webvtt/sorted-dispatch.vtt" onlo
ad="loaded()" default> |
| 87 </video> | 87 </video> |
| 88 </body> | 88 </body> |
| 89 </html> | 89 </html> |
| OLD | NEW |