[gtk+] Add a reftest for GtkActionBar child ordering



commit 851d5f1c7d66a726f483b71c0aba22c44ba3f2ab
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jan 7 19:05:40 2014 -0500

    Add a reftest for GtkActionBar child ordering
    
    This shows that GtkActionBar and GtkBox treat pack-start/-end
    the same.

 testsuite/reftests/Makefile.am      |    2 +
 testsuite/reftests/actionbar.ref.ui |   56 ++++++++++++++++++++++++++++++++++
 testsuite/reftests/actionbar.ui     |   57 +++++++++++++++++++++++++++++++++++
 3 files changed, 115 insertions(+), 0 deletions(-)
---
diff --git a/testsuite/reftests/Makefile.am b/testsuite/reftests/Makefile.am
index 30c471d..d62f066 100644
--- a/testsuite/reftests/Makefile.am
+++ b/testsuite/reftests/Makefile.am
@@ -31,6 +31,8 @@ EXTRA_DIST += \
        $(NULL)
 
 testdata = \
+       actionbar.ref.ui \
+       actionbar.ui \
        alignment-props.css \
        alignment-props.ref.ui \
        alignment-props.ui \
diff --git a/testsuite/reftests/actionbar.ref.ui b/testsuite/reftests/actionbar.ref.ui
new file mode 100644
index 0000000..35de854
--- /dev/null
+++ b/testsuite/reftests/actionbar.ref.ui
@@ -0,0 +1,56 @@
+<?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="GtkBox">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <child>
+          <object class="GtkButton">
+            <property name="visible">True</property>
+            <property name="label">1</property>
+          </object>         
+          <packing>
+            <property name="pack-type">start</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkButton">
+            <property name="visible">True</property>
+            <property name="label">2</property>
+          </object>         
+          <packing>
+            <property name="pack-type">start</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkButton">
+            <property name="visible">True</property>
+            <property name="label">Center</property>
+          </object>         
+        </child>
+        <child>
+          <object class="GtkButton">
+            <property name="visible">True</property>
+            <property name="label">1</property>
+          </object>         
+          <packing>
+            <property name="pack-type">end</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkButton">
+            <property name="visible">True</property>
+            <property name="label">2</property>
+          </object>         
+          <packing>
+            <property name="pack-type">end</property>
+          </packing>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/testsuite/reftests/actionbar.ui b/testsuite/reftests/actionbar.ui
new file mode 100644
index 0000000..28a7729
--- /dev/null
+++ b/testsuite/reftests/actionbar.ui
@@ -0,0 +1,57 @@
+<?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="GtkActionBar">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <property name="spacing">0</property>
+        <child>
+          <object class="GtkButton">
+            <property name="visible">True</property>
+            <property name="label">1</property>
+          </object>         
+          <packing>
+            <property name="pack-type">start</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkButton">
+            <property name="visible">True</property>
+            <property name="label">2</property>
+          </object>         
+          <packing>
+            <property name="pack-type">start</property>
+          </packing>
+        </child>
+        <child type="center">
+          <object class="GtkButton">
+            <property name="visible">True</property>
+            <property name="label">Center</property>
+          </object>         
+        </child>
+        <child>
+          <object class="GtkButton">
+            <property name="visible">True</property>
+            <property name="label">1</property>
+          </object>         
+          <packing>
+            <property name="pack-type">end</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkButton">
+            <property name="visible">True</property>
+            <property name="label">2</property>
+          </object>         
+          <packing>
+            <property name="pack-type">end</property>
+          </packing>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>


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