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 function startTest() | 11 function startTest() |
10 { | 12 { |
11 consoleWrite("** Create video and text track element **"); | 13 consoleWrite("** Create video and text track element **"); |
12 var video = document.createElement("video"); | 14 var video = document.createElement("video"); |
13 var track = document.createElement("track"); | 15 var track = document.createElement("track"); |
14 | 16 |
15 consoleWrite("** Append the track element to the video element *
*"); | 17 consoleWrite("** Append the track element to the video element *
*"); |
16 video.appendChild(track); | 18 video.appendChild(track); |
17 | 19 |
18 consoleWrite("** Set the mode of the text track to \"showing\" *
*"); | 20 consoleWrite("** Set the mode of the text track to \"showing\" *
*"); |
19 track.track.mode = "showing"; | 21 track.track.mode = "showing"; |
20 | 22 |
21 consoleWrite(""); | 23 consoleWrite(""); |
22 consoleWrite("No crash. PASS."); | 24 consoleWrite("No crash. PASS."); |
23 consoleWrite(""); | 25 consoleWrite(""); |
24 | 26 |
25 endTest(); | 27 endTest(); |
26 } | 28 } |
27 </script> | 29 </script> |
28 </head> | 30 </head> |
29 <body onload="startTest()"> | 31 <body onload="startTest()"> |
30 <p>Tests that the browser handles properly simple DOM mutations.</p> | 32 <p>Tests that the browser handles properly simple DOM mutations.</p> |
31 </body> | 33 </body> |
32 </html> | 34 </html> |
OLD | NEW |