[gtk+] reftests: Fix random failures of reftest



commit bb3174c913059514bf1e99295544844594e3267e
Author: Benjamin Otte <otte redhat com>
Date:   Mon Jun 9 19:18:48 2014 +0200

    reftests: Fix random failures of reftest
    
    The reftest is testing "transparent" works as expected by drawing a
    purple background once with purple and once with transparent and
    expecting the same result. This works fine unless anti-aliasing happens
    at rounded corners. The overdraw of the 2nd background changes the
    antialiased pixels.
    
    Fix this by explicitly setting the border radius to 0.
    
    Also reindent the file to make it more readable.

 .../reftests/background-color-transparent.css      |   19 +++++++++++++++----
 1 files changed, 15 insertions(+), 4 deletions(-)
---
diff --git a/testsuite/reftests/background-color-transparent.css 
b/testsuite/reftests/background-color-transparent.css
index bddb3c8..031f6b9 100644
--- a/testsuite/reftests/background-color-transparent.css
+++ b/testsuite/reftests/background-color-transparent.css
@@ -1,4 +1,15 @@
-* { background-image: none; background-color: purple; }
-GtkButton { background-color: blue; }
-.transparent { background-color: transparent; }
-.reference { background-color: purple; }
+* {
+  background-image: none;
+  border-radius: 0;
+  background-color: purple;
+}
+
+GtkButton {
+  background-color: blue;
+}
+.transparent {
+  background-color: transparent;
+}
+.reference {
+  background-color: purple;
+}


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