[gtk+/wip/matthiasc/node-dump: 7/12] Add CSS node tests for levelbars



commit 9af17de76ba767caba6ec51b7dcfe6d9b3a20166
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Dec 28 11:00:32 2015 -0500

    Add CSS node tests for levelbars

 testsuite/css/nodes/Makefile.am    |    1 +
 testsuite/css/nodes/levelbar.nodes |   55 ++++++++++++++++++++++++++++++
 testsuite/css/nodes/levelbar.ui    |   66 ++++++++++++++++++++++++++++++++++++
 3 files changed, 122 insertions(+), 0 deletions(-)
---
diff --git a/testsuite/css/nodes/Makefile.am b/testsuite/css/nodes/Makefile.am
index 693489a..7f49813 100644
--- a/testsuite/css/nodes/Makefile.am
+++ b/testsuite/css/nodes/Makefile.am
@@ -27,6 +27,7 @@ test_css_nodes_SOURCES = \
 test_data = \
        buttons.ui      buttons.nodes \
        entries.ui      entries.nodes \
+       levelbar.ui     levelbar.nodes \
        notebook.ui     notebook.nodes \
        progressbar.ui  progressbar.nodes \
        $(NULL)
diff --git a/testsuite/css/nodes/levelbar.nodes b/testsuite/css/nodes/levelbar.nodes
new file mode 100644
index 0000000..5677022
--- /dev/null
+++ b/testsuite/css/nodes/levelbar.nodes
@@ -0,0 +1,55 @@
+window visible=0 state=dir-ltr classes=background
+  decoration visible=1 state=dir-ltr
+  box visible=1 state=dir-ltr classes=vertical
+    levelbar visible=1 state=dir-ltr classes=horizontal,continuous
+      trough visible=1 state=dir-ltr
+        block visible=1 state=dir-ltr classes=high,filled
+        block visible=1 state=dir-ltr classes=empty
+    levelbar visible=1 state=dir-ltr classes=horizontal,continuous
+      trough visible=1 state=dir-ltr
+        block visible=1 state=dir-ltr classes=empty
+        block visible=1 state=dir-ltr classes=high,filled
+    levelbar visible=1 state=dir-ltr classes=horizontal,continuous
+      trough visible=1 state=dir-ltr
+        block visible=1 state=dir-ltr classes=low,filled
+        block visible=1 state=dir-ltr classes=empty
+    levelbar visible=1 state=dir-ltr classes=horizontal,continuous
+      trough visible=1 state=dir-ltr
+        block visible=1 state=dir-ltr classes=full,filled
+        block visible=1 state=dir-ltr classes=empty
+    levelbar visible=1 state=dir-ltr classes=horizontal,discrete
+      trough visible=1 state=dir-ltr
+        block visible=1 state=dir-ltr classes=full,filled
+        block visible=1 state=dir-ltr classes=full,filled
+        block visible=1 state=dir-ltr classes=full,filled
+        block visible=1 state=dir-ltr classes=full,filled
+        block visible=1 state=dir-ltr classes=full,filled
+        block visible=1 state=dir-ltr classes=empty
+        block visible=1 state=dir-ltr classes=empty
+        block visible=1 state=dir-ltr classes=empty
+        block visible=1 state=dir-ltr classes=empty
+        block visible=1 state=dir-ltr classes=empty
+    levelbar visible=1 state=dir-ltr classes=horizontal,discrete
+      trough visible=1 state=dir-ltr
+        block visible=1 state=dir-ltr classes=full,filled
+        block visible=1 state=dir-ltr classes=full,filled
+        block visible=1 state=dir-ltr classes=empty
+        block visible=1 state=dir-ltr classes=empty
+        block visible=1 state=dir-ltr classes=empty
+        block visible=1 state=dir-ltr classes=empty
+        block visible=1 state=dir-ltr classes=empty
+        block visible=1 state=dir-ltr classes=empty
+        block visible=1 state=dir-ltr classes=empty
+        block visible=1 state=dir-ltr classes=empty
+    levelbar visible=1 state=dir-ltr classes=horizontal,discrete
+      trough visible=1 state=dir-ltr
+        block visible=1 state=dir-ltr classes=full,filled
+        block visible=1 state=dir-ltr classes=full,filled
+        block visible=1 state=dir-ltr classes=full,filled
+        block visible=1 state=dir-ltr classes=full,filled
+        block visible=1 state=dir-ltr classes=full,filled
+        block visible=1 state=dir-ltr classes=full,filled
+        block visible=1 state=dir-ltr classes=full,filled
+        block visible=1 state=dir-ltr classes=full,filled
+        block visible=1 state=dir-ltr classes=empty
+        block visible=1 state=dir-ltr classes=empty
diff --git a/testsuite/css/nodes/levelbar.ui b/testsuite/css/nodes/levelbar.ui
new file mode 100644
index 0000000..1338289
--- /dev/null
+++ b/testsuite/css/nodes/levelbar.ui
@@ -0,0 +1,66 @@
+<?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="orientation">vertical</property>
+        <child>
+          <object class="GtkLevelBar">
+            <property name="visible">True</property>
+            <property name="value">0.5</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkLevelBar">
+            <property name="visible">True</property>
+            <property name="inverted">True</property>
+            <property name="value">0.5</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkLevelBar">
+            <property name="visible">True</property>
+            <property name="value">0.2</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkLevelBar">
+            <property name="visible">True</property>
+            <property name="value">0.8</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkLevelBar">
+            <property name="visible">True</property>
+            <property name="min-value">0</property>
+            <property name="max-value">10</property>
+            <property name="value">5</property>
+            <property name="mode">discrete</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkLevelBar">
+            <property name="visible">True</property>
+            <property name="min-value">0</property>
+            <property name="max-value">10</property>
+            <property name="value">2</property>
+            <property name="mode">discrete</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkLevelBar">
+            <property name="visible">True</property>
+            <property name="min-value">0</property>
+            <property name="max-value">10</property>
+            <property name="value">8</property>
+            <property name="mode">discrete</property>
+          </object>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>


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