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

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

Issue 1161463007: De-flaking some tests in virtual/gpu/fast/canvas (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: undo previous patch (wrong issue) Created 5 years, 6 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 <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"></canvas >
4 <script src="resources/asyncpaintguard.js"></script>
4 <script> 5 <script>
5 if (window.testRunner) 6 if (window.testRunner)
6 testRunner.dumpAsTextWithPixelResults(); 7 testRunner.dumpAsTextWithPixelResults();
7 8
8 var ctx = document.getElementById('canvas').getContext('2d'); 9 var ctx = document.getElementById('canvas').getContext('2d');
9 10
10 var x = 10; 11 var x = 10;
11 var y = 150; 12 var y = 150;
12 13
13 ctx.lineWidth = 1; 14 ctx.lineWidth = 1;
(...skipping 22 matching lines...) Expand all
36 ctx.fillText(text, x, y); 37 ctx.fillText(text, x, y);
37 x += w + 10; 38 x += w + 10;
38 39
39 text = "Middle"; 40 text = "Middle";
40 ctx.textBaseline = "middle"; 41 ctx.textBaseline = "middle";
41 w = ctx.measureText(text).width; 42 w = ctx.measureText(text).width;
42 ctx.fillText(text, x, y); 43 ctx.fillText(text, x, y);
43 x += w + 10; 44 x += w + 10;
44 45
45 </script> 46 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698