blob: 2ed1fa3c52091befcdf03130cc69f1988f1474d3 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script src="routines.js"></script>
<script src="canvas-to-peer-connection.js"></script>
<style type="text/css">
video { width: 400px; }
canvas { width: 400px; }
</style>
</head>
<body>
<div id="debuge"></div>
<script>
function testDescription(subcase) {
return Object.keys(subcase).map((k) => `${k}: ${typeof subcase[k] === "function" ? subcase[k].name : subcase[k]}`).join(",");
}
const testcase = {draw: with2DContext};
useVP8 = true;
// FIXME: We should reduce to 25 when having a good RGB -> YUC conversion story for VPx.
pixelColorTestError = 50;
promise_test(async t => { await testCanvasToPeerConnection(t, testcase); }, testDescription(testcase));
</script>
</body>
</html>