Add CSS node tests for levelbars

This commit is contained in:
Matthias Clasen 2015-12-28 11:00:32 -05:00
parent 0ce5075748
commit 864693e5aa
3 changed files with 122 additions and 0 deletions

View File

@ -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)

View File

@ -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

View File

@ -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>