Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(174)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-measureText.html

Issue 2694703004: Use testharness.js instead of js-test.js in LayoutTests/fast/canvas tests. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <script src="../../resources/testharness.js"></script>
2 <html> 2 <script src="../../resources/testharnessreport.js"></script>
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> 3 <script>
9 if (window.testRunner) 4 test(function(t) {
10 testRunner.dumpAsText();
11 5
12 var canvas = document.getElementById("test"); 6 var canvas = document.createElement('canvas');
13 var context = canvas.getContext("2d"); 7 var context = canvas.getContext("2d");
14 for (x = 0; x < 100; x++) { 8 for (x = 0; x < 100; x++) {
15 context.restore(); 9 context.restore();
16 context.save(); 10 context.save();
17 context.save(); 11 context.save();
18 context.measureText("a", 0, 0, 0); 12 context.measureText("a", 0, 0, 0);
19 } 13 }
14 }, 'Regression test for bug http://webkit.org/b/106244. Test passes by not crash ing.');
20 </script> 15 </script>
21 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698