[gtk+] Add some treeview a11y tests
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Add some treeview a11y tests
- Date: Tue, 14 Jan 2014 04:51:56 +0000 (UTC)
commit 61f0556cf7d31bae15d2c29b32e408f51321a023
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jan 13 23:31:05 2014 -0500
Add some treeview a11y tests
testsuite/a11y/Makefile.am | 1 +
testsuite/a11y/tree.txt | 354 ++++++++++++++++++++++++++++++++++++++++++++
testsuite/a11y/tree.ui | 48 ++++++
3 files changed, 403 insertions(+), 0 deletions(-)
---
diff --git a/testsuite/a11y/Makefile.am b/testsuite/a11y/Makefile.am
index 1223cdd..91abf76 100644
--- a/testsuite/a11y/Makefile.am
+++ b/testsuite/a11y/Makefile.am
@@ -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 = \
diff --git a/testsuite/a11y/tree.txt b/testsuite/a11y/tree.txt
new file mode 100644
index 0000000..4aa6713
--- /dev/null
+++ b/testsuite/a11y/tree.txt
@@ -0,0 +1,354 @@
+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
diff --git a/testsuite/a11y/tree.ui b/testsuite/a11y/tree.ui
new file mode 100644
index 0000000..331e5fb
--- /dev/null
+++ b/testsuite/a11y/tree.ui
@@ -0,0 +1,48 @@
+<?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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]