[gtk+/wip/matthiasc/node-dump: 6/12] Add CSS node test for progressbars



commit 0f95ff74b8d0922ba8352567daf7d74634e254ef
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Dec 28 10:52:20 2015 -0500

    Add CSS node test for progressbars

 testsuite/css/nodes/Makefile.am       |    1 +
 testsuite/css/nodes/progressbar.nodes |   20 +++++++++++++
 testsuite/css/nodes/progressbar.ui    |   49 +++++++++++++++++++++++++++++++++
 3 files changed, 70 insertions(+), 0 deletions(-)
---
diff --git a/testsuite/css/nodes/Makefile.am b/testsuite/css/nodes/Makefile.am
index c2a92f2..693489a 100644
--- a/testsuite/css/nodes/Makefile.am
+++ b/testsuite/css/nodes/Makefile.am
@@ -28,6 +28,7 @@ test_data = \
        buttons.ui      buttons.nodes \
        entries.ui      entries.nodes \
        notebook.ui     notebook.nodes \
+       progressbar.ui  progressbar.nodes \
        $(NULL)
 
 EXTRA_DIST += $(test_in_files) $(test_data)
diff --git a/testsuite/css/nodes/progressbar.nodes b/testsuite/css/nodes/progressbar.nodes
new file mode 100644
index 0000000..3cd6331
--- /dev/null
+++ b/testsuite/css/nodes/progressbar.nodes
@@ -0,0 +1,20 @@
+window visible=0 state=dir-ltr classes=background
+  decoration visible=1 state=dir-ltr
+  box id=progressbars visible=1 state=dir-ltr classes=vertical
+    progressbar visible=1 state=dir-ltr classes=horizontal
+      text visible=1 state=dir-ltr
+      trough visible=1 state=dir-ltr
+        progress visible=1 state=dir-ltr classes=left
+    progressbar visible=1 state=dir-ltr classes=horizontal
+      trough visible=1 state=dir-ltr
+        progress visible=1 state=dir-ltr classes=left
+    progressbar visible=1 state=dir-ltr classes=horizontal
+      text visible=1 state=dir-ltr
+      trough visible=1 state=dir-ltr
+        progress visible=1 state=dir-ltr classes=left
+    progressbar visible=1 state=dir-ltr classes=horizontal
+      trough visible=1 state=dir-ltr
+        progress visible=1 state=dir-ltr classes=right
+    progressbar visible=1 state=dir-ltr classes=vertical
+      trough visible=1 state=dir-ltr
+        progress visible=1 state=dir-ltr classes=top
diff --git a/testsuite/css/nodes/progressbar.ui b/testsuite/css/nodes/progressbar.ui
new file mode 100644
index 0000000..83badd4
--- /dev/null
+++ b/testsuite/css/nodes/progressbar.ui
@@ -0,0 +1,49 @@
+<?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">
+        <property name="visible">True</property>
+        <property name="name">progressbars</property>
+        <property name="orientation">vertical</property>
+        <child>
+          <object class="GtkProgressBar">
+            <property name="visible">True</property>
+            <property name="show-text">True</property>
+            <property name="fraction">0</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkProgressBar">
+            <property name="visible">True</property>
+            <property name="fraction">1</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkProgressBar">
+            <property name="visible">True</property>
+            <property name="show-text">True</property>
+            <property name="fraction">0.4</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkProgressBar">
+            <property name="visible">True</property>
+            <property name="inverted">True</property>
+            <property name="fraction">0.4</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkProgressBar">
+            <property name="visible">True</property>
+            <property name="orientation">vertical</property>
+            <property name="fraction">0.4</property>
+          </object>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>


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