OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>media file served as 'text/plain'</title> | 4 <title>media file served as 'text/plain'</title> |
5 <script src=../../media-resources/media-file.js></script> | 5 <script src=../../media-resources/media-file.js></script> |
6 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 | 6 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 |
7 (Please avoid writing new tests using video-test.js) --> | 7 (Please avoid writing new tests using video-test.js) --> |
8 <script src=../../media-resources/video-test.js></script> | 8 <script src=../../media-resources/video-test.js></script> |
9 <script> | 9 <script> |
10 function loadedmetadata(evt) | 10 function loadedmetadata(evt) |
11 { | 11 { |
12 logResult(true, "loaded media file served as text"); | 12 logResult(true, "loaded media file served as text"); |
13 endTest(); | 13 endTest(); |
14 } | 14 } |
15 | 15 |
16 function error(evt) | 16 function error(evt) |
(...skipping 14 matching lines...) Expand all Loading... |
31 var movie = findMediaFile("video", "resources/test"); | 31 var movie = findMediaFile("video", "resources/test"); |
32 video.src = "http://127.0.0.1:8000/media/video-throttled-load.cg
i?name=" + movie + "&throttle=99999&type=text/plain"; | 32 video.src = "http://127.0.0.1:8000/media/video-throttled-load.cg
i?name=" + movie + "&throttle=99999&type=text/plain"; |
33 } | 33 } |
34 </script> | 34 </script> |
35 </head> | 35 </head> |
36 | 36 |
37 <body onload="start()"> | 37 <body onload="start()"> |
38 <video controls></video> | 38 <video controls></video> |
39 </body> | 39 </body> |
40 </html> | 40 </html> |
OLD | NEW |