Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / media / text-served-as-text.html
blob7c02db43e62d9a80111fc2ec7a598312401e8ea9
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>text file served as 'text/plain'</title>
5 <script src=../../media-resources/video-test.js></script>
6 <script>
7 function loadedmetadata(evt)
9 logResult(false, "loaded text file served as text");
10 endTest();
13 function error(evt)
15 logResult(true, "failed trying to load text file served as text");
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.txt";
29 video.src = "http://127.0.0.1:8000/media/video-throttled-load.cgi?name=" + movie + "&throttle=99999&type=text/plain";
31 </script>
32 </head>
34 <body onload="start()">
35 <video controls></video>
36 </body>
37 </html>