OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <body onload="start()"> | 3 <body onload="start()"> |
4 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 | 4 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 |
5 (Please avoid writing new tests using video-test.js) --> | 5 (Please avoid writing new tests using video-test.js) --> |
6 <script src=../../media-resources/video-test.js></script> | 6 <script src=../../media-resources/video-test.js></script> |
7 <script src=../../media-resources/media-file.js></script> | 7 <script src=../../media-resources/media-file.js></script> |
8 <script> | 8 <script> |
9 waitForEvent('error', function() { | 9 waitForEvent('error', function() { |
10 failTest("error: " + JSON.stringify(video.error)); | 10 failTest("error: " + JSON.stringify(video.error)); |
11 }); | 11 }); |
12 | 12 |
13 waitForEvent('playing', function() { | 13 waitForEvent('playing', function() { |
14 try { | 14 try { |
(...skipping 12 matching lines...) Expand all Loading... |
27 document.body.appendChild(mediaElement); | 27 document.body.appendChild(mediaElement); |
28 var mediaFile = findMediaFile("video", "../../media/resources/test")
; | 28 var mediaFile = findMediaFile("video", "../../media/resources/test")
; |
29 var type = mimeTypeForExtension(mediaFile.split('.').pop()); | 29 var type = mimeTypeForExtension(mediaFile.split('.').pop()); |
30 video.src = "http://localhost:8080/security/resources/video-cross-or
igin-allow.php?no-preflight&name=" + mediaFile + "&type=" + type; | 30 video.src = "http://localhost:8080/security/resources/video-cross-or
igin-allow.php?no-preflight&name=" + mediaFile + "&type=" + type; |
31 video.play(); | 31 video.play(); |
32 } | 32 } |
33 </script> | 33 </script> |
34 <canvas></canvas> | 34 <canvas></canvas> |
35 </body> | 35 </body> |
36 </head> | 36 </head> |
OLD | NEW |