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

Unified Diff: LayoutTests/fast/canvas/fillrect-gradient-zero-stops-expected.html

Issue 187393007: Convert some pixel tests in fast/canvas into ref tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/canvas/fillrect-gradient-zero-stops-expected.html
diff --git a/LayoutTests/fast/canvas/fillrect-gradient-zero-stops.html b/LayoutTests/fast/canvas/fillrect-gradient-zero-stops-expected.html
similarity index 50%
copy from LayoutTests/fast/canvas/fillrect-gradient-zero-stops.html
copy to LayoutTests/fast/canvas/fillrect-gradient-zero-stops-expected.html
index 10856faffa8a0041b4b4c165e8b0cb4061e8b922..2c0fc4a3ea7db36fc5e462d64376eff8241e22e9 100644
--- a/LayoutTests/fast/canvas/fillrect-gradient-zero-stops.html
+++ b/LayoutTests/fast/canvas/fillrect-gradient-zero-stops-expected.html
@@ -1,16 +1,4 @@
<body>
<p>
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 href="http://bugs.webkit.org/show_bug.cgi?id=13784">Bug 13784, REGRESSION (r13744-13750): Crash with empty gradient when drawing to canvas</a></p>
-<canvas id="c"></canvas>
-<script>
-if (window.testRunner)
- testRunner.dumpAsTextWithPixelResults();
-
-window.onload = function () {
- var ctx = document.getElementById('c').getContext('2d');
- ctx.fillStyle = ctx.createLinearGradient(0, 0, 0, 50);
- ctx.fillRect(0, 0, 300, 150);
- ctx.strokeRect(0, 0, 300, 150);
-}
-</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698