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

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

Issue 2563173002: Fix issues with sending tts queue lots of utterances (Closed)
Patch Set: Fix issues with sending tts queue lots of utterances Created 4 years 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 | « no previous file | chrome/browser/resources/chromeos/chromevox/cvox2/background/live_regions.js » ('j') | 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 979 matching lines...) Expand 10 before | Expand all | Expand 10 after
990 </div> 990 </div>
991 */}, function(root) { 991 */}, function(root) {
992 var assertRangeHasText = function(text) { 992 var assertRangeHasText = function(text) {
993 return function() { 993 return function() {
994 assertEquals(text, 994 assertEquals(text,
995 ChromeVoxState.instance.getCurrentRange().start.node.name); 995 ChromeVoxState.instance.getCurrentRange().start.node.name);
996 }; 996 };
997 }; 997 };
998 998
999 mockFeedback.call(doCmd('nextEditText')) 999 mockFeedback.call(doCmd('nextEditText'))
1000 .expectSpeech('Top News') 1000 .expectSpeech('Top News Most Popular Sports')
1001 .call(doCmd('nextHeading')) 1001 .call(doCmd('nextHeading'))
1002 .expectSpeech('Top News') 1002 .expectSpeech('Top News')
1003 .call(assertRangeHasText('Top News')) 1003 .call(assertRangeHasText('Top News'))
1004 .call(doCmd('nextHeading')) 1004 .call(doCmd('nextHeading'))
1005 .expectSpeech('Most Popular') 1005 .expectSpeech('Most Popular')
1006 .call(assertRangeHasText('Most Popular')) 1006 .call(assertRangeHasText('Most Popular'))
1007 .call(doCmd('nextHeading')) 1007 .call(doCmd('nextHeading'))
1008 .expectSpeech('Sports') 1008 .expectSpeech('Sports')
1009 .call(assertRangeHasText('Sports')) 1009 .call(assertRangeHasText('Sports'))
1010 .replay(); 1010 .replay();
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
1220 .call(doCmd('nextWord')) 1220 .call(doCmd('nextWord'))
1221 .expectBraille(text, {startIndex: 5, endIndex: 7}) // is 1221 .expectBraille(text, {startIndex: 5, endIndex: 7}) // is
1222 .call(doCmd('previousWord')) 1222 .call(doCmd('previousWord'))
1223 .expectBraille(text, {startIndex: 0, endIndex: 4}) // This 1223 .expectBraille(text, {startIndex: 0, endIndex: 4}) // This
1224 .call(doCmd('nextLine')) 1224 .call(doCmd('nextLine'))
1225 // Ensure nothing is selected when the range covers the entire line. 1225 // Ensure nothing is selected when the range covers the entire line.
1226 .expectBraille('with a second line', {startIndex: -1, endIndex: -1}) 1226 .expectBraille('with a second line', {startIndex: -1, endIndex: -1})
1227 .replay(); 1227 .replay();
1228 }); 1228 });
1229 }); 1229 });
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/chromevox/cvox2/background/live_regions.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698