reftests: Add a test ensuring selectors don't match children

Previously, the selector "Foo" would not only match Foo widgets, but
also all widgets that are descendants of Foo.
This commit is contained in:
Benjamin Otte 2011-05-15 13:27:19 +02:00
parent f3ed498c5b
commit 1400644069
4 changed files with 49 additions and 0 deletions

View File

@ -35,6 +35,9 @@ EXTRA_DIST += \
css-match-descendant-later.css \
css-match-descendant-later.ref.ui \
css-match-descendant-later.ui \
css-match-exact.css \
css-match-exact.ref.ui \
css-match-exact.ui \
css-match-name.css \
css-match-name.ref.ui \
css-match-name.ui \

View File

@ -0,0 +1,3 @@
GtkGrid {
background-color: purple;
}

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkWindow" id="window1">
<property name="width_request">10</property>
<property name="height_request">10</property>
<property name="can_focus">False</property>
<property name="type">popup</property>
<child>
<placeholder/>
</child>
</object>
</interface>

View File

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkWindow" id="window1">
<property name="width_request">10</property>
<property name="height_request">10</property>
<property name="can_focus">False</property>
<property name="type">popup</property>
<child>
<object class="GtkGrid" id="grid1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="GtkEventBox" id="eventbox1">
<property name="width_request">10</property>
<property name="height_request">10</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
</object>
</child>
</object>
</interface>