[gtk+] reftests: Add test for recent fix
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] reftests: Add test for recent fix
- Date: Sun, 4 Nov 2012 16:58:41 +0000 (UTC)
commit 8bdc2aa2288818ac3cd37e7948b3f0acc2b6a417
Author: Benjamin Otte <otte redhat com>
Date: Sun Nov 4 17:57:49 2012 +0100
reftests: Add test for recent fix
This test checks the fix in a46368dede684ded093395ac056eaeecf554330d
tests/reftests/Makefile.am | 2 +
.../reftests/sizegroups-get-preferred-null.ref.ui | 21 ++++++++++++++++
tests/reftests/sizegroups-get-preferred-null.ui | 26 ++++++++++++++++++++
3 files changed, 49 insertions(+), 0 deletions(-)
---
diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am
index 709b253..a02b44a 100644
--- a/tests/reftests/Makefile.am
+++ b/tests/reftests/Makefile.am
@@ -229,6 +229,8 @@ EXTRA_DIST += \
sizegroups-basics.ref.ui \
sizegroups-evolution-identity-page.ui \
sizegroups-evolution-identity-page.ref.ui \
+ sizegroups-get-preferred-null.ui \
+ sizegroups-get-preferred-null.ref.ui \
style-properties-nth-child.css \
style-properties-nth-child.ref.ui \
style-properties-nth-child.ui \
diff --git a/tests/reftests/sizegroups-get-preferred-null.ref.ui b/tests/reftests/sizegroups-get-preferred-null.ref.ui
new file mode 100644
index 0000000..54aa61c
--- /dev/null
+++ b/tests/reftests/sizegroups-get-preferred-null.ref.ui
@@ -0,0 +1,21 @@
+<?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="GtkFixed" id="grid1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkLabel" id="label1">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">Check that a container that calls gtk_widget_get_preferred_width/height() with natural or minimum being NULL doesn't cause a crash with size groups.</property>
+ <property name="wrap">True</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+</interface>
diff --git a/tests/reftests/sizegroups-get-preferred-null.ui b/tests/reftests/sizegroups-get-preferred-null.ui
new file mode 100644
index 0000000..23b78f9
--- /dev/null
+++ b/tests/reftests/sizegroups-get-preferred-null.ui
@@ -0,0 +1,26 @@
+<?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="GtkFixed" id="grid1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkLabel" id="label1">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">Check that a container that calls gtk_widget_get_preferred_width/height() with natural or minimum being NULL doesn't cause a crash with size groups.</property>
+ <property name="wrap">True</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ <object class="GtkSizeGroup" id="sizegroup1">
+ <widgets>
+ <widget name="label1" />
+ </widgets>
+ </object>
+</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]