summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2016-03-25 13:12:00 -0400
committerMatthias Clasen <mclasen@redhat.com>2016-03-25 22:49:36 -0400
commit6228da23b5b083a1d2985034f1e038efc31a1fc9 (patch)
treefce1844e9787e4c6aabf31f81d3f7483ae879463 /testsuite
parentdb241d36e24970d7f84fcbfe4af5baa6eb4e65e0 (diff)
downloadgtk+-6228da23b5b083a1d2985034f1e038efc31a1fc9.tar.gz
Add a css node test for scales
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/css/nodes/Makefile.am1
-rw-r--r--testsuite/css/nodes/scale.nodes63
-rw-r--r--testsuite/css/nodes/scale.ui94
3 files changed, 158 insertions, 0 deletions
diff --git a/testsuite/css/nodes/Makefile.am b/testsuite/css/nodes/Makefile.am
index 55bd39d06f..339c47eda0 100644
--- a/testsuite/css/nodes/Makefile.am
+++ b/testsuite/css/nodes/Makefile.am
@@ -54,6 +54,7 @@ test_data = \
paned.ltr.ui paned.ltr.nodes \
paned.rtl.ui paned.rtl.nodes \
progressbar.ui progressbar.nodes \
+ scale.ui scale.nodes \
$(NULL)
EXTRA_DIST += $(test_in_files) $(test_data)
diff --git a/testsuite/css/nodes/scale.nodes b/testsuite/css/nodes/scale.nodes
new file mode 100644
index 0000000000..0ba57276c3
--- /dev/null
+++ b/testsuite/css/nodes/scale.nodes
@@ -0,0 +1,63 @@
+[window.background:dir(ltr)]
+ decoration:dir(ltr)
+ box#scales.vertical:dir(ltr)
+ scale.horizontal:dir(ltr)
+ value.top
+ contents
+ trough:dir(ltr)
+ slider:dir(ltr)
+ highlight.top:dir(ltr)
+ scale.horizontal:dir(ltr)
+ value.bottom
+ contents
+ trough:dir(ltr)
+ slider:dir(ltr)
+ highlight.top:dir(ltr)
+ scale.horizontal:dir(ltr)
+ contents
+ trough:dir(ltr)
+ slider:dir(ltr)
+ highlight.top:dir(ltr)
+ fill.top:dir(ltr)
+ scale.horizontal:dir(ltr)
+ contents
+ trough:dir(ltr)
+ slider:dir(ltr)
+ highlight.bottom:dir(ltr)
+ scale.horizontal:dir(ltr)
+ marks.top:dir(ltr)
+ mark:dir(ltr)
+ indicator
+ label
+ mark:dir(ltr)
+ indicator
+ label
+ contents
+ trough:dir(ltr)
+ slider:dir(ltr)
+ highlight.top:dir(ltr)
+ scale.horizontal:dir(ltr)
+ marks.top:dir(ltr)
+ mark:dir(ltr)
+ indicator
+ label
+ contents
+ trough:dir(ltr)
+ slider:dir(ltr)
+ highlight.top:dir(ltr)
+ marks.bottom:dir(ltr)
+ mark:dir(ltr)
+ label
+ indicator
+ scale.horizontal:dir(ltr)
+ contents
+ trough:dir(ltr)
+ slider:dir(ltr)
+ highlight.top:dir(ltr)
+ marks.bottom:dir(ltr)
+ mark:dir(ltr)
+ label
+ indicator
+ mark:dir(ltr)
+ label
+ indicator
diff --git a/testsuite/css/nodes/scale.ui b/testsuite/css/nodes/scale.ui
new file mode 100644
index 0000000000..ae13199830
--- /dev/null
+++ b/testsuite/css/nodes/scale.ui
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <!-- interface-requires gtk+ 3.0 -->
+ <object class="GtkAdjustment" id="adjustment1">
+ <property name="lower">0</property>
+ <property name="upper">100</property>
+ <property name="page-size">0</property>
+ <property name="value">5</property>
+ <property name="step-increment">1</property>
+ <property name="page-increment">10</property>
+ </object>
+ <object class="GtkWindow" id="window1">
+ <property name="can_focus">False</property>
+ <property name="type">popup</property>
+ <property name="default-width">100</property>
+ <child>
+ <object class="GtkBox">
+ <property name="visible">True</property>
+ <property name="name">scales</property>
+ <property name="orientation">vertical</property>
+ <child>
+ <object class="GtkScale">
+ <property name="visible">True</property>
+ <property name="orientation">horizontal</property>
+ <property name="adjustment">adjustment1</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkScale">
+ <property name="visible">True</property>
+ <property name="orientation">horizontal</property>
+ <property name="adjustment">adjustment1</property>
+ <property name="value-pos">bottom</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkScale">
+ <property name="visible">True</property>
+ <property name="orientation">horizontal</property>
+ <property name="adjustment">adjustment1</property>
+ <property name="draw-value">0</property>
+ <property name="show-fill-level">1</property>
+ <property name="fill-level">50</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkScale">
+ <property name="visible">True</property>
+ <property name="orientation">horizontal</property>
+ <property name="adjustment">adjustment1</property>
+ <property name="draw-value">0</property>
+ <property name="inverted">1</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkScale">
+ <property name="visible">True</property>
+ <property name="orientation">horizontal</property>
+ <property name="adjustment">adjustment1</property>
+ <property name="draw-value">0</property>
+ <marks>
+ <mark value="10" position="top">ten</mark>
+ <mark value="20" position="top">twenty</mark>
+ </marks>
+ </object>
+ </child>
+ <child>
+ <object class="GtkScale">
+ <property name="visible">True</property>
+ <property name="orientation">horizontal</property>
+ <property name="adjustment">adjustment1</property>
+ <property name="draw-value">0</property>
+ <marks>
+ <mark value="10" position="top">ten</mark>
+ <mark value="20" position="bottom">twenty</mark>
+ </marks>
+ </object>
+ </child>
+ <child>
+ <object class="GtkScale">
+ <property name="visible">True</property>
+ <property name="orientation">horizontal</property>
+ <property name="adjustment">adjustment1</property>
+ <property name="draw-value">0</property>
+ <marks>
+ <mark value="10" position="bottom">ten</mark>
+ <mark value="20" position="bottom">twenty</mark>
+ </marks>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+</interface>