зеркало из https://github.com/mozilla/gecko-dev.git
Bug 520188 - make msaa role map conform for aria directory and marquee. r=surkov,MarcoZ
This commit is contained in:
Родитель
fe3928becb
Коммит
e2c4cb671f
|
@ -146,6 +146,15 @@ nsRoleMapEntry nsARIAMap::gWAIRoleMap[] =
|
|||
eNoLiveAttr,
|
||||
kNoReqStates
|
||||
},
|
||||
{
|
||||
"directory",
|
||||
nsIAccessibleRole::ROLE_LIST,
|
||||
kUseMapRole,
|
||||
eNoValue,
|
||||
eNoAction,
|
||||
eNoLiveAttr,
|
||||
kNoReqStates
|
||||
},
|
||||
{
|
||||
"document",
|
||||
nsIAccessibleRole::ROLE_DOCUMENT,
|
||||
|
@ -265,8 +274,8 @@ nsRoleMapEntry nsARIAMap::gWAIRoleMap[] =
|
|||
},
|
||||
{
|
||||
"marquee",
|
||||
nsIAccessibleRole::ROLE_NOTHING,
|
||||
kUseNativeRole,
|
||||
nsIAccessibleRole::ROLE_ANIMATION,
|
||||
kUseMapRole,
|
||||
eNoValue,
|
||||
eNoAction,
|
||||
eOffLiveAttr,
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Role constants
|
||||
|
||||
const ROLE_ALERT = nsIAccessibleRole.ROLE_ALERT;
|
||||
const ROLE_ANIMATION = nsIAccessibleRole.ROLE_ANIMATION;
|
||||
const ROLE_APPLICATION = nsIAccessibleRole.ROLE_APPLICATION;
|
||||
const ROLE_APP_ROOT = nsIAccessibleRole.ROLE_APP_ROOT;
|
||||
const ROLE_AUTOCOMPLETE = nsIAccessibleRole.ROLE_AUTOCOMPLETE;
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
<!--
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=481114
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=469688
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=520188
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=529289
|
||||
-->
|
||||
<head>
|
||||
|
@ -29,9 +30,11 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=529289
|
|||
|
||||
// weak roles that are forms of "live regions"
|
||||
testRole("log_table", ROLE_TABLE);
|
||||
testRole("marquee_h1", ROLE_HEADING);
|
||||
testRole("timer_div", ROLE_SECTION);
|
||||
|
||||
// other roles that are forms of "live regions"
|
||||
testRole("marquee_h1", ROLE_ANIMATION);
|
||||
|
||||
// strong landmark
|
||||
testRole("application", ROLE_APPLICATION);
|
||||
|
||||
|
@ -64,8 +67,10 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=529289
|
|||
for (a in abstract_roles)
|
||||
testRole(abstract_roles[a], ROLE_SECTION);
|
||||
|
||||
// aria scrollbar
|
||||
// misc roles
|
||||
testRole("scrollbar", ROLE_SCROLLBAR);
|
||||
testRole("dir", ROLE_LIST);
|
||||
|
||||
SimpleTest.finish();
|
||||
}
|
||||
|
||||
|
@ -77,6 +82,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=529289
|
|||
|
||||
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=481114">Mozilla Bug 481114</a>
|
||||
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=469688">Mozilla Bug 469688</a>
|
||||
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=469688">Mozilla Bug 520188</a>
|
||||
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=529289">Mozilla Bug 529289</a>
|
||||
</a>
|
||||
<p id="display"></p>
|
||||
|
@ -139,7 +145,13 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=529289
|
|||
<div role="section" id="section">section</div>
|
||||
<div role="sectionhead" id="sectionhead">sectionhead</div>
|
||||
|
||||
<!-- aria scrollbar -->
|
||||
<!-- misc roles -->
|
||||
<div role="scrollbar" id="scrollbar">scrollbar</div>
|
||||
|
||||
<div id="dir" role="directory">
|
||||
<div role="listitem">A</div>
|
||||
<div role="listitem">B</div>
|
||||
<div role="listitem">C</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Загрузка…
Ссылка в новой задаче