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

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

Issue 2028173003: Refine ChromeVox's treatment of containers (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
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 676ccd60d54122beef758373f0b33b61bb48ce3e..51831de53d2a88eb0663b028c4bbcecd260e2092 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background_test.extjs
@@ -773,3 +773,33 @@ TEST_F('BackgroundTest', 'EditText', function() {
.replay();
});
});
+
+TEST_F('BackgroundTest', 'BackwardForwardSync', function() {
+ var mockFeedback = this.createMockFeedback();
+ this.runWithLoadedTree(function() {/*!
+ <div role="group" tabindex=0><input type="text"></input></div>
+ <ul>
+ <li tabindex=0>
+ <button>ok</button>
+ </li>
+ </ul>
+ */}, function(root) {
+ var listItem = root.find({role: RoleType.listItem});
+
+ mockFeedback.call(listItem.focus.bind(listItem))
+ .expectSpeech('List item')
+ .call(this.doCmd('nextObject'))
+ .expectSpeech('•')
+ .call(this.doCmd('previousObject'))
+ .expectSpeech('List item')
+ .call(this.doCmd('nextObject'))
+ .expectSpeech('•')
+ .call(this.doCmd('previousObject'))
+ .expectSpeech('List item')
+ .call(this.doCmd('previousObject'))
+ .expectSpeech('Edit text')
+ .call(this.doCmd('previousObject'))
+ .expectSpeech('Group')
+ .replay();
+ });
+});

Powered by Google App Engine
This is Rietveld 408576698