Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs |
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs |
index 0340e2590cc80ed2f5b052e1984cbce6d1b65286..e8f8475cbda6d72897e4793e480ee88d8862eab9 100644 |
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs |
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs |
@@ -857,3 +857,16 @@ TEST_F('BackgroundTest', 'DisappearingObject', function() { |
mockFeedback.replay(); |
}); |
}); |
+ |
+TEST_F('BackgroundTest', 'ButtonNameValueDescription', function() { |
+ var mockFeedback = this.createMockFeedback(); |
+ this.runWithLoadedTree(function(root) {/*! |
+ <input type="submit" aria-label="foo" value="foo"></input> |
+ */}, function(root) { |
+ var btn = root.find({role: RoleType.button}); |
+ mockFeedback.call(btn.focus.bind(btn)) |
+ .expectSpeech('foo') |
+ .expectSpeech('Button') |
+ .replay(); |
+ }); |
+}); |