Add a css node test for comboboxes

This commit is contained in:
Matthias Clasen 2016-03-02 15:20:31 -05:00
parent d3ca8aaf83
commit 8205a304e8
3 changed files with 73 additions and 0 deletions

View File

@ -35,6 +35,7 @@ test_data = \
buttons.ui buttons.nodes \
checkbutton.ltr.ui checkbutton.ltr.nodes \
checkbutton.rtl.ui checkbutton.rtl.nodes \
combobox.ui combobox.nodes \
entries.ui entries.nodes \
expander.ltr.ui expander.ltr.nodes \
expander.rtl.ui expander.rtl.nodes \

View File

@ -0,0 +1,39 @@
[window.background:dir(ltr)]
decoration:dir(ltr)
[box.horizontal:dir(ltr)]
combobox:dir(ltr)
box.linked.horizontal:dir(ltr)
button.combo:dir(ltr)
box.horizontal:dir(ltr)
cellview:dir(ltr)
arrow:dir(ltr)
[window.background.popup:dir(ltr)]
decoration:dir(ltr)
[menu#gtk-combobox-popup-menu:dir(ltr)]
[arrow.top:dir(ltr)]
menuitem:dir(ltr)
cellview:dir(ltr)
menuitem:dir(ltr)
cellview:dir(ltr)
menuitem:dir(ltr)
cellview:dir(ltr)
[arrow.bottom:dir(ltr)]
combobox:dir(ltr)
box.linked.horizontal:dir(ltr)
entry.combo:dir(ltr)
undershoot.left:dir(ltr)
undershoot.right:dir(ltr)
button.combo:dir(ltr)
box.horizontal:dir(ltr)
arrow:dir(ltr)
[window.background.popup:dir(ltr)]
decoration:dir(ltr)
[menu#gtk-combobox-popup-menu:dir(ltr)]
[arrow.top:dir(ltr)]
menuitem:dir(ltr)
cellview:dir(ltr)
menuitem:dir(ltr)
cellview:dir(ltr)
menuitem:dir(ltr)
cellview:dir(ltr)
[arrow.bottom:dir(ltr)]

View File

@ -0,0 +1,33 @@
<?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" id="box1">
<child>
<object class="GtkComboBoxText" id="combo1">
<property name="visible">True</property>
<items>
<item id="one">One</item>
<item id="two">Two</item>
<item id="three">Three</item>
</items>
</object>
</child>
<child>
<object class="GtkComboBoxText" id="combo2">
<property name="visible">True</property>
<property name="has-entry">True</property>
<items>
<item id="one">One</item>
<item id="two">Two</item>
<item id="three">Three</item>
</items>
</object>
</child>
</object>
</child>
</object>
</interface>