3 <script src=../../media-resources/video-test.js
></script>
4 <script src=../../media-resources/media-file.js
></script>
6 function loadMediaFrame()
10 var movie
= findMediaFile('video', 'test');
11 var type
= mimeTypeForExtension(movie
.split('.').pop());
12 var frame
= document
.createElement('iframe');
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');
23 frame
.src
= "data:text/html,<b>test</b>";
24 document
.body
.appendChild(frame
);
29 <body onload=
"loadMediaFrame()">
30 <video controls
></video>
32 Tests that WebKit is able to open a media file specified with a query url.