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 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 |
| 8 (Please avoid writing new tests using video-test.js) --> |
7 <script src=../video-test.js></script> | 9 <script src=../video-test.js></script> |
8 <script> | 10 <script> |
9 | 11 |
10 var track; | 12 var track; |
11 | 13 |
12 function changed() | 14 function changed() |
13 { | 15 { |
14 consoleWrite("EVENT(" + event.type + ")"); | 16 consoleWrite("EVENT(" + event.type + ")"); |
15 | 17 |
16 testExpected("event.target", video.textTracks); | 18 testExpected("event.target", video.textTracks); |
(...skipping 20 matching lines...) Expand all Loading... |
37 } | 39 } |
38 | 40 |
39 </script> | 41 </script> |
40 </head> | 42 </head> |
41 <body onload="start()"> | 43 <body onload="start()"> |
42 <p>Tests that the 'change' event is fired when a TextTrack's mode change
s.</p> | 44 <p>Tests that the 'change' event is fired when a TextTrack's mode change
s.</p> |
43 <video> | 45 <video> |
44 </video> | 46 </video> |
45 </body> | 47 </body> |
46 </html> | 48 </html> |
OLD | NEW |