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 <script> | 8 <script> |
7 function inputFileChanged(e) { | 9 function inputFileChanged(e) { |
8 findMediaElement(); | 10 findMediaElement(); |
9 var file = e.target.files[0]; | 11 var file = e.target.files[0]; |
10 waitForEventAndEnd('loadedmetadata'); | 12 waitForEventAndEnd('loadedmetadata'); |
11 waitForEventAndFail('error'); | 13 waitForEventAndFail('error'); |
12 video.src = window.URL.createObjectURL(file); | 14 video.src = window.URL.createObjectURL(file); |
13 } | 15 } |
14 | 16 |
(...skipping 12 matching lines...) Expand all Loading... |
27 </script> | 29 </script> |
28 </head> | 30 </head> |
29 <body onload="runTest()"> | 31 <body onload="runTest()"> |
30 <div> | 32 <div> |
31 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: |
32 <input type="file" name="file" id="file"> | 34 <input type="file" name="file" id="file"> |
33 </div> | 35 </div> |
34 <video></video> | 36 <video></video> |
35 </body> | 37 </body> |
36 </html> | 38 </html> |
OLD | NEW |