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

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

Issue 2487043002: Refine braille output (Closed)
Patch Set: Refine braille output Created 4 years, 1 month 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 .expectSpeech('foxtraut', 'Heading 2') 155 .expectSpeech('foxtraut', 'Heading 2')
156 .expectBraille('foxtraut h2'); 156 .expectBraille('foxtraut h2');
157 mockFeedback.call(doCmd('nextObject')) 157 mockFeedback.call(doCmd('nextObject'))
158 .expectSpeech('end') 158 .expectSpeech('end')
159 .expectBraille('end'); 159 .expectBraille('end');
160 mockFeedback.call(doCmd('previousObject')) 160 mockFeedback.call(doCmd('previousObject'))
161 .expectSpeech('foxtraut', 'Heading 2') 161 .expectSpeech('foxtraut', 'Heading 2')
162 .expectBraille('foxtraut h2'); 162 .expectBraille('foxtraut h2');
163 mockFeedback.call(doCmd('nextLine')) 163 mockFeedback.call(doCmd('nextLine'))
164 .expectSpeech('end', 'of test') 164 .expectSpeech('end', 'of test')
165 .expectBraille('end of test'); 165 .expectBraille('endof test');
dmazzoni 2016/11/10 01:31:12 This looks like a bug
166 166
167 mockFeedback.call(doCmd('jumpToTop')) 167 mockFeedback.call(doCmd('jumpToTop'))
168 .expectSpeech('start') 168 .expectSpeech('start')
169 .expectBraille('start'); 169 .expectBraille('start');
170 mockFeedback.call(doCmd('jumpToBottom')) 170 mockFeedback.call(doCmd('jumpToBottom'))
171 .expectSpeech('of test') 171 .expectSpeech('of test')
172 .expectBraille('of test'); 172 .expectBraille('of test');
173 173
174 mockFeedback.replay(); 174 mockFeedback.replay();
175 }); 175 });
(...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after
1199 <input type="text"></input> 1199 <input type="text"></input>
1200 */}, function(root) { 1200 */}, function(root) {
1201 this.listenOnce(root, 'focus', function(e) { 1201 this.listenOnce(root, 'focus', function(e) {
1202 var focus = ChromeVoxState.instance.currentRange.start.node; 1202 var focus = ChromeVoxState.instance.currentRange.start.node;
1203 assertEquals(RoleType.textField, focus.role); 1203 assertEquals(RoleType.textField, focus.role);
1204 assertTrue(focus.state.focused); 1204 assertTrue(focus.state.focused);
1205 }); 1205 });
1206 doCmd('nextEditText')(); 1206 doCmd('nextEditText')();
1207 }); 1207 });
1208 }); 1208 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698