forked from AuroraMiddleware/gtk
reftests: Add test for pseudo-class matching
Previous GTK matched pseudoclasses not based on CSS rules, but based on their value in the enumeration. This is now fixed.
This commit is contained in:
parent
ba5e7012b1
commit
821f9b478f
@ -103,6 +103,9 @@ EXTRA_DIST += \
|
||||
css-match-type.css \
|
||||
css-match-type.ref.ui \
|
||||
css-match-type.ui \
|
||||
css-multi-state.css \
|
||||
css-multi-state.ref.ui \
|
||||
css-multi-state.ui \
|
||||
entry-progress-coloring.css \
|
||||
entry-progress-coloring.ref.ui \
|
||||
entry-progress-coloring.ui \
|
||||
|
9
tests/reftests/css-multi-state.css
Normal file
9
tests/reftests/css-multi-state.css
Normal file
@ -0,0 +1,9 @@
|
||||
GtkLabel:active,
|
||||
#reference:insensitive {
|
||||
color: green;
|
||||
}
|
||||
|
||||
GtkLabel:insensitive,
|
||||
#reference:active {
|
||||
color: blue;
|
||||
}
|
27
tests/reftests/css-multi-state.ref.ui
Normal file
27
tests/reftests/css-multi-state.ref.ui
Normal file
@ -0,0 +1,27 @@
|
||||
<?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="GtkToggleButton" id="togglebutton1">
|
||||
<property name="use_action_appearance">False</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<property name="use_action_appearance">False</property>
|
||||
<property name="active">True</property>
|
||||
<child>
|
||||
<object class="GtkLabel" id="label1">
|
||||
<property name="name">reference</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="sensitive">False</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="label" translatable="yes">insensitive</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
26
tests/reftests/css-multi-state.ui
Normal file
26
tests/reftests/css-multi-state.ui
Normal file
@ -0,0 +1,26 @@
|
||||
<?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="GtkToggleButton" id="togglebutton1">
|
||||
<property name="use_action_appearance">False</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<property name="use_action_appearance">False</property>
|
||||
<property name="active">True</property>
|
||||
<child>
|
||||
<object class="GtkLabel" id="label1">
|
||||
<property name="visible">True</property>
|
||||
<property name="sensitive">False</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="label" translatable="yes">insensitive</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
Loading…
Reference in New Issue
Block a user