| <title>This tests that we don't leave bits behind on the canvas context.</title> |
| <canvas style="width: 100px; height: 100px" id="canvas" width="100" height="100"></canvas> |
| <canvas style="width: 200px; height: 200px" id="stretchedCanvas" width="100" height="100"></canvas> |
| testRunner.waitUntilDone(); |
| var ctx = canvas.getContext("2d"); |
| var stretchedCtx = stretchedCanvas.getContext("2d"); |
| ctx.fillRect(1, 1, 50, 50); |
| stretchedCtx.fillRect(1, 1, 50, 50); |
| ctx.clearRect(1, 1, 50, 50); |
| stretchedCtx.clearRect(1, 1, 50, 50); |