Add CSS node tests for checkbutton rtl flipping
This commit is contained in:
parent
121aec6de8
commit
83eb36a896
@ -28,18 +28,20 @@ test_css_nodes_SOURCES = \
|
||||
$(NULL)
|
||||
|
||||
test_data = \
|
||||
box.ltr.ui box.ltr.nodes \
|
||||
box.rtl.ui box.rtl.nodes \
|
||||
buttons.ui buttons.nodes \
|
||||
entries.ui entries.nodes \
|
||||
expander.ltr.ui expander.ltr.nodes \
|
||||
expander.rtl.ui expander.rtl.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 \
|
||||
progressbar.ui progressbar.nodes \
|
||||
box.ltr.ui box.ltr.nodes \
|
||||
box.rtl.ui box.rtl.nodes \
|
||||
buttons.ui buttons.nodes \
|
||||
checkbutton.ltr.ui checkbutton.ltr.nodes \
|
||||
checkbutton.rtl.ui checkbutton.rtl.nodes \
|
||||
entries.ui entries.nodes \
|
||||
expander.ltr.ui expander.ltr.nodes \
|
||||
expander.rtl.ui expander.rtl.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 \
|
||||
progressbar.ui progressbar.nodes \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DIST += $(test_in_files) $(test_data)
|
||||
|
9
testsuite/css/nodes/checkbutton.ltr.nodes
Normal file
9
testsuite/css/nodes/checkbutton.ltr.nodes
Normal file
@ -0,0 +1,9 @@
|
||||
[window.background:dir(ltr)]
|
||||
decoration:dir(ltr)
|
||||
box.vertical:dir(ltr)
|
||||
checkbutton:dir(ltr)
|
||||
check:dir(ltr)
|
||||
label:dir(ltr)
|
||||
radiobutton:dir(ltr):checked
|
||||
radio:dir(ltr):checked
|
||||
label:dir(ltr)
|
36
testsuite/css/nodes/checkbutton.ltr.ui
Normal file
36
testsuite/css/nodes/checkbutton.ltr.ui
Normal file
@ -0,0 +1,36 @@
|
||||
<?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="GtkCheckButton">
|
||||
<property name="visible">True</property>
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="visible">True</property>
|
||||
<property name="label">label</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkRadioButton">
|
||||
<property name="visible">True</property>
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="visible">True</property>
|
||||
<property name="label">label</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
9
testsuite/css/nodes/checkbutton.rtl.nodes
Normal file
9
testsuite/css/nodes/checkbutton.rtl.nodes
Normal file
@ -0,0 +1,9 @@
|
||||
[window.background:dir(rtl)]
|
||||
decoration:dir(ltr)
|
||||
box.vertical:dir(rtl)
|
||||
checkbutton:dir(rtl)
|
||||
label:dir(ltr)
|
||||
check:dir(rtl)
|
||||
radiobutton:dir(rtl):checked
|
||||
label:dir(ltr)
|
||||
radio:dir(rtl):checked
|
36
testsuite/css/nodes/checkbutton.rtl.ui
Normal file
36
testsuite/css/nodes/checkbutton.rtl.ui
Normal file
@ -0,0 +1,36 @@
|
||||
<?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="GtkCheckButton">
|
||||
<property name="visible">True</property>
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="visible">True</property>
|
||||
<property name="label">label</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkRadioButton">
|
||||
<property name="visible">True</property>
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="visible">True</property>
|
||||
<property name="label">label</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
Loading…
Reference in New Issue
Block a user