3 <script src=../../media-resources/video-test.js
></script>
4 <script src=../../media-resources/media-file.js
></script>
7 function loadMediaFrame()
9 var movie
= findMediaFile('video', 'test');
10 var type
= mimeTypeForExtension(movie
.split('.').pop());
11 frame
= document
.createElement('iframe');
12 frame
.addEventListener('load', function () {
13 testExpected("frame.contentDocument.getElementsByTagName('video')[0].error", null);
16 waitForEventAndFail('error');
17 waitForEventAndEnd('canplay');
18 frame
.src
= 'resources/video-check-useragent.php?name=' + movie
+ '&type=' + type
;
19 document
.body
.appendChild(frame
);
24 <body onload=
"loadMediaFrame()">
26 Tests that a media document can open a media URL with an ambiguous extension.