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 <title>Test closed caption track selection functionality.</title> | 5 <title>Test closed caption track selection functionality.</title> |
6 <script src=media-file.js></script> | 6 <script src=media-file.js></script> |
7 <script src=media-controls.js></script> | 7 <script src=media-controls.js></script> |
8 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 | 8 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 |
9 (Please avoid writing new tests using video-test.js) --> | 9 (Please avoid writing new tests using video-test.js) --> |
10 <script src=video-test.js></script> | 10 <script src=video-test.js></script> |
11 <script> | 11 <script> |
12 var track; | 12 var track; |
13 | 13 |
14 function addTextTrackThroughJS() | 14 function addTextTrackThroughJS() |
15 { | 15 { |
16 consoleWrite(""); | 16 consoleWrite(""); |
17 consoleWrite("** Add a text track through JS to the video element **
"); | 17 consoleWrite("** Add a text track through JS to the video element **
"); |
18 var t = video.addTextTrack('captions', 'English', 'en'); | 18 var t = video.addTextTrack('captions', 'English', 'en'); |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 } | 117 } |
118 </script> | 118 </script> |
119 </head> | 119 </head> |
120 <body onload="loaded()"> | 120 <body onload="loaded()"> |
121 <p>Tests that the closed captions button enables track switching</p> | 121 <p>Tests that the closed captions button enables track switching</p> |
122 <video controls> | 122 <video controls> |
123 <track src="track/captions-webvtt/captions-fast.vtt" kind="captions" onl
oad="testCCTrackSelectionFunctionality()"> | 123 <track src="track/captions-webvtt/captions-fast.vtt" kind="captions" onl
oad="testCCTrackSelectionFunctionality()"> |
124 </video> | 124 </video> |
125 </body> | 125 </body> |
126 </html> | 126 </html> |
OLD | NEW |