Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / media / pdf-served-as-pdf.html
blobe19c1a454ebed959960f7e5eedae904f75a070f0
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>PDF file served as 'application/pdf'</title>
5 <script src=../../media-resources/video-test.js></script>
6 <script>
7 function loadedmetadata(evt)
9 logResult(false, "loaded PDF file served as PDF");
10 endTest();
13 function error(evt)
15 logResult(true, "failed trying to load PDF file served as PDF");
16 endTest();
19 function start()
21 findMediaElement();
23 waitForEvent('loadedmetadata', loadedmetadata);
24 waitForEvent("error", error);
25 waitForEvent("loadstart");
26 testExpected("video.error", null);
28 var movie = "resources/test.pdf";
29 video.src = "http://127.0.0.1:8000/media/video-throttled-load.cgi?name=" + movie + "&throttle=99999&type=application/pdf";
31 </script>
32 </head>
34 <body onload="start()">
35 <video controls></video>
36 </body>
37 </html>