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



commit 5fda7daded19144c94eef389aa429295b92817a6
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Dec 28 02:00:58 2015 -0500

    Add a CSS node test for entries

 testsuite/css/nodes/Makefile.am   |    1 +
 testsuite/css/nodes/entries.nodes |   16 ++++++++
 testsuite/css/nodes/entries.ui    |   74 +++++++++++++++++++++++++++++++++++++
 3 files changed, 91 insertions(+), 0 deletions(-)
---
diff --git a/testsuite/css/nodes/Makefile.am b/testsuite/css/nodes/Makefile.am
index d6bb938..bdf33ea 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 = \
+       entries.ui entries.nodes \
        notebook.ui notebook.nodes \
        $(NULL)
 
diff --git a/testsuite/css/nodes/entries.nodes b/testsuite/css/nodes/entries.nodes
new file mode 100644
index 0000000..a2b6f5f
--- /dev/null
+++ b/testsuite/css/nodes/entries.nodes
@@ -0,0 +1,16 @@
+window visible=0 state=dir-ltr classes=background
+  decoration visible=1 state=dir-ltr
+  box visible=0 state=dir-ltr classes=horizontal
+    label visible=1 state=dir-ltr
+    label visible=1 state=dir-ltr
+    label visible=1 state=dir-ltr
+    entry visible=1 state=dir-ltr
+      progress visible=1 state=dir-ltr
+    entry visible=1 state=dir-ltr
+    entry visible=1 state=dir-ltr
+      image visible=1 state=dir-ltr classes=left
+      image visible=1 state=dir-ltr classes=right
+    spinbutton visible=1 state=dir-ltr classes=horizontal
+      entry visible=1 state=dir-ltr
+      button visible=1 state=dir-ltr classes=down
+      button visible=1 state=dir-ltr classes=up
diff --git a/testsuite/css/nodes/entries.ui b/testsuite/css/nodes/entries.ui
new file mode 100644
index 0000000..3d4e4ee
--- /dev/null
+++ b/testsuite/css/nodes/entries.ui
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkAdjustment" id="adjustment1">
+    <property name="lower">0.5</property>
+    <property name="upper">99.5</property>
+    <property name="page-size">0</property>
+    <property name="value">45.5</property>
+    <property name="step-increment">0.5</property>
+    <property name="page-increment">5.0</property>
+  </object>
+  <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="GtkLabel" id="label1">
+            <property name="label">_entry:</property>
+            <property name="visible">True</property>
+            <property name="use-underline">True</property>
+            <property name="mnemonic-widget">entry1</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkLabel" id="label2">
+            <property name="label">_password entry:</property>
+            <property name="visible">True</property>
+            <property name="use-underline">True</property>
+            <property name="mnemonic-widget">entry2</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkLabel" id="label3">
+            <property name="label">_spinbutton:</property>
+            <property name="visible">True</property>
+            <property name="use-underline">True</property>
+            <property name="mnemonic-widget">spinbutton1</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkEntry" id="entry1">
+            <property name="text" translatable="yes">text</property>
+            <property name="visible">True</property>
+            <property name="progress-fraction">0.3</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkEntry" id="entry2">
+            <property name="text" translatable="yes">password text</property>
+            <property name="visible">True</property>
+            <property name="visibility">False</property>
+            <property name="invisible_char">*</property>
+            <property name="invisible_char_set">True</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkEntry" id="entry3">
+            <property name="text" translatable="yes">icons</property>
+            <property name="visible">True</property>
+            <property name="primary-icon-stock">stock1</property>
+            <property name="secondary-icon-stock">stock2</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkSpinButton" id="spinbutton1">
+            <property name="adjustment">adjustment1</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]