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); |
+ }); |
+}); |