Add GtkListBox to the a11y tests

This commit is contained in:
Matthias Clasen
2013-06-30 22:08:58 -04:00
parent a9e82cd46a
commit e11039a973
3 changed files with 141 additions and 0 deletions

View File

@ -73,6 +73,7 @@ testdata = \
placeholder-text.ui placeholder-text.txt \
menu.ui menu.txt \
combos.ui combos.txt \
listbox.ui listbox.txt \
$(NULL)
test_in_files = \

115
testsuite/a11y/listbox.txt Normal file
View File

@ -0,0 +1,115 @@
window1
"window"
index: 0
state: enabled resizable sensitive showing visible
toolkit: gtk
<AtkComponent>
layer: window
alpha: 1
box1
"list box"
parent: window1
index: 0
state: enabled sensitive showing visible manages-descendants
toolkit: gtk
<AtkComponent>
layer: widget
alpha: 1
<AtkSelection>
selected children: unnamed-GtkContainerAccessible-0
unnamed-GtkContainerAccessible-0
"panel"
parent: box1
index: 0
state: enabled focusable sensitive showing visible
toolkit: gtk
<AtkComponent>
layer: widget
alpha: 1
row1
"label"
parent: unnamed-GtkContainerAccessible-0
index: 0
name: Row One
state: enabled multi-line sensitive showing visible
toolkit: gtk
<AtkComponent>
layer: widget
alpha: 1
<AtkText>
text: Row One
character count: 7
caret offset: 0
default attributes: bg-color: <omitted>
bg-full-height: 0
direction: <omitted>
editable: false
family-name: <omitted>
fg-color: <omitted>
indent: 0
invisible: false
justification: left
language: <omitted>
left-margin: 0
pixels-above-lines: 0
pixels-below-lines: 0
pixels-inside-wrap: 0
right-margin: 0
rise: 0
scale: 1
size: <omitted>
stretch: <omitted>
strikethrough: false
style: <omitted>
underline: none
variant: <omitted>
weight: <omitted>
wrap-mode: word
unnamed-GtkContainerAccessible-1
"panel"
parent: box1
index: 1
state: enabled focusable sensitive showing visible
toolkit: gtk
<AtkComponent>
layer: widget
alpha: 1
row2
"label"
parent: unnamed-GtkContainerAccessible-1
index: 0
name: Row Two
state: enabled multi-line sensitive showing visible
toolkit: gtk
<AtkComponent>
layer: widget
alpha: 1
<AtkText>
text: Row Two
character count: 7
caret offset: 0
default attributes: bg-color: <omitted>
bg-full-height: 0
direction: <omitted>
editable: false
family-name: <omitted>
fg-color: <omitted>
indent: 0
invisible: false
justification: left
language: <omitted>
left-margin: 0
pixels-above-lines: 0
pixels-below-lines: 0
pixels-inside-wrap: 0
right-margin: 0
rise: 0
scale: 1
size: <omitted>
stretch: <omitted>
strikethrough: false
style: <omitted>
underline: none
variant: <omitted>
weight: <omitted>
wrap-mode: word

25
testsuite/a11y/listbox.ui Normal file
View File

@ -0,0 +1,25 @@
<?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="GtkListBox" id="box1">
<property name="visible">True</property>
<child>
<object class="GtkLabel" id="row1">
<property name="visible">True</property>
<property name="label">Row One</property>
</object>
</child>
<child>
<object class="GtkLabel" id="row2">
<property name="visible">True</property>
<property name="label">Row Two</property>
</object>
</child>
</object>
</child>
</object>
</interface>