blob: e08d543e5048e8a67f820f96bcee4568d0d5a6fd [file] [log] [blame]
<!DOCTYPE HTML>
<!-- READ BEFORE UPDATING:
If this test is updated make sure to increment the "revision" value of the
associated test in content/test/gpu/page_sets/pixel_tests.py. This will ensure
that the baseline images are regenerated on the next run.
-->
<html>
<head>
<title>MP4 Video with 180 Degree Rotation Test</title>
<style type="text/css">
.nomargin {
margin: 0px auto;
}
</style>
<script>
var g_swapsBeforeAck = 15;
var video;
function main()
{
video = document.getElementById("video");
if (video.readyState >= 4) {
waitForFinish();
} else {
video.addEventListener('canplaythrough', waitForFinish, true);
}
}
function waitForFinish()
{
if (g_swapsBeforeAck == 0) {
domAutomationController.send("SUCCESS");
} else {
g_swapsBeforeAck--;
window.requestAnimationFrame(waitForFinish);
}
}
</script>
</head>
<body onload="main()">
<div id="container" style="position:absolute; top:0px; left:0px">
<video class="nomargin" id="video" width="240" height="135">
<source src="/media/test/data/four-colors-rot-180.mp4" type="video/mp4">
</video>
</div>
</body>
</html>