Add css node tests for right-to-left levelbars

This commit is contained in:
Matthias Clasen 2016-01-13 09:31:25 -05:00
parent 897126ae2b
commit 2ec16c9f91
5 changed files with 123 additions and 1 deletions

View File

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

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

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>