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');
15 frame
.addEventListener('load', function () {
16 source
= document
.getElementById('source');
17 source
.src
= 'http://user:pass@127.0.0.1:8080/media/resources/video-check-userpass.php?name=' + movie
+ '&type=' + type
;
20 waitForEventAndFail('error');
21 waitForEventAndEnd('canplay');
25 frame
.src
= "data:text/html,<b>test</b>";
26 document
.body
.appendChild(frame
);
31 <body onload=
"loadMediaFrame()">
36 Tests that the media player does not include authorization information.