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 on and off.</title> | 5 <title>Test closed caption track selection on and off.</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 text = ["First", "Second", "Third"]; | 12 var text = ["First", "Second", "Third"]; |
13 var displayElement; | 13 var displayElement; |
14 | 14 |
15 function addTextTrack() | 15 function addTextTrack() |
16 { | 16 { |
17 var track = video.addTextTrack('captions'); | 17 var track = video.addTextTrack('captions'); |
18 | 18 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 78 |
79 video.src = findMediaFile('video', 'content/counting'); | 79 video.src = findMediaFile('video', 'content/counting'); |
80 } | 80 } |
81 </script> | 81 </script> |
82 </head> | 82 </head> |
83 <body onload="loaded()"> | 83 <body onload="loaded()"> |
84 <p>Tests that tracks can be turned on and off through the track selection me
nu</p> | 84 <p>Tests that tracks can be turned on and off through the track selection me
nu</p> |
85 <video controls></video> | 85 <video controls></video> |
86 </body> | 86 </body> |
87 </html> | 87 </html> |
OLD | NEW |