forked from AuroraMiddleware/gtk
reftests: Add reftest for new pseudoclass support
This commit is contained in:
parent
41a16b475b
commit
bed70f2bcf
@ -305,6 +305,9 @@ testdata = \
|
||||
paned-undersized.css \
|
||||
paned-undersized.ref.ui \
|
||||
paned-undersized.ui \
|
||||
pseudoclass-on-parent.css \
|
||||
pseudoclass-on-parent.ref.ui \
|
||||
pseudoclass-on-parent.ui \
|
||||
quit-mnemonic.css \
|
||||
quit-mnemonic.ref.ui \
|
||||
quit-mnemonic.ui \
|
||||
|
7
testsuite/reftests/pseudoclass-on-parent.css
Normal file
7
testsuite/reftests/pseudoclass-on-parent.css
Normal file
@ -0,0 +1,7 @@
|
||||
:active {
|
||||
color: blue;
|
||||
}
|
||||
|
||||
:active * {
|
||||
color: red;
|
||||
}
|
27
testsuite/reftests/pseudoclass-on-parent.ref.ui
Normal file
27
testsuite/reftests/pseudoclass-on-parent.ref.ui
Normal file
@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Generated with glade 3.18.1 -->
|
||||
<interface>
|
||||
<requires lib="gtk+" version="3.12"/>
|
||||
<object class="GtkWindow" id="window1">
|
||||
<property name="can_focus">False</property>
|
||||
<property name="type">popup</property>
|
||||
<child>
|
||||
<object class="GtkToggleButton" id="togglebutton1">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<property name="active">True</property>
|
||||
<child>
|
||||
<object class="GtkLabel" id="label1">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="label" translatable="yes">I should be red.</property>
|
||||
<attributes>
|
||||
<attribute name="foreground" value="#ffff00000000"/>
|
||||
</attributes>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
24
testsuite/reftests/pseudoclass-on-parent.ui
Normal file
24
testsuite/reftests/pseudoclass-on-parent.ui
Normal file
@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Generated with glade 3.18.1 -->
|
||||
<interface>
|
||||
<requires lib="gtk+" version="3.12"/>
|
||||
<object class="GtkWindow" id="window1">
|
||||
<property name="can_focus">False</property>
|
||||
<property name="type">popup</property>
|
||||
<child>
|
||||
<object class="GtkToggleButton" id="togglebutton1">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="receives_default">True</property>
|
||||
<property name="active">True</property>
|
||||
<child>
|
||||
<object class="GtkLabel" id="label1">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="label" translatable="yes">I should be red.</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
Loading…
Reference in New Issue
Block a user