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

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

Issue 2917123002: Support role description in automation/ChromeVox (Closed)
Patch Set: Changes to c/c/e/a/PRESUBMIT.py 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 34c56220f68c18acf78a554d2db29e4a12134357..bfc17a97de273f362c08ebf007b34d4d73de86cb 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/output_test.extjs
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/output_test.extjs
@@ -772,3 +772,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);
+ });
+});

Powered by Google App Engine
This is Rietveld 408576698