reftests: Add test for latest fix

Ensure we draw the full backgorund on labels, not just where test
appears.
This commit is contained in:
Benjamin Otte 2014-07-12 05:33:33 +02:00
parent f35ec11578
commit 9ae0b8ed27
4 changed files with 69 additions and 0 deletions

View File

@ -244,6 +244,9 @@ testdata = \
label-attribute-preference.css \
label-attribute-preference.ref.ui \
label-attribute-preference.ui \
label-background.css \
label-background.ref.ui \
label-background.ui \
label-clipping.css \
label-clipping.ref.ui \
label-clipping.ui \

View File

@ -0,0 +1,11 @@
GtkWindow {
background: darkred; /* should never be seen */
}
GtkBox {
background: red; /* should also never be seen */
}
GtkLabel {
background: green;
}

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.1 -->
<interface>
<requires lib="gtk+" version="3.12"/>
<object class="GtkWindow" id="window1">
<property name="can_focus">False</property>
<property name="type">popup</property>
<child>
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Hello World!</property>
</object>
</child>
</object>
</interface>

View File

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.1 -->
<interface>
<requires lib="gtk+" version="3.12"/>
<object class="GtkWindow" id="window1">
<property name="can_focus">False</property>
<property name="type">popup</property>
<child>
<object class="GtkBox" id="box1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Hello </property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">World!</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
</child>
</object>
</interface>