Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/output_test.extjs |
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/output_test.extjs b/chrome/browser/resources/chromeos/chromevox/cvox2/background/output_test.extjs |
index 176ed77ec799c3629bf2b4cb9d45768ee2cd8b8f..31b154c7d735709081b472ed96214be03fe462d3 100644 |
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/output_test.extjs |
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/output_test.extjs |
@@ -354,24 +354,25 @@ TEST_F('OutputE2ETest', 'Input', function() { |
TEST_F('OutputE2ETest', 'List', function() { |
this.runWithLoadedTree( |
- '<ul><li>a<li>b<li>c</ul>', |
+ '<ul><li aria-label="a">a<li>b<li>c</ul>', |
function(root) { |
var el = root.firstChild.firstChild; |
var range = cursors.Range.fromNode(el); |
var o = new Output().withSpeechAndBraille(range, null, 'navigate'); |
checkSpeechOutput('a|List item|list|with 3 items', |
[ |
- {value: 'name', start: 0, end: 1}, |
- {value: new Output.EarconAction('LIST_ITEM'), start: 0, end: 1}, |
- {value: 'role', start: 12, end: 16} |
+ { value: 'nameOrDescendants', start: 0, end: 1 }, |
+ { value: 'role', start: 12, end: 16 } |
David Tseng
2017/05/17 18:20:46
What happened to the earcon?
|
], |
o); |
// TODO(plundblad): This output is wrong. Add special handling for |
// braille here. |
checkBrailleOutput( |
'a lstitm list +3', |
- [{value: new Output.NodeSpan(el), start: 0, end: 8}, |
- {value: new Output.NodeSpan(el.parent), start: 9, end: 16}], |
+ [ |
+ {value: new Output.NodeSpan(el), start: 0, end: 8}, |
+ {value: new Output.NodeSpan(el.parent), start: 9, end: 16} |
+ ], |
o); |
}); |
}); |
@@ -649,7 +650,7 @@ TEST_F('OutputE2ETest', 'ComplexDiv', function() { |
<div><button>ok</button></div> |
*/}, |
function(root) { |
- var div = root.find({role: 'div'}); |
+ var div = root.find({role: 'genericContainer'}); |
var o = new Output().withSpeech(cursors.Range.fromNode(div)); |
assertEquals('ok', o.speechOutputForTest.string_); |
}); |