blob: 73a430b90765b1a99cdaa723fd0a62d18da0f939 [file] [log] [blame]
<!DOCTYPE HTML>
<html>
<head>
</head>
<body>
<canvas id="mycanvas" width="512" height="512"></canvas>
<script>
if (window.testRunner)
testRunner.dumpAsText()
onload = function()
{
var canvas = document.getElementById('mycanvas');
var ctx = canvas.getContext('2d');
ctx.fillStyle = "rgb(255,165,0)";
ctx.fillRect(0, 0, 512, 512);
ctx.save();
canvas.width = 256;
ctx.fillStyle = "rgb(255,165,0)";
ctx.fillRect(0, 0, 256, 512);
document.body.appendChild(document.createElement("p")).appendChild(document.createTextNode("If we got this far without an assertion, this test passed."));
};
</script>
</body>
</html>