]> Pileus Git - ~andy/gtk/commitdiff
reftests: Add a test for all the recent sizegroup hackery
authorBenjamin Otte <otte@redhat.com>
Sat, 3 Nov 2012 18:01:11 +0000 (19:01 +0100)
committerBenjamin Otte <otte@redhat.com>
Sun, 4 Nov 2012 14:28:43 +0000 (15:28 +0100)
tests/reftests/Makefile.am
tests/reftests/sizegroups-basics.css [new file with mode: 0644]
tests/reftests/sizegroups-basics.ref.ui [new file with mode: 0644]
tests/reftests/sizegroups-basics.ui [new file with mode: 0644]

index 6d6c6f0f763350c75bbd1b3161554ce525737a9d..db712663d851a490c8c86fb16068934476c3b5dc 100644 (file)
@@ -224,6 +224,9 @@ EXTRA_DIST += \
        shorthand-entry-border.ui \
        simple.ref.ui \
        simple.ui \
+       sizegroups-basics.css \
+       sizegroups-basics.ui \
+       sizegroups-basics.ref.ui \
        style-properties-nth-child.css \
        style-properties-nth-child.ref.ui \
        style-properties-nth-child.ui \
diff --git a/tests/reftests/sizegroups-basics.css b/tests/reftests/sizegroups-basics.css
new file mode 100644 (file)
index 0000000..6ae37b9
--- /dev/null
@@ -0,0 +1,5 @@
+GtkLabel {
+  background-image: none;
+  background-color: purple;
+  color: white;
+}
diff --git a/tests/reftests/sizegroups-basics.ref.ui b/tests/reftests/sizegroups-basics.ref.ui
new file mode 100644 (file)
index 0000000..a1f0af1
--- /dev/null
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+      <child>
+        <object class="GtkGrid" id="grid1">
+          <property name="visible">True</property>
+          <property name="can_focus">False</property>
+          <property name="orientation">vertical</property>
+          <child>
+            <object class="GtkGrid" id="grid2">
+              <property name="visible">True</property>
+              <property name="can_focus">False</property>
+              <property name="orientation">vertical</property>
+              <property name="row-homogeneous">True</property>
+              <property name="column-homogeneous">True</property>
+              <child>
+                <object class="GtkLabel" id="label1">
+                  <property name="visible">True</property>
+                </object>
+                <packing>
+                  <property name="top-attach">0</property>
+                  <property name="left-attach">0</property>
+                </packing>
+              </child>
+              <child>
+                <object class="GtkLabel" id="label2">
+                  <property name="visible">True</property>
+                  <property name="label" translatable="yes">medium</property>
+                </object>
+                <packing>
+                  <property name="top-attach">1</property>
+                  <property name="left-attach">1</property>
+                </packing>
+              </child>
+              <child>
+                <object class="GtkLabel" id="label3">
+                  <property name="visible">True</property>
+                  <property name="label" translatable="yes">wrap this very long text please or I'll need to write even more</property>
+                  <property name="wrap">True</property>
+                </object>
+                <packing>
+                  <property name="top-attach">2</property>
+                  <property name="left-attach">2</property>
+                </packing>
+              </child>
+            </object>
+          </child>
+        </object>
+    </child>
+  </object>
+</interface>
diff --git a/tests/reftests/sizegroups-basics.ui b/tests/reftests/sizegroups-basics.ui
new file mode 100644 (file)
index 0000000..4e6693a
--- /dev/null
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+      <child>
+        <object class="GtkGrid" id="grid1">
+          <property name="visible">True</property>
+          <property name="can_focus">False</property>
+          <property name="orientation">vertical</property>
+          <child>
+            <object class="GtkGrid" id="grid2">
+              <property name="visible">True</property>
+              <property name="can_focus">False</property>
+              <property name="orientation">vertical</property>
+              <child>
+                <object class="GtkLabel" id="label1">
+                  <property name="visible">True</property>
+                </object>
+                <packing>
+                  <property name="top-attach">0</property>
+                  <property name="left-attach">0</property>
+                </packing>
+              </child>
+              <child>
+                <object class="GtkLabel" id="label2">
+                  <property name="visible">True</property>
+                  <property name="label" translatable="yes">medium</property>
+                </object>
+                <packing>
+                  <property name="top-attach">1</property>
+                  <property name="left-attach">1</property>
+                </packing>
+              </child>
+              <child>
+                <object class="GtkLabel" id="label3">
+                  <property name="visible">True</property>
+                  <property name="label" translatable="yes">wrap this very long text please or I'll need to write even more</property>
+                  <property name="wrap">True</property>
+                </object>
+                <packing>
+                  <property name="top-attach">2</property>
+                  <property name="left-attach">2</property>
+                </packing>
+              </child>
+            </object>
+          </child>
+        </object>
+    </child>
+  </object>
+  <object class="GtkSizeGroup" id="sizegroup1">
+    <property name="mode">both</property>
+    <property name="ignore-hidden">True</property>
+    <widgets>
+      <widget name="label1" />
+      <widget name="label2" />
+      <widget name="label3" />
+    </widgets>
+  </object>
+</interface>