| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| <title>Canvas Incremental Repaint</title> |
| <style type="text/css" media="screen"> |
| border: 20px solid black; |
| <script type="text/javascript" charset="utf-8"> |
| testRunner.dumpAsText(true); |
| testRunner.waitUntilDone(); |
| function runRepaintTest() |
| testRunner.displayAndTrackRepaints(); |
| setTimeout(repaintTest, 0); |
| var canvas = document.getElementById('canvas1'); |
| var ctx = canvas.getContext('2d'); |
| ctx.setTransform(1, 0, 0, 1, 50, 200); |
| // Test the the transform applies the matrix in the correct order. |
| ctx.transform(1, 0, 0, -1, 0, 0); |
| ctx.fillRect(0, 100, 200, 80); |
| <body onload="runRepaintTest()"> |
| <canvas id="canvas1"></canvas> |