[gtk+] Add some keybindings to the a11y entries test
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Add some keybindings to the a11y entries test
- Date: Mon, 14 Nov 2011 14:26:38 +0000 (UTC)
commit a6cb6c6d39c6b0c167f19a4845dd3e1c7e823ddc
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Nov 14 09:18:47 2011 -0500
Add some keybindings to the a11y entries test
tests/a11y/entries.txt | 88 ++++++++++++++++++++++++++++++++++++++++++++++-
tests/a11y/entries.ui | 16 +++++++++
2 files changed, 102 insertions(+), 2 deletions(-)
---
diff --git a/tests/a11y/entries.txt b/tests/a11y/entries.txt
index 08815e5..866abb6 100644
--- a/tests/a11y/entries.txt
+++ b/tests/a11y/entries.txt
@@ -15,10 +15,91 @@ window1
<AtkComponent>
layer: widget
alpha: 1
+ label1
+ "label"
+ parent: box1
+ index: 0
+ name: entry:
+ label-for: entry1
+ state: enabled multi-line sensitive visible
+ toolkit: gtk
+ <AtkComponent>
+ layer: widget
+ alpha: 1
+ <AtkText>
+ text: entry:
+ character count: 6
+ 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
+ label2
+ "label"
+ parent: box1
+ index: 1
+ name: spinbutton:
+ label-for: spinbutton1
+ state: enabled multi-line sensitive visible
+ toolkit: gtk
+ <AtkComponent>
+ layer: widget
+ alpha: 1
+ <AtkText>
+ text: spinbutton:
+ character count: 11
+ 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
entry1
"text"
parent: box1
- index: 0
+ index: 2
+ labelled-by: label1
state: editable enabled focusable sensitive single-line visible
toolkit: gtk
<AtkComponent>
@@ -55,10 +136,12 @@ window1
wrap-mode: word
<AtkAction>
action 0 name: activate
+ action 0 keybinding: <Alt>e
spinbutton1
"spin button"
parent: box1
- index: 1
+ index: 3
+ labelled-by: label2
state: editable enabled focusable sensitive single-line visible
toolkit: gtk
<AtkComponent>
@@ -95,6 +178,7 @@ window1
wrap-mode: word
<AtkAction>
action 0 name: activate
+ action 0 keybinding: <Alt>s
<AtkValue>
minimum value: 0.500000
maximum value: 99.500000
diff --git a/tests/a11y/entries.ui b/tests/a11y/entries.ui
index 28d072a..f8f66e8 100644
--- a/tests/a11y/entries.ui
+++ b/tests/a11y/entries.ui
@@ -15,6 +15,22 @@
<child>
<object class="GtkBox" id="box1">
<child>
+ <object class="GtkLabel" id="label1">
+ <property name="label">_entry:</property>
+ <property name="visible">True</property>
+ <property name="use-underline">True</property>
+ <property name="mnemonic-widget">entry1</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label2">
+ <property name="label">_spinbutton:</property>
+ <property name="visible">True</property>
+ <property name="use-underline">True</property>
+ <property name="mnemonic-widget">spinbutton1</property>
+ </object>
+ </child>
+ <child>
<object class="GtkEntry" id="entry1">
<property name="text" translatable="yes">text</property>
<property name="visible">True</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]