[gtk+/gtk-3-6] reftests: Fix linear-gradient reftest (again)



commit ec2d51beb2b3aae7025c193de08cdf2fa5a5e822
Author: Benjamin Otte <otte redhat com>
Date:   Tue Nov 20 12:21:03 2012 +0100

    reftests: Fix linear-gradient reftest (again)
    
    Make it so that the repeating vs normal test only uses sharp color
    cutoffs instead of real gradients. That removes rounding errors and
    makes the test pass.

 tests/reftests/linear-gradient.css |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/reftests/linear-gradient.css b/tests/reftests/linear-gradient.css
index 61e4ed2..dc68fdd 100644
--- a/tests/reftests/linear-gradient.css
+++ b/tests/reftests/linear-gradient.css
@@ -28,11 +28,11 @@
 }
 
 #c {
-  background-image: linear-gradient(3.5turn, red, lime 10px, red 20px, green 30px, red 40px);
+  background-image: linear-gradient(3.5turn, red, red 10px, lime 10px, lime 20px, red 20px, red 30px, lime 30px, lime 40px, red 40px);
 }
 
 #reference #c {
-  background-image: repeating-linear-gradient(to bottom, red, lime 10px, red 20px, green 30px, red 40px);
+  background-image: repeating-linear-gradient(to bottom, red, red 10px, lime 10px, lime 20px, red 20px);
 }
 
 #d {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]