reftests: Check style property order

Ensure that style properties are read in the correct order, by having a
property twice with vastly different values.
This commit is contained in:
Benjamin Otte 2011-05-16 23:52:19 +02:00
parent c1dc3e9372
commit 25c396409c
4 changed files with 53 additions and 0 deletions

View File

@ -47,6 +47,9 @@ EXTRA_DIST += \
css-match-regions.css \
css-match-regions.ref.ui \
css-match-regions.ui \
css-match-style-property-order.css \
css-match-style-property-order.ref.ui \
css-match-style-property-order.ui \
css-match-subtype.css \
css-match-subtype.ref.ui \
css-match-subtype.ui \

View File

@ -0,0 +1,12 @@
* {
-GtkWidget-focus-line-width: 0;
padding: 0
}
#test {
-GtkWidget-focus-line-width: 20
}
#reference {
padding: 20
}

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkWindow" id="window1">
<property name="can_focus">False</property>
<property name="type">popup</property>
<child>
<object class="GtkButton" id="button1">
<property name="name">reference</property>
<property name="label" translatable="yes">Hello World</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="has_focus">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
</object>
</child>
</object>
</interface>

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkWindow" id="window1">
<property name="can_focus">False</property>
<property name="type">popup</property>
<child>
<object class="GtkButton" id="button1">
<property name="name">test</property>
<property name="label" translatable="yes">Hello World</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="has_focus">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
</object>
</child>
</object>
</interface>