OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Load event on the track element</title> | 4 <title>Load event on the track element</title> |
5 <script src="../../resources/testharness.js"></script> | 5 <script src="../../resources/testharness.js"></script> |
6 <script src="../../resources/testharnessreport.js"></script> | 6 <script src="../../resources/testharnessreport.js"></script> |
7 </head> | 7 </head> |
8 <body> | 8 <body> |
9 <div id="log"></div> | 9 <script> |
10 <script type="text/javascript"> | |
11 | 10 |
12 var video; | 11 var video; |
13 | 12 |
14 // Setup | 13 // Setup |
15 | 14 |
16 setup(function(){ | 15 setup(function(){ |
17 video = document.createElement('video'); | 16 video = document.createElement('video'); |
18 document.body.appendChild(video); | 17 document.body.appendChild(video); |
19 }, {timeout: 5000}); | 18 }, {timeout: 5000}); |
20 | 19 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 if (command === "mode") | 63 if (command === "mode") |
65 track.track.mode = 'hidden'; | 64 track.track.mode = 'hidden'; |
66 | 65 |
67 if (command === "append") | 66 if (command === "append") |
68 video.appendChild(track); | 67 video.appendChild(track); |
69 }; | 68 }; |
70 | 69 |
71 </script> | 70 </script> |
72 </body> | 71 </body> |
73 </html> | 72 </html> |
OLD | NEW |