[gtk+] reftests: Modify test to ensure identical output



commit 42450cacd9700194b918fd49799107d7fd2bd785
Author: Benjamin Otte <otte redhat com>
Date:   Mon May 9 01:15:17 2011 +0200

    reftests: Modify test to ensure identical output
    
    GtkArrow and the align properties use different methods (float vs int)
    to center the arrow. If the size of the arrow is odd, this will cause a
    rendering that differs by half a pixel. So we request an even size for
    both the arrow and the container and everything works out.

 tests/reftests/misc-alignment.ref.ui |    2 ++
 tests/reftests/misc-alignment.ui     |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/tests/reftests/misc-alignment.ref.ui b/tests/reftests/misc-alignment.ref.ui
index 70ef01e..4bca709 100644
--- a/tests/reftests/misc-alignment.ref.ui
+++ b/tests/reftests/misc-alignment.ref.ui
@@ -2,6 +2,7 @@
 <interface>
   <!-- interface-requires gtk+ 3.0 -->
   <object class="GtkWindow" id="window1">
+    <property name="width_request">160</property>
     <property name="can_focus">False</property>
     <property name="type">popup</property>
     <child>
@@ -133,6 +134,7 @@
         </child>
         <child>
           <object class="GtkArrow" id="arrow3">
+            <property name="width_request">16</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="hexpand">True</property>
diff --git a/tests/reftests/misc-alignment.ui b/tests/reftests/misc-alignment.ui
index 412a4b0..8d683b9 100644
--- a/tests/reftests/misc-alignment.ui
+++ b/tests/reftests/misc-alignment.ui
@@ -2,6 +2,7 @@
 <interface>
   <!-- interface-requires gtk+ 3.0 -->
   <object class="GtkWindow" id="window1">
+    <property name="width_request">160</property>
     <property name="can_focus">False</property>
     <property name="type">popup</property>
     <child>
@@ -145,6 +146,7 @@
         </child>
         <child>
           <object class="GtkArrow" id="arrow3">
+            <property name="width_request">16</property>
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="halign">center</property>



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