| 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 src=../media-controls.js></script> | 8 <script src=../media-controls.js></script> |
| 9 | 9 |
| 10 <script> | 10 <script> |
| 11 | 11 |
| 12 var testTrack; | 12 var testTrack; |
| 13 var testCueDisplayBox; | 13 var testCueDisplayBox; |
| 14 var seekedCount = 0; | 14 var seekedCount = 0; |
| 15 var info = [ "Lorem", "ipsum", "dolor", "sit" ]; | 15 var info = [ "Lorem", "ipsum", "dolor", "sit" ]; |
| 16 | 16 |
| 17 function testFontSize(width, height) | 17 function testFontSize(width, height) |
| 18 { | 18 { |
| 19 run("video.width = " + width); | 19 run("video.width = " + width); |
| 20 run("video.height = " + height); | 20 run("video.height = " + height); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 } | 64 } |
| 65 } | 65 } |
| 66 | 66 |
| 67 function loaded() | 67 function loaded() |
| 68 { | 68 { |
| 69 consoleWrite("Test that default positioned TextTrack's cues are rend
ered correctly."); | 69 consoleWrite("Test that default positioned TextTrack's cues are rend
ered correctly."); |
| 70 findMediaElement(); | 70 findMediaElement(); |
| 71 testTrack = document.querySelector('track'); | 71 testTrack = document.querySelector('track'); |
| 72 video.src = findMediaFile('video', '../content/test'); | 72 video.src = findMediaFile('video', '../content/test'); |
| 73 waitForEvent('seeked', seeked); | 73 waitForEvent('seeked', seeked); |
| 74 waitForEvent('canplaythrough', function() { video.currentTime = .5;
}); | 74 waitForEventOnce('canplaythrough', function() { video.currentTime =
.5; }); |
| 75 } | 75 } |
| 76 | 76 |
| 77 </script> | 77 </script> |
| 78 </head> | 78 </head> |
| 79 <body onload="loaded()"> | 79 <body onload="loaded()"> |
| 80 <video controls > | 80 <video controls > |
| 81 <track src="captions-webvtt/captions.vtt" kind="captions" default> | 81 <track src="captions-webvtt/captions.vtt" kind="captions" default> |
| 82 </video> | 82 </video> |
| 83 </body> | 83 </body> |
| 84 </html> | 84 </html> |
| OLD | NEW |