зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1000295 - added elements with role='status' to traversal rules. r=eeejay
--- accessible/jsat/TraversalRules.jsm | 4 +++- accessible/tests/mochitest/jsat/doc_traversal.html | 2 ++ accessible/tests/mochitest/jsat/test_output.html | 13 +++++++++++++ accessible/tests/mochitest/jsat/test_traversal.html | 2 +- 4 files changed, 19 insertions(+), 2 deletions(-)
This commit is contained in:
Родитель
91c6369989
Коммит
cd9e52e4dd
|
@ -102,7 +102,8 @@ var gSimpleTraversalRoles =
|
|||
Roles.LISTITEM,
|
||||
Roles.GRID_CELL,
|
||||
Roles.COLUMNHEADER,
|
||||
Roles.ROWHEADER];
|
||||
Roles.ROWHEADER,
|
||||
Roles.STATUSBAR];
|
||||
|
||||
var gSimpleMatchFunc = function gSimpleMatchFunc(aAccessible) {
|
||||
// An object is simple, if it either has a single child lineage,
|
||||
|
@ -151,6 +152,7 @@ var gSimpleMatchFunc = function gSimpleMatchFunc(aAccessible) {
|
|||
case Roles.HEADING:
|
||||
case Roles.COLUMNHEADER:
|
||||
case Roles.ROWHEADER:
|
||||
case Roles.STATUSBAR:
|
||||
if ((aAccessible.childCount > 0 || aAccessible.name) &&
|
||||
(isSingleLineage(aAccessible) || isFlatSubtree(aAccessible))) {
|
||||
return Filters.MATCH | Filters.IGNORE_SUBTREE;
|
||||
|
|
|
@ -141,5 +141,7 @@
|
|||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div id="statusbar-1" role="status">Last sync:<span>2 days ago</span></div>
|
||||
<div aria-label="Last sync: 30min ago" id="statusbar-2" role="status"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -477,6 +477,17 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=753984
|
|||
{"string": "stateHasPopup"}, {"string": "combobox"}]],
|
||||
expectedBraille: [[{"string": "comboboxAbbr"}, "Never", "Intervals"],
|
||||
["Intervals", "Never", {"string": "comboboxAbbr"}]]
|
||||
}, {
|
||||
accOrElmOrID: "statusbar-1",
|
||||
expectedUtterance: [["Last sync:", "2 days ago"],
|
||||
["Last sync:", "2 days ago"]],
|
||||
expectedBraille: [["Last sync:", "2 days ago"],
|
||||
["Last sync:", "2 days ago"]]
|
||||
}, {
|
||||
accOrElmOrID: "statusbar-2",
|
||||
expectedUtterance: [["Last sync: 30min ago"],
|
||||
["Last sync: 30min ago"]],
|
||||
expectedBraille: [["Last sync: 30min ago"], ["Last sync: 30min ago"]]
|
||||
}];
|
||||
|
||||
// Test all possible utterance order preference values.
|
||||
|
@ -632,6 +643,8 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=753984
|
|||
<option value="30">Every 30 min</option>
|
||||
<option value="null" selected>Never</option>
|
||||
</select>
|
||||
<div id="statusbar-1" role="status">Last sync:<span>2 days ago</span></div>
|
||||
<div aria-label="Last sync: 30min ago" id="statusbar-2" role="status"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -122,7 +122,7 @@
|
|||
'1', 'Sunday', 'M', 'Week 1', '3', '4', '7', '2',
|
||||
'5 8', 'gridcell4', 'Just an innocuous separator',
|
||||
'Dirty Words', 'Meaning', 'Mud', 'Wet Dirt',
|
||||
'Dirt', 'Messy Stuff']);
|
||||
'Dirt', 'Messy Stuff', 'statusbar-1', 'statusbar-2']);
|
||||
|
||||
gQueue.invoke();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче