| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 59 |
| 60 runTests(); | 60 runTests(); |
| 61 } | 61 } |
| 62 | 62 |
| 63 function bodyLoaded() | 63 function bodyLoaded() |
| 64 { | 64 { |
| 65 findMediaElement(); | 65 findMediaElement(); |
| 66 video.src = findMediaFile("video", "../content/test"); | 66 video.src = findMediaFile("video", "../content/test"); |
| 67 } | 67 } |
| 68 | 68 |
| 69 waitForEvent('canplaythrough', function() { | 69 waitForEventOnce('canplaythrough', function() { |
| 70 video.currentTime = 4.00; | 70 video.currentTime = 4.00; |
| 71 videoCanPlayThrough = true; | 71 videoCanPlayThrough = true; |
| 72 | 72 |
| 73 runTests(); | 73 runTests(); |
| 74 }); | 74 }); |
| 75 | 75 |
| 76 </script> | 76 </script> |
| 77 </head> | 77 </head> |
| 78 <body onload="bodyLoaded()"> | 78 <body onload="bodyLoaded()"> |
| 79 <p>Tests that the video is paused after cues that have pause-on-exit fla
g are processed</p> | 79 <p>Tests that the video is paused after cues that have pause-on-exit fla
g are processed</p> |
| 80 <video controls> | 80 <video controls> |
| 81 <track id="testTrack" src="captions-webvtt/simple-captions.vtt" onlo
ad="loaded()" default> | 81 <track id="testTrack" src="captions-webvtt/simple-captions.vtt" onlo
ad="loaded()" default> |
| 82 </video> | 82 </video> |
| 83 </body> | 83 </body> |
| 84 </html> | 84 </html> |
| OLD | NEW |