forked from AuroraMiddleware/gtk
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:
parent
f3ed498c5b
commit
1400644069
@ -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 \
|
||||
|
3
tests/reftests/css-match-exact.css
Normal file
3
tests/reftests/css-match-exact.css
Normal file
@ -0,0 +1,3 @@
|
||||
GtkGrid {
|
||||
background-color: purple;
|
||||
}
|
13
tests/reftests/css-match-exact.ref.ui
Normal file
13
tests/reftests/css-match-exact.ref.ui
Normal 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>
|
30
tests/reftests/css-match-exact.ui
Normal file
30
tests/reftests/css-match-exact.ui
Normal 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>
|
Loading…
Reference in New Issue
Block a user