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