forked from AuroraMiddleware/gtk
Add css node tests for right-to-left levelbars
This commit is contained in:
parent
897126ae2b
commit
2ec16c9f91
@ -32,7 +32,8 @@ test_data = \
|
||||
box.rtl.ui box.rtl.nodes \
|
||||
buttons.ui buttons.nodes \
|
||||
entries.ui entries.nodes \
|
||||
levelbar.ui levelbar.nodes \
|
||||
levelbar.ltr.ui levelbar.ltr.nodes \
|
||||
levelbar.rtl.ui levelbar.rtl.nodes \
|
||||
notebook.ui notebook.nodes \
|
||||
paned.ltr.ui paned.ltr.nodes \
|
||||
paned.rtl.ui paned.rtl.nodes \
|
||||
|
55
testsuite/css/nodes/levelbar.rtl.nodes
Normal file
55
testsuite/css/nodes/levelbar.rtl.nodes
Normal file
@ -0,0 +1,55 @@
|
||||
[window.background:dir(rtl)]
|
||||
decoration:dir(ltr)
|
||||
box.vertical:dir(rtl)
|
||||
levelbar.horizontal.continuous:dir(rtl)
|
||||
trough:dir(rtl)
|
||||
block.empty:dir(rtl)
|
||||
block.high.filled:dir(rtl)
|
||||
levelbar.horizontal.continuous:dir(rtl)
|
||||
trough:dir(rtl)
|
||||
block.high.filled:dir(rtl)
|
||||
block.empty:dir(rtl)
|
||||
levelbar.horizontal.continuous:dir(rtl)
|
||||
trough:dir(rtl)
|
||||
block.empty:dir(rtl)
|
||||
block.low.filled:dir(rtl)
|
||||
levelbar.horizontal.continuous:dir(rtl)
|
||||
trough:dir(rtl)
|
||||
block.empty:dir(rtl)
|
||||
block.full.filled:dir(rtl)
|
||||
levelbar.horizontal.discrete:dir(rtl)
|
||||
trough:dir(rtl)
|
||||
block.empty:dir(rtl)
|
||||
block.empty:dir(rtl)
|
||||
block.empty:dir(rtl)
|
||||
block.empty:dir(rtl)
|
||||
block.empty:dir(rtl)
|
||||
block.full.filled:dir(rtl)
|
||||
block.full.filled:dir(rtl)
|
||||
block.full.filled:dir(rtl)
|
||||
block.full.filled:dir(rtl)
|
||||
block.full.filled:dir(rtl)
|
||||
levelbar.horizontal.discrete:dir(rtl)
|
||||
trough:dir(rtl)
|
||||
block.empty:dir(rtl)
|
||||
block.empty:dir(rtl)
|
||||
block.empty:dir(rtl)
|
||||
block.empty:dir(rtl)
|
||||
block.empty:dir(rtl)
|
||||
block.empty:dir(rtl)
|
||||
block.empty:dir(rtl)
|
||||
block.empty:dir(rtl)
|
||||
block.full.filled:dir(rtl)
|
||||
block.full.filled:dir(rtl)
|
||||
levelbar.horizontal.discrete:dir(rtl)
|
||||
trough:dir(rtl)
|
||||
block.empty:dir(rtl)
|
||||
block.empty:dir(rtl)
|
||||
block.full.filled:dir(rtl)
|
||||
block.full.filled:dir(rtl)
|
||||
block.full.filled:dir(rtl)
|
||||
block.full.filled:dir(rtl)
|
||||
block.full.filled:dir(rtl)
|
||||
block.full.filled:dir(rtl)
|
||||
block.full.filled:dir(rtl)
|
||||
block.full.filled:dir(rtl)
|
66
testsuite/css/nodes/levelbar.rtl.ui
Normal file
66
testsuite/css/nodes/levelbar.rtl.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