blob: fd256275a5f5efbe337ba971482742a392db951b [file] [log] [blame]
<html>
<head>
<style>
video {
width: 400px;
height: 300px;
}
</style>
<script type="text/javascript" charset="utf-8">
if (window.testRunner) {
testRunner.dumpAsText(true);
testRunner.waitUntilDone();
}
</script>
</head>
<body>
<video></video>
<script>
var video = document.getElementsByTagName('video')[0];
video.src = 'resources/video.' + (video.canPlayType('video/ogg') ? 'ogv' : 'mp4');
video.addEventListener('canplaythrough', function() {
if (window.testRunner) {
testRunner.display();
testRunner.setPageVisibility("hidden");
testRunner.display();
testRunner.resetPageVisibility();
testRunner.notifyDone();
}
}, false);
</script>
</body>
</html>