зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1047428 - [AccessFu] Report read only state for editables.r=eeejay
This commit is contained in:
Родитель
d577ecb4c1
Коммит
70c508c9eb
|
@ -596,6 +596,10 @@ this.UtteranceGenerator = { // jshint ignore:line
|
|||
aOutput.push({string: 'stateUnavailable'});
|
||||
}
|
||||
|
||||
if (aState.contains(States.READONLY)) {
|
||||
aOutput.push({string: 'stateReadonly'});
|
||||
}
|
||||
|
||||
// Don't utter this in Jelly Bean, we let TalkBack do it for us there.
|
||||
// This is because we expose the checked information on the node itself.
|
||||
// XXX: this means the checked state is always appended to the end,
|
||||
|
|
|
@ -232,6 +232,22 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=753984
|
|||
{"string": "entry"}]],
|
||||
expectedBraille: [[{"string": "entryAbbr"}, "I am required"],
|
||||
["I am required", {"string": "entryAbbr"}]]
|
||||
}, {
|
||||
// test unavailable state utterance on inputs
|
||||
accOrElmOrID: "readonlyInput",
|
||||
expectedUtterance: [[{"string": "stateReadonly"}, {"string": "entry"},
|
||||
"No edits"], ["No edits", {"string": "stateReadonly"},
|
||||
{"string": "entry"}]],
|
||||
expectedBraille: [[{"string": "entryAbbr"}, "No edits"],
|
||||
["No edits", {"string": "entryAbbr"}]]
|
||||
}, {
|
||||
// test unavailable state utterance on textareas
|
||||
accOrElmOrID: "readonlyTextarea",
|
||||
expectedUtterance: [[{"string": "stateReadonly"}, {"string": "textarea"},
|
||||
"No editing"], ["No editing", {"string": "stateReadonly"},
|
||||
{"string": "textarea"}]],
|
||||
expectedBraille: [[{"string": "textareaAbbr"}, "No editing"],
|
||||
["No editing", {"string": "textareaAbbr"}]]
|
||||
}, {
|
||||
// test has popup state utterance
|
||||
accOrElmOrID: "hasPopupButton",
|
||||
|
@ -486,6 +502,8 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=753984
|
|||
<button id="expandedButton" aria-expanded="true">I am expanded</button>
|
||||
<button id="collapsedButton" aria-expanded="false">I am collapsed</button>
|
||||
<input id="requiredInput" required placeholder="I am required" />
|
||||
<input id="readonlyInput" readonly value="No edits" />
|
||||
<textarea id="readonlyTextarea" readonly>No editing</textarea>
|
||||
<button id="hasPopupButton" aria-haspopup="true">I have a popup</button>
|
||||
<div role="tablist">
|
||||
<a id="tab1" href="#" role="tab" aria-selected="true">Account</a>
|
||||
|
|
|
@ -157,6 +157,7 @@ statePressed = pressed
|
|||
stateExpanded = expanded
|
||||
stateCollapsed = collapsed
|
||||
stateUnavailable = unavailable
|
||||
stateReadonly = readonly
|
||||
stateRequired = required
|
||||
stateTraversed = visited
|
||||
stateHasPopup = has pop up
|
||||
|
|
Загрузка…
Ссылка в новой задаче