mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
Add css node tests for box packing
More tests to ensure that CSS node order is always physical left-to-right.
This commit is contained in:
parent
486a0a467d
commit
e0f31ab7bb
@ -30,6 +30,8 @@ test_css_nodes_SOURCES = \
|
|||||||
test_data = \
|
test_data = \
|
||||||
box.ltr.ui box.ltr.nodes \
|
box.ltr.ui box.ltr.nodes \
|
||||||
box.rtl.ui box.rtl.nodes \
|
box.rtl.ui box.rtl.nodes \
|
||||||
|
box-packing.ltr.ui box-packing.ltr.nodes \
|
||||||
|
box-packing.rtl.ui box-packing.rtl.nodes \
|
||||||
buttons.ui buttons.nodes \
|
buttons.ui buttons.nodes \
|
||||||
checkbutton.ltr.ui checkbutton.ltr.nodes \
|
checkbutton.ltr.ui checkbutton.ltr.nodes \
|
||||||
checkbutton.rtl.ui checkbutton.rtl.nodes \
|
checkbutton.rtl.ui checkbutton.rtl.nodes \
|
||||||
|
6
testsuite/css/nodes/box-packing.ltr.nodes
Normal file
6
testsuite/css/nodes/box-packing.ltr.nodes
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[window.background:dir(ltr)]
|
||||||
|
decoration:dir(ltr)
|
||||||
|
box.horizontal:dir(ltr)
|
||||||
|
label#start:dir(ltr)
|
||||||
|
label#center:dir(ltr)
|
||||||
|
label#end:dir(ltr)
|
38
testsuite/css/nodes/box-packing.ltr.ui
Normal file
38
testsuite/css/nodes/box-packing.ltr.ui
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
<?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">horizontal</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="name">end</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="pack-type">end</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="name">start</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="pack-type">start</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child type="center">
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="name">center</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</interface>
|
6
testsuite/css/nodes/box-packing.rtl.nodes
Normal file
6
testsuite/css/nodes/box-packing.rtl.nodes
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[window.background:dir(rtl)]
|
||||||
|
decoration:dir(ltr)
|
||||||
|
box.horizontal:dir(rtl)
|
||||||
|
label#end:dir(ltr)
|
||||||
|
label#center:dir(ltr)
|
||||||
|
label#start:dir(ltr)
|
38
testsuite/css/nodes/box-packing.rtl.ui
Normal file
38
testsuite/css/nodes/box-packing.rtl.ui
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
<?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">horizontal</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="name">end</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="pack-type">end</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="name">start</property>
|
||||||
|
</object>
|
||||||
|
<packing>
|
||||||
|
<property name="pack-type">start</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child type="center">
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="name">center</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</interface>
|
Loading…
Reference in New Issue
Block a user