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
This commit is contained in:
@ -59,6 +59,46 @@ window1
|
|||||||
"label"
|
"label"
|
||||||
parent: box1
|
parent: box1
|
||||||
index: 1
|
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:
|
name: spinbutton:
|
||||||
label-for: spinbutton1
|
label-for: spinbutton1
|
||||||
state: enabled multi-line sensitive visible
|
state: enabled multi-line sensitive visible
|
||||||
@ -98,7 +138,7 @@ window1
|
|||||||
entry1
|
entry1
|
||||||
"text"
|
"text"
|
||||||
parent: box1
|
parent: box1
|
||||||
index: 2
|
index: 3
|
||||||
labelled-by: label1
|
labelled-by: label1
|
||||||
state: editable enabled focusable sensitive single-line visible
|
state: editable enabled focusable sensitive single-line visible
|
||||||
toolkit: gtk
|
toolkit: gtk
|
||||||
@ -137,11 +177,53 @@ window1
|
|||||||
<AtkAction>
|
<AtkAction>
|
||||||
action 0 name: activate
|
action 0 name: activate
|
||||||
action 0 keybinding: <Alt>e
|
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
|
spinbutton1
|
||||||
"spin button"
|
"spin button"
|
||||||
parent: box1
|
parent: box1
|
||||||
index: 3
|
index: 5
|
||||||
labelled-by: label2
|
labelled-by: label3
|
||||||
state: editable enabled focusable sensitive single-line visible
|
state: editable enabled focusable sensitive single-line visible
|
||||||
toolkit: gtk
|
toolkit: gtk
|
||||||
<AtkComponent>
|
<AtkComponent>
|
||||||
|
|||||||
@ -24,6 +24,14 @@
|
|||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel" id="label2">
|
<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="label">_spinbutton:</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="use-underline">True</property>
|
<property name="use-underline">True</property>
|
||||||
@ -36,6 +44,15 @@
|
|||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</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>
|
<child>
|
||||||
<object class="GtkSpinButton" id="spinbutton1">
|
<object class="GtkSpinButton" id="spinbutton1">
|
||||||
<property name="adjustment">adjustment1</property>
|
<property name="adjustment">adjustment1</property>
|
||||||
|
|||||||
Reference in New Issue
Block a user