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

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/testing/tester.js

Issue 1302763002: Add tests for braille commands. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@js2gtesterr
Patch Set: Document gn template args, rename extra_gen_files to gen_include_files Created 5 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
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 goog.provide('cvox.ChromeVoxTester'); 5 goog.provide('cvox.ChromeVoxTester');
6 6
7 goog.require('cvox.AbstractBraille');
8 goog.require('cvox.AbstractEarcons'); 7 goog.require('cvox.AbstractEarcons');
8 goog.require('cvox.BrailleInterface');
9 goog.require('cvox.ChromeVoxEventWatcher'); 9 goog.require('cvox.ChromeVoxEventWatcher');
10 goog.require('cvox.ChromeVoxUserCommands'); 10 goog.require('cvox.ChromeVoxUserCommands');
11 goog.require('cvox.LiveRegions'); 11 goog.require('cvox.LiveRegions');
12 goog.require('cvox.NavigationManager'); 12 goog.require('cvox.NavigationManager');
13 goog.require('cvox.NavigationShifter'); 13 goog.require('cvox.NavigationShifter');
14 goog.require('cvox.QueueMode'); 14 goog.require('cvox.QueueMode');
15 goog.require('cvox.TestHost'); 15 goog.require('cvox.TestHost');
16 goog.require('cvox.TestMathJax'); 16 goog.require('cvox.TestMathJax');
17 goog.require('cvox.TestMsgs'); 17 goog.require('cvox.TestMsgs');
18 goog.require('cvox.TestTts'); 18 goog.require('cvox.TestTts');
(...skipping 14 matching lines...) Expand all
33 cvox.ChromeVox.mathJax = new cvox.TestMathJax(); 33 cvox.ChromeVox.mathJax = new cvox.TestMathJax();
34 34
35 cvox.ChromeVox.navigationManager = new cvox.NavigationManager(); 35 cvox.ChromeVox.navigationManager = new cvox.NavigationManager();
36 cvox.ChromeVoxTester.testTts_ = new cvox.TestTts(); 36 cvox.ChromeVoxTester.testTts_ = new cvox.TestTts();
37 cvox.ChromeVox.tts = cvox.ChromeVoxTester.testTts_; 37 cvox.ChromeVox.tts = cvox.ChromeVoxTester.testTts_;
38 38
39 // TODO(deboer): Factor this out as 'TestEarcons' 39 // TODO(deboer): Factor this out as 'TestEarcons'
40 cvox.ChromeVox.earcons = new cvox.AbstractEarcons(); 40 cvox.ChromeVox.earcons = new cvox.AbstractEarcons();
41 cvox.ChromeVox.earcons.playEarcon = function(earcon) { }; 41 cvox.ChromeVox.earcons.playEarcon = function(earcon) { };
42 42
43 cvox.ChromeVox.braille = new cvox.AbstractBraille(); 43 cvox.ChromeVox.braille = new cvox.BrailleInterface();
44 cvox.ChromeVox.braille.write = function(params) {}; 44 cvox.ChromeVox.braille.write = function(params) {};
45 45
46 cvox.ChromeVox.msgs = new cvox.TestMsgs(); 46 cvox.ChromeVox.msgs = new cvox.TestMsgs();
47 47
48 cvox.ChromeVox.host = new cvox.TestHost(); 48 cvox.ChromeVox.host = new cvox.TestHost();
49 49
50 // Init LiveRegions with a date of 0 so that the initial delay before 50 // Init LiveRegions with a date of 0 so that the initial delay before
51 // things is spoken is skipped. 51 // things is spoken is skipped.
52 cvox.LiveRegions.init(new Date(0), cvox.QueueMode.QUEUE, false); 52 cvox.LiveRegions.init(new Date(0), cvox.QueueMode.QUEUE, false);
53 53
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 cvox.ChromeVox.navigationManager.sync(); 129 cvox.ChromeVox.navigationManager.sync();
130 }; 130 };
131 131
132 /** 132 /**
133 * Syncs to the first node in the test. 133 * Syncs to the first node in the test.
134 */ 134 */
135 cvox.ChromeVoxTester.syncToFirstNode = function() { 135 cvox.ChromeVoxTester.syncToFirstNode = function() {
136 cvox.ChromeVox.navigationManager.updateSel(cvox.CursorSelection.fromBody()); 136 cvox.ChromeVox.navigationManager.updateSel(cvox.CursorSelection.fromBody());
137 cvox.ChromeVox.navigationManager.sync(); 137 cvox.ChromeVox.navigationManager.sync();
138 }; 138 };
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/testing/mock_tts.js ('k') | chrome/test/base/js2gtest.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698