[gtk+] Add a css node test for comboboxes



commit 8205a304e85fb8bb95d2722df0416c6f4de17ddf
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Mar 2 15:20:31 2016 -0500

    Add a css node test for comboboxes

 testsuite/css/nodes/Makefile.am    |    1 +
 testsuite/css/nodes/combobox.nodes |   39 ++++++++++++++++++++++++++++++++++++
 testsuite/css/nodes/combobox.ui    |   33 ++++++++++++++++++++++++++++++
 3 files changed, 73 insertions(+), 0 deletions(-)
---
diff --git a/testsuite/css/nodes/Makefile.am b/testsuite/css/nodes/Makefile.am
index 358a14c..55bd39d 100644
--- a/testsuite/css/nodes/Makefile.am
+++ b/testsuite/css/nodes/Makefile.am
@@ -35,6 +35,7 @@ test_data = \
        buttons.ui              buttons.nodes                   \
        checkbutton.ltr.ui      checkbutton.ltr.nodes           \
        checkbutton.rtl.ui      checkbutton.rtl.nodes           \
+       combobox.ui             combobox.nodes                  \
        entries.ui              entries.nodes                   \
        expander.ltr.ui         expander.ltr.nodes              \
        expander.rtl.ui         expander.rtl.nodes              \
diff --git a/testsuite/css/nodes/combobox.nodes b/testsuite/css/nodes/combobox.nodes
new file mode 100644
index 0000000..024cf5d
--- /dev/null
+++ b/testsuite/css/nodes/combobox.nodes
@@ -0,0 +1,39 @@
+[window.background:dir(ltr)]
+  decoration:dir(ltr)
+  [box.horizontal:dir(ltr)]
+    combobox:dir(ltr)
+      box.linked.horizontal:dir(ltr)
+        button.combo:dir(ltr)
+          box.horizontal:dir(ltr)
+            cellview:dir(ltr)
+            arrow:dir(ltr)
+      [window.background.popup:dir(ltr)]
+        decoration:dir(ltr)
+        [menu#gtk-combobox-popup-menu:dir(ltr)]
+          [arrow.top:dir(ltr)]
+          menuitem:dir(ltr)
+            cellview:dir(ltr)
+          menuitem:dir(ltr)
+            cellview:dir(ltr)
+          menuitem:dir(ltr)
+            cellview:dir(ltr)
+          [arrow.bottom:dir(ltr)]
+    combobox:dir(ltr)
+      box.linked.horizontal:dir(ltr)
+        entry.combo:dir(ltr)
+          undershoot.left:dir(ltr)
+          undershoot.right:dir(ltr)
+        button.combo:dir(ltr)
+          box.horizontal:dir(ltr)
+            arrow:dir(ltr)
+      [window.background.popup:dir(ltr)]
+        decoration:dir(ltr)
+        [menu#gtk-combobox-popup-menu:dir(ltr)]
+          [arrow.top:dir(ltr)]
+          menuitem:dir(ltr)
+            cellview:dir(ltr)
+          menuitem:dir(ltr)
+            cellview:dir(ltr)
+          menuitem:dir(ltr)
+            cellview:dir(ltr)
+          [arrow.bottom:dir(ltr)]
diff --git a/testsuite/css/nodes/combobox.ui b/testsuite/css/nodes/combobox.ui
new file mode 100644
index 0000000..a6be038
--- /dev/null
+++ b/testsuite/css/nodes/combobox.ui
@@ -0,0 +1,33 @@
+<?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" id="box1">
+        <child>
+          <object class="GtkComboBoxText" id="combo1">
+            <property name="visible">True</property>
+            <items>
+              <item id="one">One</item>
+              <item id="two">Two</item>
+              <item id="three">Three</item>
+            </items>
+          </object>
+        </child>
+        <child>
+          <object class="GtkComboBoxText" id="combo2">
+            <property name="visible">True</property>
+            <property name="has-entry">True</property>
+            <items>
+              <item id="one">One</item>
+              <item id="two">Two</item>
+              <item id="three">Three</item>
+            </items>
+          </object>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>


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