Add CSS node test for progressbars

This commit is contained in:
Matthias Clasen 2015-12-28 10:52:20 -05:00
parent 5c4efb09e2
commit 0ce5075748
3 changed files with 70 additions and 0 deletions

View File

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

View File

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

View File

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