4 <title>PDF file served as 'application/pdf'
</title>
5 <script src=../../media-resources/video-test.js
></script>
7 function loadedmetadata(evt
)
9 logResult(false, "loaded PDF file served as PDF");
15 logResult(true, "failed trying to load PDF file served as PDF");
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";
34 <body onload=
"start()">
35 <video controls
></video>