[gtk/wip/otte/for-master: 1/3] reftests: Add a test for label sizing




commit 11c6b1dd32bef746f1065b97bdcdd758c4c77d1e
Author: Benjamin Otte <otte redhat com>
Date:   Wed Oct 20 22:23:25 2021 +0200

    reftests: Add a test for label sizing

 testsuite/reftests/center-center-long-label.ref.ui | 13 +++++++++++++
 testsuite/reftests/center-center-long-label.ui     | 17 +++++++++++++++++
 2 files changed, 30 insertions(+)
---
diff --git a/testsuite/reftests/center-center-long-label.ref.ui 
b/testsuite/reftests/center-center-long-label.ref.ui
new file mode 100644
index 0000000000..bac4354c2a
--- /dev/null
+++ b/testsuite/reftests/center-center-long-label.ref.ui
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <object class="GtkWindow">
+    <property name="width_request">1000</property>
+    <property name="height_request">500</property>
+    <property name="decorated">0</property>
+    <child>
+      <object class="GtkLabel">
+        <property name="label">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod 
tempor incididunt ut labore et dolore magna aliqua.</property>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/testsuite/reftests/center-center-long-label.ui b/testsuite/reftests/center-center-long-label.ui
new file mode 100644
index 0000000000..3dcc480415
--- /dev/null
+++ b/testsuite/reftests/center-center-long-label.ui
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <object class="GtkWindow">
+    <property name="width_request">1000</property>
+    <property name="height_request">500</property>
+    <property name="decorated">0</property>
+    <child>
+      <object class="GtkLabel">
+        <!-- long label, but shorter than 1000px -->
+        <property name="label">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod 
tempor incididunt ut labore et dolore magna aliqua.</property>
+        <property name="wrap">1</property>
+        <property name="halign">center</property>
+        <property name="valign">center</property>
+      </object>
+    </child>
+  </object>
+</interface>


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