| Index: content/test/data/gpu/pixel_video_vp9.html
|
| diff --git a/content/test/data/gpu/pixel_video_vp9.html b/content/test/data/gpu/pixel_video_vp9.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ee300f65dd22ed89b7771f1cccbc6c6d7bc1054f
|
| --- /dev/null
|
| +++ b/content/test/data/gpu/pixel_video_vp9.html
|
| @@ -0,0 +1,46 @@
|
| +<!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>VP9 Video test</title>
|
| +<style type="text/css">
|
| +.nomargin {
|
| + margin: 0px auto;
|
| +}
|
| +</style>
|
| +<script>
|
| +var g_swapsBeforeAck = 15;
|
| +var video;
|
| +
|
| +function main()
|
| +{
|
| + video = document.getElementById("video");
|
| + video.addEventListener('canplaythrough', waitForFinish, true);
|
| +}
|
| +
|
| +function waitForFinish()
|
| +{
|
| + if (g_swapsBeforeAck == 0) {
|
| + domAutomationController.setAutomationId(1);
|
| + 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">
|
| +<source src="/media/test/data/bear-vp9.webm" type="video/webm">
|
| +</video>
|
| +</div>
|
| +</body>
|
| +</html>
|
|
|