reftests: Add test for latest fix
Ensure we draw the full backgorund on labels, not just where test appears.
This commit is contained in:
@ -244,6 +244,9 @@ testdata = \
|
|||||||
label-attribute-preference.css \
|
label-attribute-preference.css \
|
||||||
label-attribute-preference.ref.ui \
|
label-attribute-preference.ref.ui \
|
||||||
label-attribute-preference.ui \
|
label-attribute-preference.ui \
|
||||||
|
label-background.css \
|
||||||
|
label-background.ref.ui \
|
||||||
|
label-background.ui \
|
||||||
label-clipping.css \
|
label-clipping.css \
|
||||||
label-clipping.ref.ui \
|
label-clipping.ref.ui \
|
||||||
label-clipping.ui \
|
label-clipping.ui \
|
||||||
|
|||||||
11
testsuite/reftests/label-background.css
Normal file
11
testsuite/reftests/label-background.css
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
GtkWindow {
|
||||||
|
background: darkred; /* should never be seen */
|
||||||
|
}
|
||||||
|
|
||||||
|
GtkBox {
|
||||||
|
background: red; /* should also never be seen */
|
||||||
|
}
|
||||||
|
|
||||||
|
GtkLabel {
|
||||||
|
background: green;
|
||||||
|
}
|
||||||
16
testsuite/reftests/label-background.ref.ui
Normal file
16
testsuite/reftests/label-background.ref.ui
Normal 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>
|
||||||
39
testsuite/reftests/label-background.ui
Normal file
39
testsuite/reftests/label-background.ui
Normal 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>
|
||||||
Reference in New Issue
Block a user