mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-24 12:41:16 +00:00
reftests: Add a test for matching by class
This commit is contained in:
parent
78de3e8180
commit
8ca799cc39
@ -29,6 +29,9 @@ EXTRA_DIST += \
|
||||
box-packing.css \
|
||||
box-packing.ref.ui \
|
||||
box-packing.ui \
|
||||
css-match-class.css \
|
||||
css-match-class.ref.ui \
|
||||
css-match-class.ui \
|
||||
css-match-name.css \
|
||||
css-match-name.ref.ui \
|
||||
css-match-name.ui \
|
||||
|
15
tests/reftests/css-match-class.css
Normal file
15
tests/reftests/css-match-class.css
Normal file
@ -0,0 +1,15 @@
|
||||
.window {
|
||||
engine: none;
|
||||
background-image: none;
|
||||
background-color: green;
|
||||
border-radius: 0;
|
||||
border-style: none;
|
||||
}
|
||||
|
||||
.notwindow {
|
||||
background-color: red;
|
||||
}
|
||||
|
||||
.window.notwindow {
|
||||
background-color: blue;
|
||||
}
|
15
tests/reftests/css-match-class.ref.ui
Normal file
15
tests/reftests/css-match-class.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-class.ui
Normal file
14
tests/reftests/css-match-class.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