[gtk+] reftests: Add test for undersized children of GtkPaned



commit d01d90fccde94c25fbd41360d75893c40ac4ee07
Author: Benjamin Otte <otte redhat com>
Date:   Tue May 10 01:25:26 2011 +0200

    reftests: Add test for undersized children of GtkPaned
    
    Tests the recent fixes done in 206b9f940d632dd0ed10ab8046777956872555eb
    and 6bda6f0c580cbdc5d154bb8e249260d1cdc1b88b

 tests/reftests/Makefile.am             |    3 ++
 tests/reftests/paned-undersized.css    |    3 ++
 tests/reftests/paned-undersized.ref.ui |   39 ++++++++++++++++++++++++
 tests/reftests/paned-undersized.ui     |   51 ++++++++++++++++++++++++++++++++
 4 files changed, 96 insertions(+), 0 deletions(-)
---
diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am
index f5eef32..7e5ac9f 100644
--- a/tests/reftests/Makefile.am
+++ b/tests/reftests/Makefile.am
@@ -49,6 +49,9 @@ EXTRA_DIST += \
 	misc-alignment.ref.ui \
 	nonresizable-size.ref.ui \
 	nonresizable-size.ui \
+	paned-undersized.css \
+	paned-undersized.ref.ui \
+	paned-undersized.ui \
 	quit-mnemonic.ref.ui \
 	quit-mnemonic.ui \
 	simple.ref.ui \
diff --git a/tests/reftests/paned-undersized.css b/tests/reftests/paned-undersized.css
new file mode 100644
index 0000000..0d0aae9
--- /dev/null
+++ b/tests/reftests/paned-undersized.css
@@ -0,0 +1,3 @@
+GtkEventBox {
+  background-color: red;
+}
diff --git a/tests/reftests/paned-undersized.ref.ui b/tests/reftests/paned-undersized.ref.ui
new file mode 100644
index 0000000..fa42f31
--- /dev/null
+++ b/tests/reftests/paned-undersized.ref.ui
@@ -0,0 +1,39 @@
+<?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>
+    <property name="height_request">120</property>
+    <child>
+      <object class="GtkPaned" id="paned1">
+        <property name="visible">True</property>
+        <property name="can_focus">True</property>
+        <property name="orientation">vertical</property>
+        <property name="position">10</property>
+        <child>
+          <object class="GtkEventBox" id="eventbox1">
+            <property name="width_request">50</property>
+            <property name="height_request">10</property>
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+          </object>
+          <packing>
+            <property name="resize">False</property>
+            <property name="shrink">False</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkLabel" id="label1">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+          </object>
+          <packing>
+            <property name="resize">True</property>
+            <property name="shrink">True</property>
+          </packing>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/tests/reftests/paned-undersized.ui b/tests/reftests/paned-undersized.ui
new file mode 100644
index 0000000..7c073e4
--- /dev/null
+++ b/tests/reftests/paned-undersized.ui
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="height_request">120</property>
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <object class="GtkPaned" id="paned1">
+        <property name="visible">True</property>
+        <property name="can_focus">True</property>
+        <property name="orientation">vertical</property>
+        <property name="position">10</property>
+        <child>
+          <object class="GtkGrid" id="grid1">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <child>
+              <object class="GtkEventBox" id="eventbox1">
+                <property name="width_request">50</property>
+                <property name="height_request">50</property>
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+              </object>
+              <packing>
+                <property name="left_attach">0</property>
+                <property name="top_attach">0</property>
+                <property name="width">1</property>
+                <property name="height">1</property>
+              </packing>
+            </child>
+          </object>
+          <packing>
+            <property name="resize">False</property>
+            <property name="shrink">True</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkLabel" id="label1">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+          </object>
+          <packing>
+            <property name="resize">True</property>
+            <property name="shrink">True</property>
+          </packing>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>



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