mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 19:30:10 +00:00
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:
parent
c1dc3e9372
commit
25c396409c
@ -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 \
|
||||
|
12
tests/reftests/css-match-style-property-order.css
Normal file
12
tests/reftests/css-match-style-property-order.css
Normal file
@ -0,0 +1,12 @@
|
||||
* {
|
||||
-GtkWidget-focus-line-width: 0;
|
||||
padding: 0
|
||||
}
|
||||
|
||||
#test {
|
||||
-GtkWidget-focus-line-width: 20
|
||||
}
|
||||
|
||||
#reference {
|
||||
padding: 20
|
||||
}
|
19
tests/reftests/css-match-style-property-order.ref.ui
Normal file
19
tests/reftests/css-match-style-property-order.ref.ui
Normal 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>
|
19
tests/reftests/css-match-style-property-order.ui
Normal file
19
tests/reftests/css-match-style-property-order.ui
Normal 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>
|
Loading…
Reference in New Issue
Block a user