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

Side by Side Diff: LayoutTests/fast/canvas/canvas-transforms-during-path.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 <head> 2 <head>
3 <script type="text/javascript"> 3 <script type="text/javascript">
4 if (window.testRunner) 4 if (window.testRunner)
5 testRunner.dumpAsText(true); 5 testRunner.dumpAsTextWithPixelResults();
6 6
7 function main() { 7 function main() {
8 var g = document.getElementById("c").getContext("2d"); 8 var g = document.getElementById("c").getContext("2d");
9 g.beginPath(); 9 g.beginPath();
10 g.moveTo(50, 0); 10 g.moveTo(50, 0);
11 g.lineTo(50,100); 11 g.lineTo(50,100);
12 g.translate(50, 50); 12 g.translate(50, 50);
13 g.rotate(0.5*3.1415); 13 g.rotate(0.5*3.1415);
14 g.translate(-50, -50); 14 g.translate(-50, -50);
15 g.moveTo(50, 0); 15 g.moveTo(50, 0);
16 g.lineTo(50,100); 16 g.lineTo(50,100);
17 g.stroke(); 17 g.stroke();
18 } 18 }
19 </script> 19 </script>
20 </head> 20 </head>
21 <body onload="main();"> 21 <body onload="main();">
22 <canvas id="c" width="100" height="100" style="background: green"></canvas> 22 <canvas id="c" width="100" height="100" style="background: green"></canvas>
23 <div>This tests that transforms applied to a canvas, are correctly applied t o the stroke path defined in the context. <br> The above image should be a green square divided into quarters by two black lines.</div> 23 <div>This tests that transforms applied to a canvas, are correctly applied t o the stroke path defined in the context. <br> The above image should be a green square divided into quarters by two black lines.</div>
24 </body> 24 </body>
25 </html> 25 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/canvas/canvas-transform-skewed.html ('k') | LayoutTests/fast/canvas/canvasDrawingIntoSelf.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698