[gtk+] tests: Add a test for small ellipsized labels
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] tests: Add a test for small ellipsized labels
- Date: Tue, 3 May 2011 14:04:41 +0000 (UTC)
commit 32a3ad412ee07c8ae559e4c8d4b19da2e2a4bf41
Author: Benjamin Otte <otte redhat com>
Date: Fri Apr 22 04:56:03 2011 +0200
tests: Add a test for small ellipsized labels
Tests the fix from bf413928611e004ae3b5a9f73ff9c777cb7e8e70
tests/reftests/Makefile.am | 2 ++
tests/reftests/label-small-ellipsized.ref.ui | 15 +++++++++++++++
tests/reftests/label-small-ellipsized.ui | 16 ++++++++++++++++
3 files changed, 33 insertions(+), 0 deletions(-)
---
diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am
index c6f0ebf..e5ec1ba 100644
--- a/tests/reftests/Makefile.am
+++ b/tests/reftests/Makefile.am
@@ -34,5 +34,7 @@ EXTRA_DIST += \
label-sizing.css \
label-sizing.ref.ui \
label-sizing.ui \
+ label-small-ellipsized.ref.ui \
+ label-small-ellipsized.ui \
simpe.ref.png \
simple.ui
diff --git a/tests/reftests/label-small-ellipsized.ref.ui b/tests/reftests/label-small-ellipsized.ref.ui
new file mode 100644
index 0000000..03285d0
--- /dev/null
+++ b/tests/reftests/label-small-ellipsized.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"> </property>
+ </object>
+ </child>
+ </object>
+</interface>
diff --git a/tests/reftests/label-small-ellipsized.ui b/tests/reftests/label-small-ellipsized.ui
new file mode 100644
index 0000000..16f45fc
--- /dev/null
+++ b/tests/reftests/label-small-ellipsized.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="GtkLabel" id="label1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes"> </property>
+ <property name="ellipsize">end</property>
+ </object>
+ </child>
+ </object>
+</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]