| 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 <title>Canvas test: 2d.transformation.transform.infinity</title> | 5 <title>Canvas test: 2d.transformation.transform.infinity</title> |
| 6 <canvas id="canvas" class="output" width="100" height="100"><p class="fallback">
FAIL (fallback content)</p></canvas> | 6 <canvas id="canvas" class="output" width="100" height="100"><p class="fallback">
FAIL (fallback content)</p></canvas> |
| 7 <script src="resources/asyncpaintguard.js"></script> | |
| 8 <script> | 7 <script> |
| 9 var ctx = document.getElementById("canvas").getContext("2d"); | 8 var ctx = document.getElementById("canvas").getContext("2d"); |
| 10 ctx.fillStyle = '#f00'; | 9 ctx.fillStyle = '#f00'; |
| 11 ctx.fillRect(0, 0, 100, 100); | 10 ctx.fillRect(0, 0, 100, 100); |
| 12 ctx.transform(Infinity,0, 0,Infinity, 0,0); | 11 ctx.transform(Infinity,0, 0,Infinity, 0,0); |
| 13 ctx.fillStyle = '#0f0'; | 12 ctx.fillStyle = '#0f0'; |
| 14 ctx.fillRect(-100, -100, 200, 200); | 13 ctx.fillRect(-100, -100, 200, 200); |
| 15 </script> | 14 </script> |
| OLD | NEW |