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

Side by Side Diff: LayoutTests/fast/canvas/fill-stroke-clip-reset-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, 2 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> 3 <script>
4 function testOne(operation, quirk) 4 function testOne(operation, quirk)
5 { 5 {
6 if (window.testRunner){ 6 if (window.testRunner){
7 » » testRunner.dumpAsText(true); 7 » » testRunner.dumpAsTextWithPixelResults();
8 if (testRunner.setUseDashboardCompatibilityMode) 8 if (testRunner.setUseDashboardCompatibilityMode)
9 testRunner.setUseDashboardCompatibilityMode(quirk); 9 testRunner.setUseDashboardCompatibilityMode(quirk);
10 } 10 }
11 11
12 var canvas = document.getElementById(operation + "-" + (quirk ? "" : "no-") + "quirk"); 12 var canvas = document.getElementById(operation + "-" + (quirk ? "" : "no-") + "quirk");
13 var context = canvas.getContext('2d'); 13 var context = canvas.getContext('2d');
14 14
15 context.fillStyle = quirk ? "green" : "red"; 15 context.fillStyle = quirk ? "green" : "red";
16 context.fillRect(0, 0, 1000, 1000); 16 context.fillRect(0, 0, 1000, 1000);
17 17
(...skipping 22 matching lines...) Expand all
40 <p>All three of these small canvases should be green, not red.</p> 40 <p>All three of these small canvases should be green, not red.</p>
41 <canvas id="fill-no-quirk" width="20" height="20"></canvas> 41 <canvas id="fill-no-quirk" width="20" height="20"></canvas>
42 <canvas id="stroke-no-quirk" width="20" height="20"></canvas> 42 <canvas id="stroke-no-quirk" width="20" height="20"></canvas>
43 <canvas id="clip-no-quirk" width="20" height="20"></canvas> 43 <canvas id="clip-no-quirk" width="20" height="20"></canvas>
44 <p>All three of these small canvases should be green, not red, too, but these te st the Dashboard compatibility mode so they work properly only under DumpRenderT ree.</p> 44 <p>All three of these small canvases should be green, not red, too, but these te st the Dashboard compatibility mode so they work properly only under DumpRenderT ree.</p>
45 <canvas id="fill-quirk" width="20" height="20"></canvas> 45 <canvas id="fill-quirk" width="20" height="20"></canvas>
46 <canvas id="stroke-quirk" width="20" height="20"></canvas> 46 <canvas id="stroke-quirk" width="20" height="20"></canvas>
47 <canvas id="clip-quirk" width="20" height="20"></canvas> 47 <canvas id="clip-quirk" width="20" height="20"></canvas>
48 </body> 48 </body>
49 </html> 49 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/canvas/drawImage-with-globalAlpha.html ('k') | LayoutTests/fast/canvas/fillrect-gradient-zero-stops.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698