[gtk+] Update accessibility unit tests to consider password fields.
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Update accessibility unit tests to consider password fields.
- Date: Fri, 10 Aug 2012 16:11:33 +0000 (UTC)
commit 45ecba2ea00c4c6b48b1ef29e1c1d12836d4420a
Author: Mario Sanchez Prada <msanchez igalia com>
Date: Fri Aug 10 18:05:58 2012 +0200
Update accessibility unit tests to consider password fields.
Updated test/a11y/entries.ui to include a new GtkEntry with
'visibility' set to FALSE, and update expectations.
https://bugzilla.gnome.org/show_bug.cgi?id=681591
tests/a11y/entries.txt | 88 ++++++++++++++++++++++++++++++++++++++++++++++--
tests/a11y/entries.ui | 17 +++++++++
2 files changed, 102 insertions(+), 3 deletions(-)
---
diff --git a/tests/a11y/entries.txt b/tests/a11y/entries.txt
index 866abb6..2ebecfc 100644
--- a/tests/a11y/entries.txt
+++ b/tests/a11y/entries.txt
@@ -59,6 +59,46 @@ window1
"label"
parent: box1
index: 1
+ name: password entry:
+ label-for: entry2
+ state: enabled multi-line sensitive visible
+ toolkit: gtk
+ <AtkComponent>
+ layer: widget
+ alpha: 1
+ <AtkText>
+ text: password entry:
+ character count: 15
+ 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
+ label3
+ "label"
+ parent: box1
+ index: 2
name: spinbutton:
label-for: spinbutton1
state: enabled multi-line sensitive visible
@@ -98,7 +138,7 @@ window1
entry1
"text"
parent: box1
- index: 2
+ index: 3
labelled-by: label1
state: editable enabled focusable sensitive single-line visible
toolkit: gtk
@@ -137,11 +177,53 @@ window1
<AtkAction>
action 0 name: activate
action 0 keybinding: <Alt>e
+ entry2
+ "password text"
+ parent: box1
+ index: 4
+ labelled-by: label2
+ state: editable enabled focusable sensitive single-line visible
+ toolkit: gtk
+ <AtkComponent>
+ layer: widget
+ alpha: 1
+ <AtkText>
+ text: *************
+ character count: 13
+ 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
+ <AtkAction>
+ action 0 name: activate
+ action 0 keybinding: <Alt>p
spinbutton1
"spin button"
parent: box1
- index: 3
- labelled-by: label2
+ index: 5
+ labelled-by: label3
state: editable enabled focusable sensitive single-line visible
toolkit: gtk
<AtkComponent>
diff --git a/tests/a11y/entries.ui b/tests/a11y/entries.ui
index f8f66e8..0243dd7 100644
--- a/tests/a11y/entries.ui
+++ b/tests/a11y/entries.ui
@@ -24,6 +24,14 @@
</child>
<child>
<object class="GtkLabel" id="label2">
+ <property name="label">_password entry:</property>
+ <property name="visible">True</property>
+ <property name="use-underline">True</property>
+ <property name="mnemonic-widget">entry2</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label3">
<property name="label">_spinbutton:</property>
<property name="visible">True</property>
<property name="use-underline">True</property>
@@ -37,6 +45,15 @@
</object>
</child>
<child>
+ <object class="GtkEntry" id="entry2">
+ <property name="text" translatable="yes">password text</property>
+ <property name="visible">True</property>
+ <property name="visibility">False</property>
+ <property name="invisible_char">*</property>
+ <property name="invisible_char_set">True</property>
+ </object>
+ </child>
+ <child>
<object class="GtkSpinButton" id="spinbutton1">
<property name="adjustment">adjustment1</property>
<property name="visible">True</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]