blob: dc7fd711b84b78cdfc173ebeb33d1c81de079714 [file] [log] [blame]
<html>
<head>
<script src=../../media-resources/video-test.js></script>
<script src=../../media-resources/media-file.js></script>
<script>
var frame;
function loadMediaFrame()
{
var movie = findMediaFile('video', 'test');
var type = mimeTypeForExtension(movie.split('.').pop());
frame = document.createElement('iframe');
frame.addEventListener('load', function () {
testExpected("frame.contentDocument.getElementsByTagName('video')[0].error", null);
endTest();
});
waitForEventAndFail('error');
waitForEventAndEnd('canplay');
frame.src = 'resources/video-check-useragent.py?name=' + movie + '&type=' + type;
document.body.appendChild(frame);
}
</script>
</head>
<body onload="loadMediaFrame()">
<br>
Tests that a media document can open a media URL with an ambiguous extension.
<br>
</body>
</html>