[gtk+] reftests: Add test for the recent label changes



commit e1112dce6d624561f8a87f47e1eff38a982ac38d
Author: Benjamin Otte <otte redhat com>
Date:   Thu Jul 10 18:55:37 2014 +0200

    reftests: Add test for the recent label changes

 testsuite/reftests/Makefile.am           |    3 ++
 testsuite/reftests/label-clipping.css    |    6 +++++
 testsuite/reftests/label-clipping.ref.ui |   17 ++++++++++++++++
 testsuite/reftests/label-clipping.ui     |   31 ++++++++++++++++++++++++++++++
 4 files changed, 57 insertions(+), 0 deletions(-)
---
diff --git a/testsuite/reftests/Makefile.am b/testsuite/reftests/Makefile.am
index fa505b3..d1b2f67 100644
--- a/testsuite/reftests/Makefile.am
+++ b/testsuite/reftests/Makefile.am
@@ -244,6 +244,9 @@ testdata = \
        label-attribute-preference.css \
        label-attribute-preference.ref.ui \
        label-attribute-preference.ui \
+       label-clipping.css \
+       label-clipping.ref.ui \
+       label-clipping.ui \
        label-ellipsize-small.ref.ui \
        label-ellipsize-small.ui \
        label-ellipsize-with-big.ref.ui \
diff --git a/testsuite/reftests/label-clipping.css b/testsuite/reftests/label-clipping.css
new file mode 100644
index 0000000..b2e2497
--- /dev/null
+++ b/testsuite/reftests/label-clipping.css
@@ -0,0 +1,6 @@
+ import "reset-to-defaults.css";
+
+GtkLabel {
+  font-size: 40px;
+  font-style: italic;
+}
diff --git a/testsuite/reftests/label-clipping.ref.ui b/testsuite/reftests/label-clipping.ref.ui
new file mode 100644
index 0000000..13eba47
--- /dev/null
+++ b/testsuite/reftests/label-clipping.ref.ui
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Generated with glade 3.18.1 -->
+<interface>
+  <requires lib="gtk+" version="3.12"/>
+  <object class="GtkWindow" id="window1">
+    <property name="width_request">500</property>
+    <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">fffffffff</property>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/testsuite/reftests/label-clipping.ui b/testsuite/reftests/label-clipping.ui
new file mode 100644
index 0000000..ea6acb3
--- /dev/null
+++ b/testsuite/reftests/label-clipping.ui
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Generated with glade 3.18.1 -->
+<interface>
+  <requires lib="gtk+" version="3.12"/>
+  <object class="GtkWindow" id="window1">
+    <property name="width_request">500</property>
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <object class="GtkBox" id="box2">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <property name="halign">center</property>
+        <property name="valign">center</property>
+        <property name="orientation">vertical</property>
+        <child>
+          <object class="GtkLabel" id="label1">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="label" translatable="yes">fffffffff</property>
+          </object>
+          <packing>
+            <property name="expand">False</property>
+            <property name="fill">True</property>
+            <property name="position">0</property>
+          </packing>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>


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