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.
This commit is contained in:
Benjamin Otte 2011-05-09 01:15:17 +02:00
parent 3c2105c9cd
commit 42450cacd9
2 changed files with 4 additions and 0 deletions

View File

@ -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>

View File

@ -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>