mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 05:01:09 +00:00
Add a test involving a tree view
This commit is contained in:
parent
eb60a7ed54
commit
4dfb500732
@ -28,4 +28,5 @@ EXTRA_DIST += \
|
|||||||
notebook.ui notebook.txt \
|
notebook.ui notebook.txt \
|
||||||
range.ui range.txt \
|
range.ui range.txt \
|
||||||
link.ui link.txt \
|
link.ui link.txt \
|
||||||
text.ui text.txt
|
text.ui text.txt \
|
||||||
|
tree.ui tree.txt
|
||||||
|
252
tests/a11y/tree.txt
Normal file
252
tests/a11y/tree.txt
Normal file
@ -0,0 +1,252 @@
|
|||||||
|
window1
|
||||||
|
"window"
|
||||||
|
index: 0
|
||||||
|
state: enabled resizable sensitive showing visible
|
||||||
|
toolkit: gail
|
||||||
|
<AtkComponent>
|
||||||
|
layer: window
|
||||||
|
alpha: 1
|
||||||
|
tree1
|
||||||
|
"table"
|
||||||
|
parent: window1
|
||||||
|
index: 0
|
||||||
|
state: enabled focusable sensitive showing visible manages-descendants
|
||||||
|
toolkit: gail
|
||||||
|
<AtkComponent>
|
||||||
|
layer: widget
|
||||||
|
alpha: 1
|
||||||
|
<AtkSelection>
|
||||||
|
selection count: 2
|
||||||
|
selected children: 2 3
|
||||||
|
<AtkTable>
|
||||||
|
rows: 4
|
||||||
|
columns: 2
|
||||||
|
selected rows: 0
|
||||||
|
column 0 description: Column 1
|
||||||
|
<column 0 header>
|
||||||
|
Column 1
|
||||||
|
"table column header"
|
||||||
|
parent: tree1
|
||||||
|
index: 0
|
||||||
|
name: Column 1
|
||||||
|
state: enabled sensitive showing visible
|
||||||
|
toolkit: gail
|
||||||
|
<AtkComponent>
|
||||||
|
layer: widget
|
||||||
|
alpha: 1
|
||||||
|
<AtkText>
|
||||||
|
text: Column 1
|
||||||
|
character count: 8
|
||||||
|
caret offset: 0
|
||||||
|
default attributes: left-margin:0 right-margin:0 indent:0 invisible:false editable:false pixels-above-lines:0 pixels-below-lines:0 pixels-inside-wrap:0 bg-full-height:0 scale:1 rise:0 underline:none strikethrough:false bg-stipple:false fg-stipple:false fg-color:0,0,0 bg-color:56540,56026,54741 wrap-mode:word justification:left size:<omitted> weight:<omitted> family-name:<omitted> stretch:<omitted> variant:<omitted> style:<omitted> language:<omitted> direction:<omitted>
|
||||||
|
<AtkImage>
|
||||||
|
image size: -1 x -1
|
||||||
|
image description: (null)
|
||||||
|
<AtkAction>
|
||||||
|
action 0 name: click
|
||||||
|
action 1 name: press
|
||||||
|
action 2 name: release
|
||||||
|
column 1 description: Column 2
|
||||||
|
<column 1 header>
|
||||||
|
Column 2
|
||||||
|
"table column header"
|
||||||
|
parent: tree1
|
||||||
|
index: 1
|
||||||
|
name: Column 2
|
||||||
|
state: enabled sensitive showing visible
|
||||||
|
toolkit: gail
|
||||||
|
<AtkComponent>
|
||||||
|
layer: widget
|
||||||
|
alpha: 1
|
||||||
|
<AtkText>
|
||||||
|
text: Column 2
|
||||||
|
character count: 8
|
||||||
|
caret offset: 0
|
||||||
|
default attributes: left-margin:0 right-margin:0 indent:0 invisible:false editable:false pixels-above-lines:0 pixels-below-lines:0 pixels-inside-wrap:0 bg-full-height:0 scale:1 rise:0 underline:none strikethrough:false bg-stipple:false fg-stipple:false fg-color:0,0,0 bg-color:56540,56026,54741 wrap-mode:word justification:left size:<omitted> weight:<omitted> family-name:<omitted> stretch:<omitted> variant:<omitted> style:<omitted> language:<omitted> direction:<omitted>
|
||||||
|
<AtkImage>
|
||||||
|
image size: -1 x -1
|
||||||
|
image description: (null)
|
||||||
|
<AtkAction>
|
||||||
|
action 0 name: click
|
||||||
|
action 1 name: press
|
||||||
|
action 2 name: release
|
||||||
|
Column 1
|
||||||
|
"table column header"
|
||||||
|
parent: tree1
|
||||||
|
index: 0
|
||||||
|
name: Column 1
|
||||||
|
state: enabled sensitive showing visible
|
||||||
|
toolkit: gail
|
||||||
|
<AtkComponent>
|
||||||
|
layer: widget
|
||||||
|
alpha: 1
|
||||||
|
<AtkText>
|
||||||
|
text: Column 1
|
||||||
|
character count: 8
|
||||||
|
caret offset: 0
|
||||||
|
default attributes: left-margin:0 right-margin:0 indent:0 invisible:false editable:false pixels-above-lines:0 pixels-below-lines:0 pixels-inside-wrap:0 bg-full-height:0 scale:1 rise:0 underline:none strikethrough:false bg-stipple:false fg-stipple:false fg-color:0,0,0 bg-color:56540,56026,54741 wrap-mode:word justification:left size:<omitted> weight:<omitted> family-name:<omitted> stretch:<omitted> variant:<omitted> style:<omitted> language:<omitted> direction:<omitted>
|
||||||
|
<AtkImage>
|
||||||
|
image size: -1 x -1
|
||||||
|
image description: (null)
|
||||||
|
<AtkAction>
|
||||||
|
action 0 name: click
|
||||||
|
action 1 name: press
|
||||||
|
action 2 name: release
|
||||||
|
Column 2
|
||||||
|
"table column header"
|
||||||
|
parent: tree1
|
||||||
|
index: 1
|
||||||
|
name: Column 2
|
||||||
|
state: enabled sensitive showing visible
|
||||||
|
toolkit: gail
|
||||||
|
<AtkComponent>
|
||||||
|
layer: widget
|
||||||
|
alpha: 1
|
||||||
|
<AtkText>
|
||||||
|
text: Column 2
|
||||||
|
character count: 8
|
||||||
|
caret offset: 0
|
||||||
|
default attributes: left-margin:0 right-margin:0 indent:0 invisible:false editable:false pixels-above-lines:0 pixels-below-lines:0 pixels-inside-wrap:0 bg-full-height:0 scale:1 rise:0 underline:none strikethrough:false bg-stipple:false fg-stipple:false fg-color:0,0,0 bg-color:56540,56026,54741 wrap-mode:word justification:left size:<omitted> weight:<omitted> family-name:<omitted> stretch:<omitted> variant:<omitted> style:<omitted> language:<omitted> direction:<omitted>
|
||||||
|
<AtkImage>
|
||||||
|
image size: -1 x -1
|
||||||
|
image description: (null)
|
||||||
|
<AtkAction>
|
||||||
|
action 0 name: click
|
||||||
|
action 1 name: press
|
||||||
|
action 2 name: release
|
||||||
|
One
|
||||||
|
"table cell"
|
||||||
|
parent: tree1
|
||||||
|
index: 2
|
||||||
|
name: One
|
||||||
|
state: enabled focusable focused selectable selected sensitive single-line transient visible
|
||||||
|
<AtkComponent>
|
||||||
|
layer: widget
|
||||||
|
alpha: 1
|
||||||
|
<AtkText>
|
||||||
|
text: One
|
||||||
|
character count: 3
|
||||||
|
caret offset: 0
|
||||||
|
default attributes: left-margin:0 right-margin:0 indent:0 invisible:false editable:false pixels-above-lines:0 pixels-below-lines:0 pixels-inside-wrap:0 bg-full-height:0 scale:1 rise:0 underline:none strikethrough:false bg-stipple:false fg-stipple:false fg-color:0,0,0 bg-color:56540,56026,54741 wrap-mode:word justification:left size:<omitted> weight:<omitted> family-name:<omitted> stretch:<omitted> variant:<omitted> style:<omitted> language:<omitted> direction:<omitted>
|
||||||
|
<AtkAction>
|
||||||
|
action 0 name: activate
|
||||||
|
action 0 description: activate the cell
|
||||||
|
Two
|
||||||
|
"table cell"
|
||||||
|
parent: tree1
|
||||||
|
index: 3
|
||||||
|
name: Two
|
||||||
|
state: enabled focusable selectable selected sensitive showing single-line transient visible
|
||||||
|
<AtkComponent>
|
||||||
|
layer: widget
|
||||||
|
alpha: 1
|
||||||
|
<AtkText>
|
||||||
|
text: Two
|
||||||
|
character count: 3
|
||||||
|
caret offset: 0
|
||||||
|
default attributes: left-margin:0 right-margin:0 indent:0 invisible:false editable:false pixels-above-lines:0 pixels-below-lines:0 pixels-inside-wrap:0 bg-full-height:0 scale:1 rise:0 underline:none strikethrough:false bg-stipple:false fg-stipple:false fg-color:0,0,0 bg-color:56540,56026,54741 wrap-mode:word justification:left size:<omitted> weight:<omitted> family-name:<omitted> stretch:<omitted> variant:<omitted> style:<omitted> language:<omitted> direction:<omitted>
|
||||||
|
<AtkAction>
|
||||||
|
action 0 name: activate
|
||||||
|
action 0 description: activate the cell
|
||||||
|
Three
|
||||||
|
"table cell"
|
||||||
|
parent: tree1
|
||||||
|
index: 4
|
||||||
|
name: Three
|
||||||
|
state: enabled focusable selectable sensitive single-line transient visible
|
||||||
|
<AtkComponent>
|
||||||
|
layer: widget
|
||||||
|
alpha: 1
|
||||||
|
<AtkText>
|
||||||
|
text: Three
|
||||||
|
character count: 5
|
||||||
|
caret offset: 0
|
||||||
|
default attributes: left-margin:0 right-margin:0 indent:0 invisible:false editable:false pixels-above-lines:0 pixels-below-lines:0 pixels-inside-wrap:0 bg-full-height:0 scale:1 rise:0 underline:none strikethrough:false bg-stipple:false fg-stipple:false fg-color:0,0,0 bg-color:56540,56026,54741 wrap-mode:word justification:left size:<omitted> weight:<omitted> family-name:<omitted> stretch:<omitted> variant:<omitted> style:<omitted> language:<omitted> direction:<omitted>
|
||||||
|
<AtkAction>
|
||||||
|
action 0 name: activate
|
||||||
|
action 0 description: activate the cell
|
||||||
|
Four
|
||||||
|
"table cell"
|
||||||
|
parent: tree1
|
||||||
|
index: 5
|
||||||
|
name: Four
|
||||||
|
state: enabled focusable selectable sensitive showing single-line transient visible
|
||||||
|
<AtkComponent>
|
||||||
|
layer: widget
|
||||||
|
alpha: 1
|
||||||
|
<AtkText>
|
||||||
|
text: Four
|
||||||
|
character count: 4
|
||||||
|
caret offset: 0
|
||||||
|
default attributes: left-margin:0 right-margin:0 indent:0 invisible:false editable:false pixels-above-lines:0 pixels-below-lines:0 pixels-inside-wrap:0 bg-full-height:0 scale:1 rise:0 underline:none strikethrough:false bg-stipple:false fg-stipple:false fg-color:0,0,0 bg-color:56540,56026,54741 wrap-mode:word justification:left size:<omitted> weight:<omitted> family-name:<omitted> stretch:<omitted> variant:<omitted> style:<omitted> language:<omitted> direction:<omitted>
|
||||||
|
<AtkAction>
|
||||||
|
action 0 name: activate
|
||||||
|
action 0 description: activate the cell
|
||||||
|
Five
|
||||||
|
"table cell"
|
||||||
|
parent: tree1
|
||||||
|
index: 6
|
||||||
|
name: Five
|
||||||
|
state: enabled focusable selectable sensitive single-line transient visible
|
||||||
|
<AtkComponent>
|
||||||
|
layer: widget
|
||||||
|
alpha: 1
|
||||||
|
<AtkText>
|
||||||
|
text: Five
|
||||||
|
character count: 4
|
||||||
|
caret offset: 0
|
||||||
|
default attributes: left-margin:0 right-margin:0 indent:0 invisible:false editable:false pixels-above-lines:0 pixels-below-lines:0 pixels-inside-wrap:0 bg-full-height:0 scale:1 rise:0 underline:none strikethrough:false bg-stipple:false fg-stipple:false fg-color:0,0,0 bg-color:56540,56026,54741 wrap-mode:word justification:left size:<omitted> weight:<omitted> family-name:<omitted> stretch:<omitted> variant:<omitted> style:<omitted> language:<omitted> direction:<omitted>
|
||||||
|
<AtkAction>
|
||||||
|
action 0 name: activate
|
||||||
|
action 0 description: activate the cell
|
||||||
|
Six
|
||||||
|
"table cell"
|
||||||
|
parent: tree1
|
||||||
|
index: 7
|
||||||
|
name: Six
|
||||||
|
state: enabled focusable selectable sensitive showing single-line transient visible
|
||||||
|
<AtkComponent>
|
||||||
|
layer: widget
|
||||||
|
alpha: 1
|
||||||
|
<AtkText>
|
||||||
|
text: Six
|
||||||
|
character count: 3
|
||||||
|
caret offset: 0
|
||||||
|
default attributes: left-margin:0 right-margin:0 indent:0 invisible:false editable:false pixels-above-lines:0 pixels-below-lines:0 pixels-inside-wrap:0 bg-full-height:0 scale:1 rise:0 underline:none strikethrough:false bg-stipple:false fg-stipple:false fg-color:0,0,0 bg-color:56540,56026,54741 wrap-mode:word justification:left size:<omitted> weight:<omitted> family-name:<omitted> stretch:<omitted> variant:<omitted> style:<omitted> language:<omitted> direction:<omitted>
|
||||||
|
<AtkAction>
|
||||||
|
action 0 name: activate
|
||||||
|
action 0 description: activate the cell
|
||||||
|
Seven
|
||||||
|
"table cell"
|
||||||
|
parent: tree1
|
||||||
|
index: 8
|
||||||
|
name: Seven
|
||||||
|
state: enabled focusable selectable sensitive single-line transient visible
|
||||||
|
<AtkComponent>
|
||||||
|
layer: widget
|
||||||
|
alpha: 1
|
||||||
|
<AtkText>
|
||||||
|
text: Seven
|
||||||
|
character count: 5
|
||||||
|
caret offset: 0
|
||||||
|
default attributes: left-margin:0 right-margin:0 indent:0 invisible:false editable:false pixels-above-lines:0 pixels-below-lines:0 pixels-inside-wrap:0 bg-full-height:0 scale:1 rise:0 underline:none strikethrough:false bg-stipple:false fg-stipple:false fg-color:0,0,0 bg-color:56540,56026,54741 wrap-mode:word justification:left size:<omitted> weight:<omitted> family-name:<omitted> stretch:<omitted> variant:<omitted> style:<omitted> language:<omitted> direction:<omitted>
|
||||||
|
<AtkAction>
|
||||||
|
action 0 name: activate
|
||||||
|
action 0 description: activate the cell
|
||||||
|
Eight
|
||||||
|
"table cell"
|
||||||
|
parent: tree1
|
||||||
|
index: 9
|
||||||
|
name: Eight
|
||||||
|
state: enabled focusable selectable sensitive showing single-line transient visible
|
||||||
|
<AtkComponent>
|
||||||
|
layer: widget
|
||||||
|
alpha: 1
|
||||||
|
<AtkText>
|
||||||
|
text: Eight
|
||||||
|
character count: 5
|
||||||
|
caret offset: 0
|
||||||
|
default attributes: left-margin:0 right-margin:0 indent:0 invisible:false editable:false pixels-above-lines:0 pixels-below-lines:0 pixels-inside-wrap:0 bg-full-height:0 scale:1 rise:0 underline:none strikethrough:false bg-stipple:false fg-stipple:false fg-color:0,0,0 bg-color:56540,56026,54741 wrap-mode:word justification:left size:<omitted> weight:<omitted> family-name:<omitted> stretch:<omitted> variant:<omitted> style:<omitted> language:<omitted> direction:<omitted>
|
||||||
|
<AtkAction>
|
||||||
|
action 0 name: activate
|
||||||
|
action 0 description: activate the cell
|
50
tests/a11y/tree.ui
Normal file
50
tests/a11y/tree.ui
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<interface>
|
||||||
|
<!-- interface-requires gtk+ 3.0 -->
|
||||||
|
<object class="GtkListStore" id="liststore1">
|
||||||
|
<columns>
|
||||||
|
<column type="gchararray"/>
|
||||||
|
<column type="gchararray"/>
|
||||||
|
</columns>
|
||||||
|
<data>
|
||||||
|
<row><col id="0">One</col><col id="1">Two</col></row>
|
||||||
|
<row><col id="0">Three</col><col id="1">Four</col></row>
|
||||||
|
<row><col id="0">Five</col><col id="1">Six</col></row>
|
||||||
|
<row><col id="0">Seven</col><col id="1">Eight</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="tree1">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="model">liststore1</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkTreeViewColumn" id="column1">
|
||||||
|
<property name="title" translatable="yes">Column 1</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkCellRendererText" id="renderer1">
|
||||||
|
</object>
|
||||||
|
<attributes>
|
||||||
|
<attribute name="text">0</attribute>
|
||||||
|
</attributes>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkTreeViewColumn" id="column2">
|
||||||
|
<property name="title" translatable="yes">Column 2</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkCellRendererText" id="renderer2">
|
||||||
|
</object>
|
||||||
|
<attributes>
|
||||||
|
<attribute name="text">1</attribute>
|
||||||
|
</attributes>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</interface>
|
Loading…
Reference in New Issue
Block a user