Commit c450c3c9 authored by David Tseng's avatar David Tseng Committed by Commit Bot

Respect names on lists

Bug: 876571
Change-Id: I18523d2928c203026761b8eefdc2bcd2f939f4f1
Reviewed-on: https://chromium-review.googlesource.com/1251468Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
Commit-Queue: David Tseng <dtseng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#595245}
parent 547d9df6
......@@ -1761,3 +1761,18 @@ TEST_F('BackgroundTest', 'TabSwitchAndRefreshRecovery', function() {
});
});
});
TEST_F('BackgroundTest', 'ListName', function() {
var mockFeedback = this.createMockFeedback();
this.runWithLoadedTree(function() {/*
<div id="_md-chips-wrapper-76" tabindex="-1" class="md-chips md-readonly" aria-setsize="4" aria-label="Favorite Sports" role="list" aria-describedby="chipsNote">
<div role="listitem">Baseball</div>
<div role="listitem">Hockey</div>
<div role="listitem">Lacrosse</div>
<div role="listitem">Football</div>
</div>
*/}, function(root) {
mockFeedback.expectSpeech('Favorite Sports')
.replay();
});
});
......@@ -459,8 +459,8 @@ Output.RULES = {
},
list: {
enter: `$role @@list_with_items($countChildren(listItem))`,
speak: `$descendants $role @@list_with_items($countChildren(listItem))
$description $state`
speak: `$nameFromNode $descendants $role
@@list_with_items($countChildren(listItem)) $description $state`
},
listBox: {
enter: `$nameFromNode
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment