[gtk+/wip/matthiasc/node-dump: 3/4] Add a CSS node test for notebooks



commit eb1a5da9900ba9f55d920ed180816c9a7d656f3d
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Dec 28 02:03:29 2015 -0500

    Add a CSS node test for notebooks

 testsuite/css/nodes/Makefile.am    |    1 +
 testsuite/css/nodes/notebook.nodes |   15 ++++++++++++
 testsuite/css/nodes/notebook.ui    |   43 ++++++++++++++++++++++++++++++++++++
 3 files changed, 59 insertions(+), 0 deletions(-)
---
diff --git a/testsuite/css/nodes/Makefile.am b/testsuite/css/nodes/Makefile.am
index c2273b7..d6bb938 100644
--- a/testsuite/css/nodes/Makefile.am
+++ b/testsuite/css/nodes/Makefile.am
@@ -25,6 +25,7 @@ test_css_nodes_SOURCES = \
         test-css-nodes.c
 
 test_data = \
+       notebook.ui notebook.nodes \
        $(NULL)
 
 EXTRA_DIST += $(test_in_files) $(test_data)
diff --git a/testsuite/css/nodes/notebook.nodes b/testsuite/css/nodes/notebook.nodes
new file mode 100644
index 0000000..0264855
--- /dev/null
+++ b/testsuite/css/nodes/notebook.nodes
@@ -0,0 +1,15 @@
+window visible=0 state=dir-ltr classes=background
+  decoration visible=1 state=dir-ltr
+  notebook visible=1 state=dir-ltr classes=frame
+    header visible=1 state=dir-ltr classes=top
+      button visible=1 state=dir-ltr classes=text-button
+        label visible=1 state=dir-ltr
+      tabs visible=1 state=dir-ltr
+        tab visible=1 state=active|dir-ltr
+          label visible=1 state=dir-ltr
+        tab visible=1 state=dir-ltr
+          label visible=1 state=dir-ltr
+    button visible=1 state=dir-ltr classes=text-button
+      label visible=1 state=dir-ltr
+    button visible=1 state=dir-ltr classes=text-button
+      label visible=1 state=dir-ltr
diff --git a/testsuite/css/nodes/notebook.ui b/testsuite/css/nodes/notebook.ui
new file mode 100644
index 0000000..8fb9a0f
--- /dev/null
+++ b/testsuite/css/nodes/notebook.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" id="notebook1">
+        <property name="visible">True</property>
+        <child>
+          <object class="GtkButton" id="page1">
+            <property name="label" translatable="yes">Yes</property>
+            <property name="visible">True</property>
+          </object>
+        </child>
+        <child type="tab">
+          <object class="GtkLabel" id="tab1">
+            <property name="label" translatable="yes">Tab 1</property>
+            <property name="visible">True</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkButton" id="page2">
+            <property name="label" translatable="yes">No</property>
+            <property name="visible">True</property>
+          </object>
+        </child>
+        <child type="tab">
+          <object class="GtkLabel" id="tab2">
+            <property name="label" translatable="yes">Tab 2</property>
+            <property name="visible">True</property>
+          </object>
+        </child>
+        <child type="action-start">
+          <object class="GtkButton" id="action">
+            <property name="label" translatable="yes">Action</property>
+            <property name="visible">True</property>
+          </object>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>


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