OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 <p>Regression test for bug <a href="http://webkit.org/b/106244">106244</a></p> | 4 <p>Regression test for bug <a href="http://webkit.org/b/106244">106244</a></p> |
5 <p>Test passes by not crashing.</p> | 5 <p>Test passes by not crashing.</p> |
6 <canvas id="test"></canvas> | 6 <canvas id="test"></canvas> |
7 </body> | 7 </body> |
8 <script> | 8 <script> |
9 if (window.testRunner) | 9 if (window.testRunner) |
10 testRunner.dumpAsText(); | 10 testRunner.dumpAsText(); |
11 | 11 |
12 var canvas = document.getElementById("test"); | 12 var canvas = document.getElementById("test"); |
13 var context = canvas.getContext("2d"); | 13 var context = canvas.getContext("2d"); |
14 for (x = 0; x < 100; x++) { | 14 for (x = 0; x < 100; x++) { |
15 context.restore(); | 15 context.restore(); |
16 context.save(); | 16 context.save(); |
17 context.save(); | 17 context.save(); |
18 context.measureText("a", 0, 0, 0); | 18 context.measureText("a", 0, 0, 0); |
19 } | 19 } |
20 </script> | 20 </script> |
21 </html> | 21 </html> |
OLD | NEW |