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

Side by Side Diff: LayoutTests/fast/canvas/canvas-text-baseline.html

Issue 24438004: Rename testRunner.dumpAsText(true) to testRunner.dumpAsTextWithPixelResults() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: more tests Created 7 years, 3 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 | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <body> 2 <body>
3 <canvas id="canvas" width=600 height=300 style="border:5px solid black"> 3 <canvas id="canvas" width=600 height=300 style="border:5px solid black">
4 <script> 4 <script>
5 if (window.testRunner) 5 if (window.testRunner)
6 testRunner.dumpAsText(true); 6 testRunner.dumpAsTextWithPixelResults();
7 7
8 var ctx = document.getElementById('canvas').getContext('2d'); 8 var ctx = document.getElementById('canvas').getContext('2d');
9 9
10 var x = 10; 10 var x = 10;
11 var y = 150; 11 var y = 150;
12 12
13 ctx.lineWidth = 1; 13 ctx.lineWidth = 1;
14 ctx.beginPath(); 14 ctx.beginPath();
15 ctx.moveTo(0, 150); 15 ctx.moveTo(0, 150);
16 ctx.lineTo(600, 150); 16 ctx.lineTo(600, 150);
(...skipping 19 matching lines...) Expand all
36 ctx.fillText(text, x, y); 36 ctx.fillText(text, x, y);
37 x += w + 10; 37 x += w + 10;
38 38
39 text = "Middle"; 39 text = "Middle";
40 ctx.textBaseline = "middle"; 40 ctx.textBaseline = "middle";
41 w = ctx.measureText(text).width; 41 w = ctx.measureText(text).width;
42 ctx.fillText(text, x, y); 42 ctx.fillText(text, x, y);
43 x += w + 10; 43 x += w + 10;
44 44
45 </script> 45 </script>
OLDNEW
« no previous file with comments | « LayoutTests/fast/canvas/canvas-text-alignment.html ('k') | LayoutTests/fast/canvas/canvas-toDataURL-webp.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698