reftests: Check that inherited properties work

This commit is contained in:
Cosimo Cecchi
2011-05-18 18:43:10 +02:00
committed by Benjamin Otte
parent a1858c5454
commit d392af2e36
4 changed files with 55 additions and 0 deletions

View File

@ -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 \

View File

@ -0,0 +1,11 @@
* {
engine: none;
}
GtkButton {
color: red;
}
.testinherit * {
color: red;
}

View 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>

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>