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

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

Issue 2067713002: Fix child index and child count to respect role filtering. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/chromevox/cvox2/background/output.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 e8f8475cbda6d72897e4793e480ee88d8862eab9..964bd33c9ce1bb0366ae0ccb6074e2a8749d9ae8 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs
@@ -870,3 +870,24 @@ TEST_F('BackgroundTest', 'ButtonNameValueDescription', function() {
.replay();
});
});
+
+TEST_F('BackgroundTest', 'OptionChildIndexCount', function() {
+ var mockFeedback = this.createMockFeedback();
+ this.runWithLoadedTree(function(root) {/*!
+ <div role="listbox">
+ <p>Fruits</p>
+ <div role="option">apple</div>
+ <div role="option">banana</div>
+ </div>
+ */}, function(root) {
+ mockFeedback.call(doCmd('nextObject'))
+ .expectSpeech('Fruits')
+ .expectSpeech('with 2 items')
+ .expectSpeech('apple')
+ .expectSpeech(' 1 of 2 ')
+ .call(doCmd('nextObject'))
+ .expectSpeech('banana')
+ .expectSpeech(' 2 of 2 ')
+ .replay();
+ });
+});
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698