[gtk+] Add css node tests for box packing
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Add css node tests for box packing
- Date: Mon, 8 Feb 2016 08:35:03 +0000 (UTC)
commit e0f31ab7bb97980494cd9b98ce8ca85f74de47ba
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Feb 8 09:15:39 2016 +0100
Add css node tests for box packing
More tests to ensure that CSS node order is always physical
left-to-right.
testsuite/css/nodes/Makefile.am | 2 +
testsuite/css/nodes/box-packing.ltr.nodes | 6 ++++
testsuite/css/nodes/box-packing.ltr.ui | 38 +++++++++++++++++++++++++++++
testsuite/css/nodes/box-packing.rtl.nodes | 6 ++++
testsuite/css/nodes/box-packing.rtl.ui | 38 +++++++++++++++++++++++++++++
5 files changed, 90 insertions(+), 0 deletions(-)
---
diff --git a/testsuite/css/nodes/Makefile.am b/testsuite/css/nodes/Makefile.am
index 10dcc27..a7ceefc 100644
--- a/testsuite/css/nodes/Makefile.am
+++ b/testsuite/css/nodes/Makefile.am
@@ -30,6 +30,8 @@ test_css_nodes_SOURCES = \
test_data = \
box.ltr.ui box.ltr.nodes \
box.rtl.ui box.rtl.nodes \
+ box-packing.ltr.ui box-packing.ltr.nodes \
+ box-packing.rtl.ui box-packing.rtl.nodes \
buttons.ui buttons.nodes \
checkbutton.ltr.ui checkbutton.ltr.nodes \
checkbutton.rtl.ui checkbutton.rtl.nodes \
diff --git a/testsuite/css/nodes/box-packing.ltr.nodes b/testsuite/css/nodes/box-packing.ltr.nodes
new file mode 100644
index 0000000..c74ab30
--- /dev/null
+++ b/testsuite/css/nodes/box-packing.ltr.nodes
@@ -0,0 +1,6 @@
+[window.background:dir(ltr)]
+ decoration:dir(ltr)
+ box.horizontal:dir(ltr)
+ label#start:dir(ltr)
+ label#center:dir(ltr)
+ label#end:dir(ltr)
diff --git a/testsuite/css/nodes/box-packing.ltr.ui b/testsuite/css/nodes/box-packing.ltr.ui
new file mode 100644
index 0000000..75651a5
--- /dev/null
+++ b/testsuite/css/nodes/box-packing.ltr.ui
@@ -0,0 +1,38 @@
+<?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="GtkBox">
+ <property name="visible">True</property>
+ <property name="orientation">horizontal</property>
+ <child>
+ <object class="GtkLabel">
+ <property name="visible">True</property>
+ <property name="name">end</property>
+ </object>
+ <packing>
+ <property name="pack-type">end</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel">
+ <property name="visible">True</property>
+ <property name="name">start</property>
+ </object>
+ <packing>
+ <property name="pack-type">start</property>
+ </packing>
+ </child>
+ <child type="center">
+ <object class="GtkLabel">
+ <property name="visible">True</property>
+ <property name="name">center</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+</interface>
diff --git a/testsuite/css/nodes/box-packing.rtl.nodes b/testsuite/css/nodes/box-packing.rtl.nodes
new file mode 100644
index 0000000..4a1e7a8
--- /dev/null
+++ b/testsuite/css/nodes/box-packing.rtl.nodes
@@ -0,0 +1,6 @@
+[window.background:dir(rtl)]
+ decoration:dir(ltr)
+ box.horizontal:dir(rtl)
+ label#end:dir(ltr)
+ label#center:dir(ltr)
+ label#start:dir(ltr)
diff --git a/testsuite/css/nodes/box-packing.rtl.ui b/testsuite/css/nodes/box-packing.rtl.ui
new file mode 100644
index 0000000..75651a5
--- /dev/null
+++ b/testsuite/css/nodes/box-packing.rtl.ui
@@ -0,0 +1,38 @@
+<?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="GtkBox">
+ <property name="visible">True</property>
+ <property name="orientation">horizontal</property>
+ <child>
+ <object class="GtkLabel">
+ <property name="visible">True</property>
+ <property name="name">end</property>
+ </object>
+ <packing>
+ <property name="pack-type">end</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel">
+ <property name="visible">True</property>
+ <property name="name">start</property>
+ </object>
+ <packing>
+ <property name="pack-type">start</property>
+ </packing>
+ </child>
+ <child type="center">
+ <object class="GtkLabel">
+ <property name="visible">True</property>
+ <property name="name">center</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]