forked from AuroraMiddleware/gtk
reftests: Add a test for latest commit
We want to make sure we notice when we mess up label attribute ordering again...
This commit is contained in:
parent
d6bb8a63aa
commit
b73ede690d
@ -124,6 +124,9 @@ EXTRA_DIST += \
|
||||
grid-spacing3.css \
|
||||
grid-spacing3.ref.ui \
|
||||
grid-spacing3.ui \
|
||||
label-attribute-preference.css \
|
||||
label-attribute-preference.ref.ui \
|
||||
label-attribute-preference.ui \
|
||||
label-shadows.css \
|
||||
label-shadows.ref.ui \
|
||||
label-shadows.ui \
|
||||
|
4
tests/reftests/label-attribute-preference.css
Normal file
4
tests/reftests/label-attribute-preference.css
Normal file
@ -0,0 +1,4 @@
|
||||
* {
|
||||
-GtkWidget-link-color: blue;
|
||||
-GtkWidget-visited-link-color: blue;
|
||||
}
|
24
tests/reftests/label-attribute-preference.ref.ui
Normal file
24
tests/reftests/label-attribute-preference.ref.ui
Normal file
@ -0,0 +1,24 @@
|
||||
<?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="GtkLabel" id="label1">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="label" translatable="yes">Hello linky World</property>
|
||||
<attributes>
|
||||
<attribute name="foreground" value="#000080000000" start="1" end="3"/>
|
||||
<attribute name="foreground" value="#ffff00000000" start="3" end="8"/>
|
||||
<attribute name="foreground" value="#0000ffff0000" start="8" end="9"/>
|
||||
<attribute name="foreground" value="#00000000ffff" start="9" end="10"/>
|
||||
<attribute name="foreground" value="#ffff80008000" start="10" end="14"/>
|
||||
<attribute name="foreground" value="#8000ffff8000" start="14" end="16"/>
|
||||
<attribute name="underline" value="True" start="6" end="11"/>
|
||||
</attributes>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
20
tests/reftests/label-attribute-preference.ui
Normal file
20
tests/reftests/label-attribute-preference.ui
Normal file
@ -0,0 +1,20 @@
|
||||
<?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="GtkLabel" id="label1">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="use-markup">True</property>
|
||||
<property name="label" translatable="yes">H<span color="#008000">ell</span>o <a href="http://example.com">l<span color="#00FF00">in</span>ky</a> <span color="#80FF80">Worl</span>d</property>
|
||||
<attributes>
|
||||
<attribute name="foreground" value="#ffff00000000" start="3" end="8"/>
|
||||
<attribute name="foreground" value="#ffff80008000" start="10" end="14"/>
|
||||
</attributes>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
Loading…
Reference in New Issue
Block a user