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

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

Issue 2917123002: Support role description in automation/ChromeVox (Closed)
Patch Set: Rebase. Created 3 years, 6 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
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 f3c5b833956f0978d249d9f6bb566678151f407b..07ae9313656b5a7aee9b3b0b862f93c650e1a7f1 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/output_test.extjs
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/output_test.extjs
@@ -771,3 +771,19 @@ TEST_F('OutputE2ETest', 'RangeOutput', function() {
o);
});
});
+
+TEST_F('OutputE2ETest', 'RoleDescription', function() {
+ this.runWithLoadedTree(function(root) {/*!
+ <div aria-label="hi" role="button" aria-roledescription="foo"></div>
+ */}, function(root) {
+ var obj = root.find({role: RoleType.BUTTON});
+ var o = new Output().withSpeech(cursors.Range.fromNode(obj));
+ checkSpeechOutput('hi|foo',
+ [
+ {value: 'name', start: 0, end: 2},
+ {value: new Output.EarconAction('BUTTON'), start: 0, end: 2},
+ {value: 'role', start: 3, end: 6}
+ ],
+ o);
+ });
+});
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js ('k') | chrome/common/extensions/api/automation.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698