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

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

Issue 2387413002: Improve speech contextual announcements and startCallback synchronization (Closed)
Patch Set: Disable test; it lonly works if you have Google tts installed locally. Created 4 years, 2 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
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 10 matching lines...) Expand all
21 __proto__: ChromeVoxNextE2ETest.prototype, 21 __proto__: ChromeVoxNextE2ETest.prototype,
22 22
23 /** @override */ 23 /** @override */
24 setUp: function() { 24 setUp: function() {
25 ChromeVoxState.instance.toggleNext(true); 25 ChromeVoxState.instance.toggleNext(true);
26 window.RoleType = chrome.automation.RoleType; 26 window.RoleType = chrome.automation.RoleType;
27 window.doCmd = this.doCmd; 27 window.doCmd = this.doCmd;
28 28
29 // Reset notifications so only explicit mode changes can cause them to trigg er. 29 // Reset notifications so only explicit mode changes can cause them to trigg er.
30 Notifications.reset(); 30 Notifications.reset();
31 this.forceContextualLastOutput();
31 }, 32 },
32 33
33 /** 34 /**
34 * @return {!MockFeedback} 35 * @return {!MockFeedback}
35 */ 36 */
36 createMockFeedback: function() { 37 createMockFeedback: function() {
37 var mockFeedback = new MockFeedback(this.newCallback(), 38 var mockFeedback = new MockFeedback(this.newCallback(),
38 this.newCallback.bind(this)); 39 this.newCallback.bind(this));
39 mockFeedback.install(); 40 mockFeedback.install();
40 return mockFeedback; 41 return mockFeedback;
(...skipping 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after
1158 <input type="text"></input> 1159 <input type="text"></input>
1159 */}, function(root) { 1160 */}, function(root) {
1160 this.listenOnce(root, 'focus', function(e) { 1161 this.listenOnce(root, 'focus', function(e) {
1161 var focus = ChromeVoxState.instance.currentRange.start.node; 1162 var focus = ChromeVoxState.instance.currentRange.start.node;
1162 assertEquals(RoleType.textField, focus.role); 1163 assertEquals(RoleType.textField, focus.role);
1163 assertTrue(focus.state.focused); 1164 assertTrue(focus.state.focused);
1164 }); 1165 });
1165 doCmd('nextEditText')(); 1166 doCmd('nextEditText')();
1166 }); 1167 });
1167 }); 1168 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698