Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3404)

Unified Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/output_test.extjs

Issue 1866043004: Add a nameFromNode attrib to link output rule (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 89b6d2b6f303872b2241a5e686446cd63ce3c2eb..79ae25315911a4a6d535adf96d82e7a62fcd9070 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/output_test.extjs
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/output_test.extjs
@@ -456,9 +456,9 @@ TEST_F('OutputE2ETest', 'ListBox', function() {
var o = new Output().withSpeechAndBraille(range, null, 'navigate');
assertEqualsJSON({string_: '1|List item| 1 of 2 ||List box|with 2 items',
spans_:
- [{value: {earconId: 'LIST_ITEM'}, start: 0,end: 1},
- {value: 'name', start: 21, end: 21},
- {value: {earconId: 'LISTBOX'}, start: 21, end: 21},
+ [{value: 'name', start: 0,end: 1},
+ {value: {earconId: 'LIST_ITEM'}, start: 0,end: 1},
+ {value: 'nameFromNode', start: 21, end: 21},
{value: 'role', start: 22, end: 30}]}, o.speechOutputForTest);
checkBrailleOutput(
'1 lstitm 1/2 lstbx +2',
@@ -508,7 +508,8 @@ TEST_F('OutputE2ETest', 'DivOmitsRole', function() {
var o = new Output().withSpeechAndBraille(range, null, 'navigate');
assertEqualsJSON({string_: 'that has content|',
spans_: [
- {value: 'name', start: 17, end: 17}
+ {value: 'name', start: 0, end: 16},
+ {value: 'nameFromNode', start: 17, end: 17}
]}, o.speechOutputForTest);
checkBrailleOutput(
'that has content',
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698