mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
Add CSS node tests for levelbars
This commit is contained in:
parent
0ce5075748
commit
864693e5aa
@ -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)
|
||||
|
55
testsuite/css/nodes/levelbar.nodes
Normal file
55
testsuite/css/nodes/levelbar.nodes
Normal 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
|
66
testsuite/css/nodes/levelbar.ui
Normal file
66
testsuite/css/nodes/levelbar.ui
Normal 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>
|
Loading…
Reference in New Issue
Block a user