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

Side by Side Diff: LayoutTests/fast/canvas/canvasDrawingIntoSelf.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 If this renders correctly you should see one big friendly green square. 1 If this renders correctly you should see one big friendly green square.
2 <canvas id="canvas" width="200" height="200" ></canvas> 2 <canvas id="canvas" width="200" height="200" ></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("canvas"); 7 var canvas = document.getElementById("canvas");
8 var context = canvas.getContext("2d"); 8 var context = canvas.getContext("2d");
9 context.fillStyle = 'red'; 9 context.fillStyle = 'red';
10 context.fillRect(0,0,200,200); 10 context.fillRect(0,0,200,200);
11 context.fillStyle = 'green'; 11 context.fillStyle = 'green';
12 context.fillRect(50,50,100,100); 12 context.fillRect(50,50,100,100);
13 context.drawImage(canvas, 50, 50, 100, 100, 0, 0, 200, 200); 13 context.drawImage(canvas, 50, 50, 100, 100, 0, 0, 200, 200);
14 </script> 14 </script>
OLDNEW
« no previous file with comments | « LayoutTests/fast/canvas/canvas-transforms-during-path.html ('k') | LayoutTests/fast/canvas/check-stale-putImageData.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698