Commit 61f0556c authored by Matthias Clasen's avatar Matthias Clasen

Add some treeview a11y tests

parent e529dfe9
......@@ -78,6 +78,7 @@ testdata = \
listbox.ui listbox.txt \
stack.ui stack.txt \
headerbar.ui headerbar.txt \
tree.ui tree.txt \
$(NULL)
test_in_files = \
......
window1
"window"
index: 0
state: enabled resizable sensitive showing visible
toolkit: gtk
<AtkComponent>
layer: window
alpha: 1
tv
"table"
parent: window1
index: 0
state: enabled focusable sensitive showing visible manages-descendants
toolkit: gtk
<AtkComponent>
layer: widget
alpha: 1
<AtkSelection>
selected children: tv
<AtkTable>
rows: 3
columns: 1
selected rows: 0
column 0 description: Test
column 0 header: unnamed-GtkButtonAccessible-0
table indexes:
??tv
??tv
??tv
unnamed-GtkButtonAccessible-0
"table column header"
parent: tv
index: 0
name: Test
state: enabled sensitive showing visible
toolkit: gtk
<AtkComponent>
layer: widget
alpha: 1
<AtkImage>
image size: -1 x -1
image description: (null)
<AtkAction>
action 0 name: click
action 0 description: Clicks the button
tv
"table cell"
parent: tv
index: 1
state: enabled focusable selectable selected sensitive showing transient visible
<AtkComponent>
layer: widget
alpha: 1
<AtkAction>
action 0 name: expand or contract
action 0 description: Expands or contracts the row in the tree view containing this cell
action 1 name: edit
action 1 description: Creates a widget in which the contents of the cell can be edited
action 2 name: activate
action 2 description: Activates the cell
tv
"table cell"
parent: tv
index: 0
name: One
state: enabled focusable selectable selected sensitive showing single-line transient visible
<AtkComponent>
layer: widget
alpha: 1
<AtkText>
text: One
character count: 3
caret offset: 0
default attributes: bg-color: <omitted>
bg-full-height: 0
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
<AtkAction>
action 0 name: expand or contract
action 0 description: Expands or contracts the row in the tree view containing this cell
action 1 name: edit
action 1 description: Creates a widget in which the contents of the cell can be edited
action 2 name: activate
action 2 description: Activates the cell
tv
"table cell"
parent: tv
index: 1
name: 234
state: enabled focusable selectable selected sensitive showing single-line transient visible
<AtkComponent>
layer: widget
alpha: 1
<AtkText>
text: 234
character count: 3
caret offset: 0
default attributes: bg-color: <omitted>
bg-full-height: 0
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
<AtkAction>
action 0 name: expand or contract
action 0 description: Expands or contracts the row in the tree view containing this cell
action 1 name: edit
action 1 description: Creates a widget in which the contents of the cell can be edited
action 2 name: activate
action 2 description: Activates the cell
tv
"table cell"
parent: tv
index: 2
state: enabled focusable selectable sensitive showing transient visible
<AtkComponent>
layer: widget
alpha: 1
<AtkAction>
action 0 name: expand or contract
action 0 description: Expands or contracts the row in the tree view containing this cell
action 1 name: edit
action 1 description: Creates a widget in which the contents of the cell can be edited
action 2 name: activate
action 2 description: Activates the cell
tv
"table cell"
parent: tv
index: 0
name: Two
state: enabled focusable selectable sensitive showing single-line transient visible
<AtkComponent>
layer: widget
alpha: 1
<AtkText>
text: Two
character count: 3
caret offset: 0
default attributes: bg-color: <omitted>
bg-full-height: 0
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
<AtkAction>
action 0 name: expand or contract
action 0 description: Expands or contracts the row in the tree view containing this cell
action 1 name: edit
action 1 description: Creates a widget in which the contents of the cell can be edited
action 2 name: activate
action 2 description: Activates the cell
tv
"table cell"
parent: tv
index: 1
name: 567
state: enabled focusable selectable sensitive showing single-line transient visible
<AtkComponent>
layer: widget
alpha: 1
<AtkText>
text: 567
character count: 3
caret offset: 0
default attributes: bg-color: <omitted>
bg-full-height: 0
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
<AtkAction>
action 0 name: expand or contract
action 0 description: Expands or contracts the row in the tree view containing this cell
action 1 name: edit
action 1 description: Creates a widget in which the contents of the cell can be edited
action 2 name: activate
action 2 description: Activates the cell
tv
"table cell"
parent: tv
index: 3
state: enabled focusable selectable sensitive showing transient visible
<AtkComponent>
layer: widget
alpha: 1
<AtkAction>
action 0 name: expand or contract
action 0 description: Expands or contracts the row in the tree view containing this cell
action 1 name: edit
action 1 description: Creates a widget in which the contents of the cell can be edited
action 2 name: activate
action 2 description: Activates the cell
tv
"table cell"
parent: tv
index: 0
name: 40.000
state: enabled focusable selectable sensitive showing single-line transient visible
<AtkComponent>
layer: widget
alpha: 1
<AtkText>
text: 40.000
character count: 6
caret offset: 0
default attributes: bg-color: <omitted>
bg-full-height: 0
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
<AtkAction>
action 0 name: expand or contract
action 0 description: Expands or contracts the row in the tree view containing this cell
action 1 name: edit
action 1 description: Creates a widget in which the contents of the cell can be edited
action 2 name: activate
action 2 description: Activates the cell
tv
"table cell"
parent: tv
index: 1
name: 999999
state: enabled focusable selectable sensitive showing single-line transient visible
<AtkComponent>
layer: widget
alpha: 1
<AtkText>
text: 999999
character count: 6
caret offset: 0
default attributes: bg-color: <omitted>
bg-full-height: 0
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
<AtkAction>
action 0 name: expand or contract
action 0 description: Expands or contracts the row in the tree view containing this cell
action 1 name: edit
action 1 description: Creates a widget in which the contents of the cell can be edited
action 2 name: activate
action 2 description: Activates the cell
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkListStore" id="store">
<columns>
<column type="gchararray"/>
<column type="gchararray"/>
</columns>
<data>
<row><col id="0">One</col><col id="1">234</col></row>
<row><col id="0">Two</col><col id="1">567</col></row>
<row><col id="0">40.000</col><col id="1">999999</col></row>
</data>
</object>
<object class="GtkWindow" id="window1">
<property name="can_focus">False</property>
<property name="type">popup</property>
<child>
<object class="GtkTreeView" id="tv">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="model">store</property>
<child>
<object class="GtkTreeViewColumn" id="col">
<property name="title">Test</property>
<property name="visible">True</property>
<child>
<object class="GtkCellRendererText" id="cell1">
<property name="visible">True</property>
</object>
<attributes>
<attribute name="text">0</attribute>
</attributes>
</child>
<child>
<object class="GtkCellRendererText" id="cell2">
<property name="visible">True</property>
</object>
<attributes>
<attribute name="text">1</attribute>
</attributes>
</child>
</object>
</child>
</object>
</child>
</object>
</interface>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment