blob: dd99f2aff7777375b10e68b5b1dc2004585081fc [file] [log] [blame]
<html>
<head>
<script>
var video;
var loadedCount = 0;
if (window.layoutTestController)
layoutTestController.waitUntilDone();
function canplaythrough()
{
loadedCount++;
if (loadedCount == 2) {
if (window.layoutTestController)
layoutTestController.notifyDone();
return;
}
video.src = "content/test.mp4";
video.load();
}
function test()
{
video = document.getElementsByTagName('video')[0];
video.addEventListener("canplaythrough", canplaythrough);
video.src = "content/scaled-matrix.mov";
video.load();
}
</script>
</head>
<body onload="test()">
<p>Making sure the controller looks ok after a second load().</p>
<video controls></video>
</body>
</html>