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 | 5 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 |
6 (Please avoid writing new tests using video-test.js) --> | 6 (Please avoid writing new tests using video-test.js) --> |
7 <script src=video-test.js></script> | 7 <script src=video-test.js></script> |
8 <script> | 8 <script> |
9 function inputFileChanged(e) { | 9 function inputFileChanged(e) { |
10 findMediaElement(); | 10 findMediaElement(); |
11 var file = e.target.files[0]; | 11 var file = e.target.files[0]; |
12 waitForEventAndEnd('loadedmetadata'); | 12 waitForEventAndEnd('loadedmetadata'); |
13 waitForEventAndFail('error'); | 13 waitForEventAndFail('error'); |
14 video.src = window.URL.createObjectURL(file); | 14 video.src = window.URL.createObjectURL(file); |
15 } | 15 } |
(...skipping 13 matching lines...) Expand all Loading... |
29 </script> | 29 </script> |
30 </head> | 30 </head> |
31 <body onload="runTest()"> | 31 <body onload="runTest()"> |
32 <div> | 32 <div> |
33 This tests the ability of the <video> element to load blob URL
s. In the browser, select a video file: | 33 This tests the ability of the <video> element to load blob URL
s. In the browser, select a video file: |
34 <input type="file" name="file" id="file"> | 34 <input type="file" name="file" id="file"> |
35 </div> | 35 </div> |
36 <video></video> | 36 <video></video> |
37 </body> | 37 </body> |
38 </html> | 38 </html> |
OLD | NEW |