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

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

Issue 1977853003: Only read out selected node in processing menuListItemSelected event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5b1b4572056ebb66c4f0f587998c0742f0f54d19..4bac9dc6c2815debeec070ae676c6e2d73e8d76c 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs
@@ -630,3 +630,27 @@ TEST_F('BackgroundTest', 'DISABLED_ForwardNavigationThroughIframes', function()
});
});
});
+
+TEST_F('BackgroundTest', 'SelectOptionSelected', function() {
+ var mockFeedback = this.createMockFeedback();
+ this.runWithLoadedTree(function() {/*!
+ <select>
+ <option>apple
+ <option>banana
+ <option>grapefruit
+ </select>
+ */}, function(root) {
+ var select = root.find({role: 'popUpButton'});
+ var clickSelect = select.doDefault.bind(select);
+ var lastOption = select.lastChild.lastChild;
+ var selectLastOption = lastOption.doDefault.bind(lastOption);
+
+ mockFeedback.call(clickSelect)
+ .expectSpeech('apple')
+ .expectSpeech('Button')
+ .call(selectLastOption)
+ .expectNextSpeechUtteranceIsNot('apple')
+ .expectSpeech('grapefruit')
+ .replay();
+ });
+});
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698