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

Side by Side Diff: LayoutTests/fast/canvas/gradient-add-second-start-end-stop.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 <body> 1 <body>
2 <canvas id="c" width="600" height="100"></canvas> 2 <canvas id="c" width="600" height="100"></canvas>
3 <script> 3 <script>
4 if (window.testRunner) 4 if (window.testRunner)
5 testRunner.dumpAsText(true); 5 testRunner.dumpAsTextWithPixelResults();
6 6
7 var canvas = document.getElementById("c"); 7 var canvas = document.getElementById("c");
8 var ctx = canvas.getContext("2d"); 8 var ctx = canvas.getContext("2d");
9 9
10 var gradient = ctx.createLinearGradient(0, 0, 0, 100); 10 var gradient = ctx.createLinearGradient(0, 0, 0, 100);
11 gradient.addColorStop(0.4, "#f00"); 11 gradient.addColorStop(0.4, "#f00");
12 gradient.addColorStop(0.6, "#00f"); 12 gradient.addColorStop(0.6, "#00f");
13 13
14 ctx.fillStyle = gradient; 14 ctx.fillStyle = gradient;
15 ctx.fillRect(0, 0, 100, 100); 15 ctx.fillRect(0, 0, 100, 100);
16 16
17 gradient.addColorStop(0, "#fff"); 17 gradient.addColorStop(0, "#fff");
18 gradient.addColorStop(1, "#fff"); 18 gradient.addColorStop(1, "#fff");
19 ctx.fillStyle = gradient; 19 ctx.fillStyle = gradient;
20 ctx.fillRect(150, 0, 100, 100); 20 ctx.fillRect(150, 0, 100, 100);
21 </script> 21 </script>
22 </body> 22 </body>
OLDNEW
« no previous file with comments | « LayoutTests/fast/canvas/font-update.html ('k') | LayoutTests/fast/canvas/image-object-in-canvas.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698