[gtk+/quartz-integration: 339/563] Add a test involving a tree view
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/quartz-integration: 339/563] Add a test involving a tree view
- Date: Sat, 9 Jul 2011 06:34:31 +0000 (UTC)
commit e904d94adf9347fb0ad64974f9560038023a9d7b
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jun 19 21:29:42 2011 -0400
Add a test involving a tree view
tests/a11y/Makefile.am | 3 +-
tests/a11y/tree.txt | 252 ++++++++++++++++++++++++++++++++++++++++++++++++
tests/a11y/tree.ui | 50 ++++++++++
3 files changed, 304 insertions(+), 1 deletions(-)
---
diff --git a/tests/a11y/Makefile.am b/tests/a11y/Makefile.am
index 7bb323f..38c5dc1 100644
--- a/tests/a11y/Makefile.am
+++ b/tests/a11y/Makefile.am
@@ -28,4 +28,5 @@ EXTRA_DIST += \
notebook.ui notebook.txt \
range.ui range.txt \
link.ui link.txt \
- text.ui text.txt
+ text.ui text.txt \
+ tree.ui tree.txt
diff --git a/tests/a11y/tree.txt b/tests/a11y/tree.txt
new file mode 100644
index 0000000..5254fc7
--- /dev/null
+++ b/tests/a11y/tree.txt
@@ -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
diff --git a/tests/a11y/tree.ui b/tests/a11y/tree.ui
new file mode 100644
index 0000000..ea7f65b
--- /dev/null
+++ b/tests/a11y/tree.ui
@@ -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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]