Bug 1179284 - using explicit label for accessible with role 'status' instead of subtree. r=eeejay

---
 accessible/jsat/OutputGenerator.jsm              | 3 ++-
 accessible/tests/mochitest/jsat/test_output.html | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
This commit is contained in:
Yura Zenevich 2015-07-06 14:38:35 -04:00
parent fd71e66b19
commit 9faabadda5
2 changed files with 3 additions and 2 deletions

View File

@ -300,7 +300,8 @@ let OutputGenerator = {
'definitionlist': INCLUDE_DESC | INCLUDE_NAME,
'dialog': INCLUDE_DESC | INCLUDE_NAME,
'chrome window': IGNORE_EXPLICIT_NAME,
'app root': IGNORE_EXPLICIT_NAME },
'app root': IGNORE_EXPLICIT_NAME,
'statusbar': NAME_FROM_SUBTREE_RULE },
objectOutputFunctions: {
_generateBaseOutput:

View File

@ -659,7 +659,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=753984
<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 aria-label="Last sync: 30min ago" id="statusbar-2" role="status">I should be ignored</div>
<span id="switch-1" role="switch" aria-label="Simple switch" aria-checked="true"></span>
<span id="switch-2" role="switch" aria-label="Another switch" aria-checked="false"></span>
</div>