blob: 3796142dc60b8122fb629ec208ac732d970e34b1 [file] [log] [blame]
This test ensures that accessing the context of a zero sized canvas does not crash.
<canvas id="canvas" width="0" height="0"></canvas><br />
<script>
if (window.testRunner)
testRunner.dumpAsText();
var context = document.getElementById("canvas").getContext("2d");
context.fillStyle = "green";
</script>