forked from AuroraMiddleware/gtk
reftests: Add a test for matching by subtype
This commit is contained in:
parent
90caef4abe
commit
269fe0f347
@ -29,6 +29,9 @@ EXTRA_DIST += \
|
||||
box-packing.css \
|
||||
box-packing.ref.ui \
|
||||
box-packing.ui \
|
||||
css-match-subtype.css \
|
||||
css-match-subtype.ref.ui \
|
||||
css-match-subtype.ui \
|
||||
css-match-type.css \
|
||||
css-match-type.ref.ui \
|
||||
css-match-type.ui \
|
||||
|
11
tests/reftests/css-match-subtype.css
Normal file
11
tests/reftests/css-match-subtype.css
Normal file
@ -0,0 +1,11 @@
|
||||
GtkContainer {
|
||||
engine: none;
|
||||
background-image: none;
|
||||
background-color: green;
|
||||
border-radius: 0;
|
||||
border-style: none;
|
||||
}
|
||||
|
||||
NotGtkContainer {
|
||||
background-color: red;
|
||||
}
|
15
tests/reftests/css-match-subtype.ref.ui
Normal file
15
tests/reftests/css-match-subtype.ref.ui
Normal file
@ -0,0 +1,15 @@
|
||||
<?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="GtkImage" id="image1">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="pixbuf">green-20x20.png</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
14
tests/reftests/css-match-subtype.ui
Normal file
14
tests/reftests/css-match-subtype.ui
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<!-- interface-requires gtk+ 3.0 -->
|
||||
<object class="GtkWindow" id="window1">
|
||||
<property name="width_request">20</property>
|
||||
<property name="height_request">20</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="type">popup</property>
|
||||
<property name="name">window</property>
|
||||
<style>
|
||||
<class name="window" />
|
||||
</style>
|
||||
</object>
|
||||
</interface>
|
Loading…
Reference in New Issue
Block a user