[gtk+] Add css node tests for paned node ordering



commit a0fdbff938ecbf32c1a8fca35312ccdb0ebe6b5d
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Jan 13 00:41:44 2016 -0500

    Add css node tests for paned node ordering

 testsuite/css/nodes/Makefile.am     |    2 ++
 testsuite/css/nodes/paned.ltr.nodes |    6 ++++++
 testsuite/css/nodes/paned.ltr.ui    |   26 ++++++++++++++++++++++++++
 testsuite/css/nodes/paned.rtl.nodes |    6 ++++++
 testsuite/css/nodes/paned.rtl.ui    |   26 ++++++++++++++++++++++++++
 5 files changed, 66 insertions(+), 0 deletions(-)
---
diff --git a/testsuite/css/nodes/Makefile.am b/testsuite/css/nodes/Makefile.am
index b73a844..df11824 100644
--- a/testsuite/css/nodes/Makefile.am
+++ b/testsuite/css/nodes/Makefile.am
@@ -34,6 +34,8 @@ test_data = \
        entries.ui      entries.nodes           \
        levelbar.ui     levelbar.nodes          \
        notebook.ui     notebook.nodes          \
+       paned.ltr.ui    paned.ltr.nodes         \
+       paned.rtl.ui    paned.rtl.nodes         \
        progressbar.ui  progressbar.nodes       \
        $(NULL)
 
diff --git a/testsuite/css/nodes/paned.ltr.nodes b/testsuite/css/nodes/paned.ltr.nodes
new file mode 100644
index 0000000..bab5f56
--- /dev/null
+++ b/testsuite/css/nodes/paned.ltr.nodes
@@ -0,0 +1,6 @@
+[window.background:dir(ltr)]
+  decoration:dir(ltr)
+  paned.horizontal:dir(ltr)
+    label#label1:dir(ltr)
+    separator:dir(ltr)
+    label#label2:dir(ltr)
diff --git a/testsuite/css/nodes/paned.ltr.ui b/testsuite/css/nodes/paned.ltr.ui
new file mode 100644
index 0000000..5ec1ff4
--- /dev/null
+++ b/testsuite/css/nodes/paned.ltr.ui
@@ -0,0 +1,26 @@
+<?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="GtkPaned">
+        <property name="visible">True</property>
+        <property name="orientation">horizontal</property>
+        <child>
+          <object class="GtkLabel">
+            <property name="visible">True</property>
+            <property name="name">label1</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkLabel">
+            <property name="visible">True</property>
+            <property name="name">label2</property>
+          </object>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/testsuite/css/nodes/paned.rtl.nodes b/testsuite/css/nodes/paned.rtl.nodes
new file mode 100644
index 0000000..af74112
--- /dev/null
+++ b/testsuite/css/nodes/paned.rtl.nodes
@@ -0,0 +1,6 @@
+[window.background:dir(rtl)]
+  decoration:dir(ltr)
+  paned.horizontal:dir(rtl)
+    label#label2:dir(ltr)
+    separator:dir(rtl)
+    label#label1:dir(ltr)
diff --git a/testsuite/css/nodes/paned.rtl.ui b/testsuite/css/nodes/paned.rtl.ui
new file mode 100644
index 0000000..5ec1ff4
--- /dev/null
+++ b/testsuite/css/nodes/paned.rtl.ui
@@ -0,0 +1,26 @@
+<?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="GtkPaned">
+        <property name="visible">True</property>
+        <property name="orientation">horizontal</property>
+        <child>
+          <object class="GtkLabel">
+            <property name="visible">True</property>
+            <property name="name">label1</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkLabel">
+            <property name="visible">True</property>
+            <property name="name">label2</property>
+          </object>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>


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