[gtk/matthiasc/for-master: 6/8] Add a reftest for box layouts
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 6/8] Add a reftest for box layouts
- Date: Mon, 24 Aug 2020 16:03:37 +0000 (UTC)
commit 17dcb1070733d41f483b82f2813e8961c4a81835
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Aug 24 10:58:18 2020 -0400
Add a reftest for box layouts
This tests that invisible children don't influence
the layout.
.../reftests/boxlayout-invisible-child.ref.ui | 20 ++++++++++++++++
testsuite/reftests/boxlayout-invisible-child.ui | 27 ++++++++++++++++++++++
testsuite/reftests/meson.build | 2 ++
3 files changed, 49 insertions(+)
---
diff --git a/testsuite/reftests/boxlayout-invisible-child.ref.ui
b/testsuite/reftests/boxlayout-invisible-child.ref.ui
new file mode 100644
index 0000000000..04eb01fd37
--- /dev/null
+++ b/testsuite/reftests/boxlayout-invisible-child.ref.ui
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <object class="GtkWindow" id="window_information_collection">
+ <property name="decorated">0</property>
+ <child>
+ <object class="GtkBox" id="box1">
+ <child>
+ <object class="GtkLabel" id="label1">
+ <property name="label" translatable="yes">Hello</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label3">
+ <property name="label" translatable="yes">World</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+</interface>
diff --git a/testsuite/reftests/boxlayout-invisible-child.ui b/testsuite/reftests/boxlayout-invisible-child.ui
new file mode 100644
index 0000000000..d3f37c0b6f
--- /dev/null
+++ b/testsuite/reftests/boxlayout-invisible-child.ui
@@ -0,0 +1,27 @@
+<!-- check that an invisible child does not influence the layout -->
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <object class="GtkWindow" id="window_information_collection">
+ <property name="decorated">0</property>
+ <child>
+ <object class="GtkBox" id="box1">
+ <child>
+ <object class="GtkLabel" id="label1">
+ <property name="label" translatable="yes">Hello</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label2">
+ <property name="visible">0</property>
+ <property name="label" translatable="yes">cruel</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label3">
+ <property name="label" translatable="yes">World</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+</interface>
diff --git a/testsuite/reftests/meson.build b/testsuite/reftests/meson.build
index 816e370992..001baa6fb6 100644
--- a/testsuite/reftests/meson.build
+++ b/testsuite/reftests/meson.build
@@ -141,6 +141,8 @@ testdata = [
'border-style.css',
'border-style.ref.ui',
'border-style.ui',
+ 'boxlayout-invisible-child.ref.ui',
+ 'boxlayout-invisible-child.ui',
'box-order.css',
'box-order.ref.ui',
'box-order.ui',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]