[gtk+] reftests: Add a test for all the recent sizegroup hackery



commit 756ebea036dd1657c7b685692708aa8224f56540
Author: Benjamin Otte <otte redhat com>
Date:   Sat Nov 3 19:01:11 2012 +0100

    reftests: Add a test for all the recent sizegroup hackery

 tests/reftests/Makefile.am              |    3 ++
 tests/reftests/sizegroups-basics.css    |    5 +++
 tests/reftests/sizegroups-basics.ref.ui |   53 +++++++++++++++++++++++++++
 tests/reftests/sizegroups-basics.ui     |   60 +++++++++++++++++++++++++++++++
 4 files changed, 121 insertions(+), 0 deletions(-)
---
diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am
index 6d6c6f0..db71266 100644
--- a/tests/reftests/Makefile.am
+++ b/tests/reftests/Makefile.am
@@ -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
index 0000000..6ae37b9
--- /dev/null
+++ b/tests/reftests/sizegroups-basics.css
@@ -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
index 0000000..a1f0af1
--- /dev/null
+++ b/tests/reftests/sizegroups-basics.ref.ui
@@ -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
index 0000000..4e6693a
--- /dev/null
+++ b/tests/reftests/sizegroups-basics.ui
@@ -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>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]