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

Side by Side Diff: LayoutTests/fast/canvas/fillrect-gradient-zero-stops.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 <body> 1 <body>
2 <p> 2 <p>
3 The canvas below should show a gradient with zero stops, which according to the specification is filled with transparant black, ie. not visible. This tests <a h ref="http://bugs.webkit.org/show_bug.cgi?id=13784">Bug 13784, REGRESSION (r13744 -13750): Crash with empty gradient when drawing to canvas</a></p> 3 The canvas below should show a gradient with zero stops, which according to the specification is filled with transparant black, ie. not visible. This tests <a h ref="http://bugs.webkit.org/show_bug.cgi?id=13784">Bug 13784, REGRESSION (r13744 -13750): Crash with empty gradient when drawing to canvas</a></p>
4 <canvas id="c"></canvas> 4 <canvas id="c"></canvas>
5 <script> 5 <script>
6 if (window.testRunner) 6 if (window.testRunner)
7 testRunner.dumpAsText(true); 7 testRunner.dumpAsTextWithPixelResults();
8 8
9 window.onload = function () { 9 window.onload = function () {
10 var ctx = document.getElementById('c').getContext('2d'); 10 var ctx = document.getElementById('c').getContext('2d');
11 ctx.fillStyle = ctx.createLinearGradient(0, 0, 0, 50); 11 ctx.fillStyle = ctx.createLinearGradient(0, 0, 0, 50);
12 ctx.fillRect(0, 0, 300, 150); 12 ctx.fillRect(0, 0, 300, 150);
13 ctx.strokeRect(0, 0, 300, 150); 13 ctx.strokeRect(0, 0, 300, 150);
14 } 14 }
15 </script> 15 </script>
16 </body> 16 </body>
OLDNEW
« no previous file with comments | « LayoutTests/fast/canvas/fill-stroke-clip-reset-path.html ('k') | LayoutTests/fast/canvas/fillrect_gradient.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698