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

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

Issue 2092743002: Revert of Make ChromeVox Next a setting in options page. (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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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
11 /** 11 /**
12 * Test fixture for editing tests. 12 * Test fixture for editing tests.
13 * @constructor 13 * @constructor
14 * @extends {ChromeVoxNextE2ETest} 14 * @extends {ChromeVoxNextE2ETest}
15 */ 15 */
16 function EditingTest() { 16 function EditingTest() {
17 ChromeVoxNextE2ETest.call(this); 17 ChromeVoxNextE2ETest.call(this);
18 window.RoleType = chrome.automation.RoleType; 18 window.RoleType = chrome.automation.RoleType;
19 } 19 }
20 20
21 EditingTest.prototype = { 21 EditingTest.prototype = {
22 __proto__: ChromeVoxNextE2ETest.prototype, 22 __proto__: ChromeVoxNextE2ETest.prototype,
23 23
24 /** @override */ 24 /** @override */
25 setUp: function() { 25 setUp: function() {
26 ChromeVoxState.instance.toggleNext(true); 26 global.backgroundObj.forceChromeVoxNextActive();
27 }, 27 },
28 28
29 /** 29 /**
30 * @return {!MockFeedback} 30 * @return {!MockFeedback}
31 */ 31 */
32 createMockFeedback: function() { 32 createMockFeedback: function() {
33 var mockFeedback = new MockFeedback(this.newCallback(), 33 var mockFeedback = new MockFeedback(this.newCallback(),
34 this.newCallback.bind(this)); 34 this.newCallback.bind(this));
35 mockFeedback.install(); 35 mockFeedback.install();
36 return mockFeedback; 36 return mockFeedback;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 mockFeedback 129 mockFeedback
130 .expectSpeech('text1', 'Edit text') 130 .expectSpeech('text1', 'Edit text')
131 .expectBraille('text1 ed', {startIndex: 0, endIndex: 0}) 131 .expectBraille('text1 ed', {startIndex: 0, endIndex: 0})
132 .call(input.setSelection.bind(input, 5, 5)) 132 .call(input.setSelection.bind(input, 5, 5))
133 .expectBraille('text2 ed', {startIndex: 5, endIndex: 5}) 133 .expectBraille('text2 ed', {startIndex: 5, endIndex: 5})
134 .expectSpeech('text2'); 134 .expectSpeech('text2');
135 135
136 mockFeedback.replay(); 136 mockFeedback.replay();
137 }); 137 });
138 }); 138 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698