blob: f144837bb2dcb4e2b07996ada89393e4b61c6b6f [file] [log] [blame]
<html>
<!--
This test checks that video tags created by javascript are are deferred
during prerendering and the autoplay is enabled during swap ins.
-->
<head>
<title>Prerender for HTML5 video.</title>
</head>
<body>
<div id="vid">
</div>
<script>
var videoTag = document.createElement("video");
videoTag.src = "bear.ogv"
videoTag.id = "mediaEl";
var element = document.getElementById("vid");
element.appendChild(videoTag);
var willPlay = true;
var testNetworkEvents = false;
</script>
<script src="prerender_html5_common.js"></script>
<script>
document.getElementById("mediaEl").play();
</script>
</body>
</html>