[gtk+] reftests: Test that nonresizable windows get the right size
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] reftests: Test that nonresizable windows get the right size
- Date: Tue, 3 May 2011 14:04:46 +0000 (UTC)
commit 97ad34c3a7893fc74eb5f4f6491679eea4b0abe3
Author: Benjamin Otte <otte redhat com>
Date: Tue May 3 11:18:04 2011 +0200
reftests: Test that nonresizable windows get the right size
We want the default size, not the minimum one. This tests the fixes from
4f23dc34be1fd497cce84962798f7578e78a32c9
tests/reftests/Makefile.am | 2 ++
tests/reftests/nonresizable-size.ref.ui | 15 +++++++++++++++
tests/reftests/nonresizable-size.ui | 17 +++++++++++++++++
3 files changed, 34 insertions(+), 0 deletions(-)
---
diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am
index e5ec1ba..07729bf 100644
--- a/tests/reftests/Makefile.am
+++ b/tests/reftests/Makefile.am
@@ -36,5 +36,7 @@ EXTRA_DIST += \
label-sizing.ui \
label-small-ellipsized.ref.ui \
label-small-ellipsized.ui \
+ nonresizable-size.ref.ui \
+ nonresizable-size.ui \
simpe.ref.png \
simple.ui
diff --git a/tests/reftests/nonresizable-size.ref.ui b/tests/reftests/nonresizable-size.ref.ui
new file mode 100644
index 0000000..35dd409
--- /dev/null
+++ b/tests/reftests/nonresizable-size.ref.ui
@@ -0,0 +1,15 @@
+<?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="GtkLabel" id="label1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Hello World</property>
+ </object>
+ </child>
+ </object>
+</interface>
diff --git a/tests/reftests/nonresizable-size.ui b/tests/reftests/nonresizable-size.ui
new file mode 100644
index 0000000..0a777f0
--- /dev/null
+++ b/tests/reftests/nonresizable-size.ui
@@ -0,0 +1,17 @@
+<?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="resizable">False</property>
+ <child>
+ <object class="GtkLabel" id="label1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Hello World</property>
+ <property name="ellipsize">end</property>
+ </object>
+ </child>
+ </object>
+</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]