blob: 57e25b403ec4616dbfdaaeafd919171bd3e2736a [file] [log] [blame]
<canvas id="canvas" width="200" height="200"></canvas>
<img id="image" src="resources/feDiffuseLighting-rect.svg" onload="drawIntoCanvas()" style="visibility:hidden">
<script>
if (window.testRunner)
testRunner.waitUntilDone();
function drawIntoCanvas()
{
var ctx = document.getElementById('canvas').getContext("2d");
var image = document.getElementById('image');
ctx.imageSmoothingEnabled = false;
ctx.drawImage(image, 0, 0, 200, 200);
if (window.testRunner)
testRunner.notifyDone();
}
</script>