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

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

Issue 2273373002: Ensure focus() gets called when navigating to text fields (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Include test fixture. 5 // Include test fixture.
6 GEN_INCLUDE(['../../testing/chromevox_next_e2e_test_base.js', 6 GEN_INCLUDE(['../../testing/chromevox_next_e2e_test_base.js',
7 '../../testing/assert_additions.js']); 7 '../../testing/assert_additions.js']);
8 8
9 GEN_INCLUDE(['../../testing/mock_feedback.js']); 9 GEN_INCLUDE(['../../testing/mock_feedback.js']);
10 10
(...skipping 1136 matching lines...) Expand 10 before | Expand all | Expand 10 after
1147 .expectSpeech('this is a test') 1147 .expectSpeech('this is a test')
1148 .call(doCmd('nextObject')) 1148 .call(doCmd('nextObject'))
1149 .expectSpeech(/data*/) 1149 .expectSpeech(/data*/)
1150 .call(doCmd('nextObject')) 1150 .call(doCmd('nextObject'))
1151 .expectSpeech('this is a test') 1151 .expectSpeech('this is a test')
1152 .call(doCmd('nextWord')) 1152 .call(doCmd('nextWord'))
1153 .expectSpeech('is', 'selected') 1153 .expectSpeech('is', 'selected')
1154 .replay(); 1154 .replay();
1155 }); 1155 });
1156 }); 1156 });
1157
1158 TEST_F('BackgroundTest', 'NavigationMovesFocus', function() {
1159 this.runWithLoadedTree(function(root) {/*!
1160 <p>start</p>
1161 <input type="text"></input>
1162 */}, function(root) {
1163 this.listenOnce(root, 'focus', function(e) {
1164 var focus = ChromeVoxState.instance.currentRange.start.node;
1165 assertEquals(RoleType.textField, focus.role);
1166 assertTrue(focus.state.focused);
1167 });
1168 doCmd('nextEditText')();
1169 });
1170 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698