reftests: Check that inherited properties work
This commit is contained in:
committed by
Benjamin Otte
parent
a1858c5454
commit
d392af2e36
@ -38,6 +38,9 @@ EXTRA_DIST += \
|
||||
css-match-exact.css \
|
||||
css-match-exact.ref.ui \
|
||||
css-match-exact.ui \
|
||||
css-match-inherit.css \
|
||||
css-match-inherit.ref.ui \
|
||||
css-match-inherit.ui \
|
||||
css-match-name.css \
|
||||
css-match-name.ref.ui \
|
||||
css-match-name.ui \
|
||||
|
||||
11
tests/reftests/css-match-inherit.css
Normal file
11
tests/reftests/css-match-inherit.css
Normal file
@ -0,0 +1,11 @@
|
||||
* {
|
||||
engine: none;
|
||||
}
|
||||
|
||||
GtkButton {
|
||||
color: red;
|
||||
}
|
||||
|
||||
.testinherit * {
|
||||
color: red;
|
||||
}
|
||||
22
tests/reftests/css-match-inherit.ref.ui
Normal file
22
tests/reftests/css-match-inherit.ref.ui
Normal file
@ -0,0 +1,22 @@
|
||||
<?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>
|
||||
<style>
|
||||
<class name="testinherit"/>
|
||||
</style>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
||||
19
tests/reftests/css-match-inherit.ui
Normal file
19
tests/reftests/css-match-inherit.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>
|
||||
Reference in New Issue
Block a user