Commit 53c99aa1 authored by Dale Curtis's avatar Dale Curtis Committed by Commit Bot

Add vp9-alpha + canvas layout test.

Apparently we don't have any vpx-alpha layout tests, hence macOS has
had broken support here for some time.

BUG=919015
TEST=fails without the macOS alpha fix.

Change-Id: I1103f3fd747ca62eff938824bdc0e52899495f64
Reviewed-on: https://chromium-review.googlesource.com/c/1468597Reviewed-by: default avatarDaniele Castagna <dcastagna@chromium.org>
Commit-Queue: Dale Curtis <dalecurtis@chromium.org>
Auto-Submit: Dale Curtis <dalecurtis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#631877}
parent 582ecd13
<style>
body { background: white; }
video, canvas { background: pink; }
</style>
<script>
if (window.testRunner)
testRunner.waitUntilDone();
function startTest() {
var video = document.querySelector('video');
video.onplaying = function() {
if (video.currentTime == 0) {
setTimeout(video.onplaying, 150);
return;
}
var canvas = document.querySelector('canvas');
var ctx = canvas.getContext('2d');
// This will squish the video a bit, but it doesn't matter for this test.
ctx.clearRect(0, 0, canvas.width, canvas.height);
ctx.drawImage(video, 0, 0, canvas.width, canvas.height);
if (window.testRunner)
testRunner.notifyDone();
}
video.play();
}
</script>
<body onload="startTest();">
<video src="resources/white-square-vp9a.webm" width="320" height="240"></video>
<canvas width="320" height="240"></canvas>
</body>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment