| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <!-- Test based on that found at | 2 <!-- Test based on that found at |
| 3 http://philip.html5.org/tests/canvas/suite/tests/index.2d.transformation.tr
ansform.html | 3 http://philip.html5.org/tests/canvas/suite/tests/index.2d.transformation.tr
ansform.html |
| 4 | 4 |
| 5 After the non-invertible transform the fillRect call should have no effect | 5 After the non-invertible transform the fillRect call should have no effect |
| 6 --> | 6 --> |
| 7 <title>Canvas test: 2d.transformation.transform.non-invertible</title> | 7 <title>Canvas test: 2d.transformation.transform.non-invertible</title> |
| 8 <canvas id="canvas" class="output" width="100" height="100"><p class="fallback">
FAIL (fallback content)</p></canvas> | 8 <canvas id="canvas" class="output" width="100" height="100"><p class="fallback">
FAIL (fallback content)</p></canvas> |
| 9 <script> | 9 <script> |
| 10 if (window.testRunner) | 10 if (window.testRunner) |
| 11 testRunner.dumpAsText(true); | 11 testRunner.dumpAsTextWithPixelResults(); |
| 12 | 12 |
| 13 var ctx = document.getElementById("canvas").getContext("2d"); | 13 var ctx = document.getElementById("canvas").getContext("2d"); |
| 14 ctx.fillStyle = '#0f0'; | 14 ctx.fillStyle = '#0f0'; |
| 15 ctx.fillRect(0, 0, 100, 100); | 15 ctx.fillRect(0, 0, 100, 100); |
| 16 ctx.transform(0,0, 0,0, 0,0); | 16 ctx.transform(0,0, 0,0, 0,0); |
| 17 ctx.fillStyle = '#f00'; | 17 ctx.fillStyle = '#f00'; |
| 18 ctx.fillRect(0, 0, 100, 100); | 18 ctx.fillRect(0, 0, 100, 100); |
| 19 </script> | 19 </script> |
| OLD | NEW |