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 non-default track load according to user language preference.</t
itle> | 5 <title>Test non-default track load according to user language preference.</t
itle> |
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 |
| 9 (Please avoid writing new tests using video-test.js) --> |
8 <script src=video-test.js></script> | 10 <script src=video-test.js></script> |
9 <script> | 11 <script> |
10 var track; | 12 var track; |
11 | 13 |
12 function startTest() | 14 function startTest() |
13 { | 15 { |
14 if (!window.eventSender) { | 16 if (!window.eventSender) { |
15 consoleWrite("No eventSender found."); | 17 consoleWrite("No eventSender found."); |
16 failTest(); | 18 failTest(); |
17 } | 19 } |
(...skipping 23 matching lines...) Expand all Loading... |
41 </script> | 43 </script> |
42 </head> | 44 </head> |
43 <body onload="loaded()"> | 45 <body onload="loaded()"> |
44 <p>Tests that appropriate language track is loaded, according to user prefer
ences.</p> | 46 <p>Tests that appropriate language track is loaded, according to user prefer
ences.</p> |
45 <video controls> | 47 <video controls> |
46 <track src="track/captions-webvtt/captions-fast.vtt" kind="captions"> | 48 <track src="track/captions-webvtt/captions-fast.vtt" kind="captions"> |
47 <track src="track/captions-webvtt/captions-fast.vtt" kind="captions" src
lang="ar" onload="endTest()"> | 49 <track src="track/captions-webvtt/captions-fast.vtt" kind="captions" src
lang="ar" onload="endTest()"> |
48 </video> | 50 </video> |
49 </body> | 51 </body> |
50 </html> | 52 </html> |
OLD | NEW |