[gtk+/gtk-3-2] reftests: Add test for empty grid with spacing



commit 97e3e4c3ba7975328abf48388f13cc95b66b8398
Author: Benjamin Otte <otte redhat com>
Date:   Thu Dec 29 10:02:54 2011 +0100

    reftests: Add test for empty grid with spacing
    
    This used to crash.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=660139

 tests/reftests/Makefile.am                    |    2 +
 tests/reftests/grid-empty-with-spacing.ref.ui |   16 ++++++++++++++
 tests/reftests/grid-empty-with-spacing.ui     |   28 +++++++++++++++++++++++++
 3 files changed, 46 insertions(+), 0 deletions(-)
---
diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am
index 767a469..646e680 100644
--- a/tests/reftests/Makefile.am
+++ b/tests/reftests/Makefile.am
@@ -100,6 +100,8 @@ EXTRA_DIST += \
 	entry-progress-coloring.ref.ui \
 	entry-progress-coloring.ui \
 	green-20x20.png \
+	grid-empty-with-spacing.ref.ui \
+	grid-empty-with-spacing.ui \
 	grid-expand.css \
 	grid-expand.ref.ui \
 	grid-expand.ui \
diff --git a/tests/reftests/grid-empty-with-spacing.ref.ui b/tests/reftests/grid-empty-with-spacing.ref.ui
new file mode 100644
index 0000000..dccd1b8
--- /dev/null
+++ b/tests/reftests/grid-empty-with-spacing.ref.ui
@@ -0,0 +1,16 @@
+<?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="GtkGrid" id="grid1">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <property name="row_spacing">5</property>
+        <property name="column_spacing">5</property>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/tests/reftests/grid-empty-with-spacing.ui b/tests/reftests/grid-empty-with-spacing.ui
new file mode 100644
index 0000000..3598fc7
--- /dev/null
+++ b/tests/reftests/grid-empty-with-spacing.ui
@@ -0,0 +1,28 @@
+<?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="GtkGrid" id="grid1">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <property name="row_spacing">5</property>
+        <property name="column_spacing">5</property>
+        <child>
+          <object class="GtkLabel" id="label1">
+            <property name="can_focus">False</property>
+            <property name="label" translatable="yes">invisible</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>
+    </child>
+  </object>
+</interface>



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