mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
Add CSS node test for progressbars
This commit is contained in:
parent
5c4efb09e2
commit
0ce5075748
@ -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)
|
||||
|
20
testsuite/css/nodes/progressbar.nodes
Normal file
20
testsuite/css/nodes/progressbar.nodes
Normal 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
|
49
testsuite/css/nodes/progressbar.ui
Normal file
49
testsuite/css/nodes/progressbar.ui
Normal 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>
|
Loading…
Reference in New Issue
Block a user