<!DOCTYPE html>
<canvas id='c'></canvas>
<script>
var can = document.getElementById('c');
can.width = can.height = 100;
var ctx = can.getContext("2d");
ctx.fillStyle = 'green';
ctx.fillRect(0, 0, 100, 100);
if (window.testRunner) {
testRunner.setPrinting();
}
</script>