Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / media / video-query-url.html
blobe1b4582ee5352b1c4fc576192585c1a837cc8aa7
1 <html>
2 <head>
3 <script src=../../media-resources/video-test.js></script>
4 <script src=../../media-resources/media-file.js></script>
5 <script>
6 function loadMediaFrame()
8 findMediaElement();
10 var movie = findMediaFile('video', 'test');
11 var type = mimeTypeForExtension(movie.split('.').pop());
12 var frame = document.createElement('iframe');
14 frame.width = 0;
15 frame.height = 0;
16 frame.addEventListener('load', function () {
17 video.src = 'http://127.0.0.1:8000/media/resources/load-video.php?name=' + movie + '&type=' + type;
19 waitForEventAndFail('error');
20 waitForEventAndEnd('canplay');
21 });
23 frame.src = "data:text/html,<b>test</b>";
24 document.body.appendChild(frame);
26 </script>
27 </head>
29 <body onload="loadMediaFrame()">
30 <video controls></video>
31 <br>
32 Tests that WebKit is able to open a media file specified with a query url.
33 </body>
34 </html>