[gtk+] Some more CSS node tests for notebooks



commit c30d542a17e78cfff1dd0a949dfa4f7df942604f
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Feb 15 14:20:48 2016 -0500

    Some more CSS node tests for notebooks

 testsuite/css/nodes/Makefile.am            |    2 +
 testsuite/css/nodes/notebook-arrows.nodes  |   16 ++++++++++
 testsuite/css/nodes/notebook-arrows.ui     |   42 +++++++++++++++++++++++++++
 testsuite/css/nodes/notebook-arrows2.nodes |   16 ++++++++++
 testsuite/css/nodes/notebook-arrows2.ui    |   43 ++++++++++++++++++++++++++++
 5 files changed, 119 insertions(+), 0 deletions(-)
---
diff --git a/testsuite/css/nodes/Makefile.am b/testsuite/css/nodes/Makefile.am
index a7ceefc..358a14c 100644
--- a/testsuite/css/nodes/Makefile.am
+++ b/testsuite/css/nodes/Makefile.am
@@ -40,6 +40,8 @@ test_data = \
        expander.rtl.ui         expander.rtl.nodes              \
        levelbar.ltr.ui         levelbar.ltr.nodes              \
        levelbar.rtl.ui         levelbar.rtl.nodes              \
+       notebook-arrows.ui      notebook-arrows.nodes           \
+       notebook-arrows2.ui     notebook-arrows2.nodes          \
        notebook.top.ltr.ui     notebook.top.ltr.nodes          \
        notebook.top.rtl.ui     notebook.top.rtl.nodes          \
        notebook.left.ltr.ui    notebook.left.ltr.nodes         \
diff --git a/testsuite/css/nodes/notebook-arrows.nodes b/testsuite/css/nodes/notebook-arrows.nodes
new file mode 100644
index 0000000..ccc7a4c
--- /dev/null
+++ b/testsuite/css/nodes/notebook-arrows.nodes
@@ -0,0 +1,16 @@
+[window.background:dir(ltr)]
+  decoration:dir(ltr)
+  notebook.frame:dir(ltr)
+    header.top:dir(ltr)
+      tabs:dir(ltr)
+        arrow.down:disabled:dir(ltr)
+        tab:active:dir(ltr)
+          label#tab1:dir(ltr)
+        tab:dir(ltr)
+          label#tab2:dir(ltr)
+        arrow.up:dir(ltr)
+    stack:dir(ltr)
+      button#page1.text-button:dir(ltr)
+        label:dir(ltr)
+      button#page2.text-button:dir(ltr)
+        label:dir(ltr)
diff --git a/testsuite/css/nodes/notebook-arrows.ui b/testsuite/css/nodes/notebook-arrows.ui
new file mode 100644
index 0000000..a296ac3
--- /dev/null
+++ b/testsuite/css/nodes/notebook-arrows.ui
@@ -0,0 +1,42 @@
+<?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="GtkNotebook">
+        <property name="visible">True</property>
+        <property name="scrollable">True</property>
+        <child>
+          <object class="GtkButton">
+            <property name="name">page1</property>
+            <property name="label" translatable="yes">Yes</property>
+            <property name="visible">True</property>
+          </object>
+        </child>
+        <child type="tab">
+          <object class="GtkLabel">
+            <property name="name">tab1</property>
+            <property name="label" translatable="yes">Tab 1</property>
+            <property name="visible">True</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkButton">
+            <property name="name">page2</property>
+            <property name="label" translatable="yes">No</property>
+            <property name="visible">True</property>
+          </object>
+        </child>
+        <child type="tab">
+          <object class="GtkLabel" id="tab2">
+            <property name="name">tab2</property>
+            <property name="label" translatable="yes">Tab 2</property>
+            <property name="visible">True</property>
+          </object>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/testsuite/css/nodes/notebook-arrows2.nodes b/testsuite/css/nodes/notebook-arrows2.nodes
new file mode 100644
index 0000000..ccc7a4c
--- /dev/null
+++ b/testsuite/css/nodes/notebook-arrows2.nodes
@@ -0,0 +1,16 @@
+[window.background:dir(ltr)]
+  decoration:dir(ltr)
+  notebook.frame:dir(ltr)
+    header.top:dir(ltr)
+      tabs:dir(ltr)
+        arrow.down:disabled:dir(ltr)
+        tab:active:dir(ltr)
+          label#tab1:dir(ltr)
+        tab:dir(ltr)
+          label#tab2:dir(ltr)
+        arrow.up:dir(ltr)
+    stack:dir(ltr)
+      button#page1.text-button:dir(ltr)
+        label:dir(ltr)
+      button#page2.text-button:dir(ltr)
+        label:dir(ltr)
diff --git a/testsuite/css/nodes/notebook-arrows2.ui b/testsuite/css/nodes/notebook-arrows2.ui
new file mode 100644
index 0000000..5098dbb
--- /dev/null
+++ b/testsuite/css/nodes/notebook-arrows2.ui
@@ -0,0 +1,43 @@
+<?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="GtkNotebook">
+        <property name="visible">True</property>
+        <property name="scrollable">True</property>
+        <child>
+          <object class="GtkButton">
+            <property name="name">page1</property>
+            <property name="label" translatable="yes">Yes</property>
+            <property name="visible">True</property>
+          </object>
+        </child>
+        <child type="tab">
+          <object class="GtkLabel">
+            <property name="name">tab1</property>
+            <property name="label" translatable="yes">Tab 1</property>
+            <property name="visible">True</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkButton">
+            <property name="name">page2</property>
+            <property name="label" translatable="yes">No</property>
+            <property name="visible">True</property>
+          </object>
+        </child>
+        <child type="tab">
+          <object class="GtkLabel" id="tab2">
+            <property name="name">tab2</property>
+            <property name="label" translatable="yes">Tab 2</property>
+            <property name="visible">True</property>
+          </object>
+        </child>
+        <property name="page">-1</property>
+      </object>
+    </child>
+  </object>
+</interface>


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