Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / canvas / canvas-measureText.html
blob4ead2e809299713296a586438d6dded15d38d447
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <p>Regression test for bug <a href="http://webkit.org/b/106244">106244</a></p>
5 <p>Test passes by not crashing.</p>
6 <canvas id="test"></canvas>
7 </body>
8 <script>
9 if (window.testRunner)
10 testRunner.dumpAsText();
12 var canvas = document.getElementById("test");
13 var context = canvas.getContext("2d");
14 for (x = 0; x < 100; x++) {
15 context.restore();
16 context.save();
17 context.save();
18 context.measureText("a", 0, 0, 0);
20 </script>
21 </html>