]> Pileus Git - ~andy/gtk/commitdiff
reftests: Add a test for latest commit
authorBenjamin Otte <otte@redhat.com>
Fri, 6 Jan 2012 04:15:18 +0000 (05:15 +0100)
committerBenjamin Otte <otte@redhat.com>
Fri, 6 Jan 2012 04:23:43 +0000 (05:23 +0100)
We want to make sure we notice when we mess up label attribute ordering
again...

tests/reftests/Makefile.am
tests/reftests/label-attribute-preference.css [new file with mode: 0644]
tests/reftests/label-attribute-preference.ref.ui [new file with mode: 0644]
tests/reftests/label-attribute-preference.ui [new file with mode: 0644]

index d795c6d656e1d84400ee9eef44abf04093f4f4a3..9f5efc61ddd7892c32f20a6f4f34fa04f386631a 100644 (file)
@@ -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 \
diff --git a/tests/reftests/label-attribute-preference.css b/tests/reftests/label-attribute-preference.css
new file mode 100644 (file)
index 0000000..dac4da1
--- /dev/null
@@ -0,0 +1,4 @@
+* {
+  -GtkWidget-link-color: blue;
+  -GtkWidget-visited-link-color: blue;
+}
diff --git a/tests/reftests/label-attribute-preference.ref.ui b/tests/reftests/label-attribute-preference.ref.ui
new file mode 100644 (file)
index 0000000..77f9b28
--- /dev/null
@@ -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>
diff --git a/tests/reftests/label-attribute-preference.ui b/tests/reftests/label-attribute-preference.ui
new file mode 100644 (file)
index 0000000..fb26821
--- /dev/null
@@ -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&lt;span color="#008000"&gt;ell&lt;/span&gt;o &lt;a href="http://example.com"&gt;l&lt;span color="#00FF00"&gt;in&lt;/span&gt;ky&lt;/a&gt; &lt;span color="#80FF80"&gt;Worl&lt;/span&gt;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>