OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../media-file.js"></script> | 4 <script src="../media-file.js"></script> |
| 5 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 |
| 6 (Please avoid writing new tests using video-test.js) --> |
5 <script src="../video-test.js"></script> | 7 <script src="../video-test.js"></script> |
6 </head> | 8 </head> |
7 <body> | 9 <body> |
8 <p>Tests that inserting a <track> element immediately after a load()
doesn't crash.</p> | 10 <p>Tests that inserting a <track> element immediately after a load()
doesn't crash.</p> |
9 <video id="v"></video> | 11 <video id="v"></video> |
10 <script> | 12 <script> |
11 var v = document.querySelector('#v'); | 13 var v = document.querySelector('#v'); |
12 v.src = findMediaFile('video', '../content/test'); | 14 v.src = findMediaFile('video', '../content/test'); |
13 v.load(); | 15 v.load(); |
14 v.appendChild(document.createElement('track')); | 16 v.appendChild(document.createElement('track')); |
15 v.addEventListener('loadedmetadata', endTest); | 17 v.addEventListener('loadedmetadata', endTest); |
16 </script> | 18 </script> |
17 </body> | 19 </body> |
18 </html> | 20 </html> |
OLD | NEW |