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

Side by Side Diff: chrome/test/data/chromeos/virtual_keyboard/virtual_keyboard_test_base.js

Issue 848843003: Add a --enable-gesture-typing flag. Currently this flag does nothing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add histogram enume ntry Created 5 years, 11 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 /* 1 /*
2 * Copyright 2013 The Chromium Authors. All rights reserved. 2 * Copyright 2013 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 /** 7 /**
8 * Set to true while debugging virtual keyboard tests, for verbose debug output. 8 * Set to true while debugging virtual keyboard tests, for verbose debug output.
9 */ 9 */
10 var debugging = false; 10 var debugging = false;
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 // hideKeyboard has one optional argument for error logging that does not 180 // hideKeyboard has one optional argument for error logging that does not
181 // matter for the purpose of validating the call. 181 // matter for the purpose of validating the call.
182 }; 182 };
183 183
184 // Set data to be provided to callbacks in response to API calls. 184 // Set data to be provided to callbacks in response to API calls.
185 // TODO(kevers): Provide mechanism to override these values for individual 185 // TODO(kevers): Provide mechanism to override these values for individual
186 // tests as needed. 186 // tests as needed.
187 chrome.virtualKeyboardPrivate.getKeyboardConfig.setCallbackData({ 187 chrome.virtualKeyboardPrivate.getKeyboardConfig.setCallbackData({
188 layout: 'qwerty', 188 layout: 'qwerty',
189 a11ymode: false, 189 a11ymode: false,
190 experimental: false 190 experimental: false,
191 gesturetyping: false,
191 }); 192 });
192 193
193 chrome.inputMethodPrivate.getCurrentInputMethod.setCallbackData('us:en'); 194 chrome.inputMethodPrivate.getCurrentInputMethod.setCallbackData('us:en');
194 195
195 // Set an empty list. Tests that care about input methods in the menu will 196 // Set an empty list. Tests that care about input methods in the menu will
196 // need to call this again with their own list of input methods. 197 // need to call this again with their own list of input methods.
197 chrome.inputMethodPrivate.getInputMethods.setCallbackData([]); 198 chrome.inputMethodPrivate.getInputMethods.setCallbackData([]);
198 199
199 chrome.runtime.getBackgroundPage.setCallbackData(undefined); 200 chrome.runtime.getBackgroundPage.setCallbackData(undefined);
200 201
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 assertTrue(!!switchKey, 'Unable to find symbol transition key'); 427 assertTrue(!!switchKey, 'Unable to find symbol transition key');
427 // Switch to symbol keyset. 428 // Switch to symbol keyset.
428 mockTap(switchKey); 429 mockTap(switchKey);
429 } else { 430 } else {
430 var switchKey = findKey('~[<', 'row3'); 431 var switchKey = findKey('~[<', 'row3');
431 assertTrue(!!switchKey, 'Unable to find more transition key'); 432 assertTrue(!!switchKey, 'Unable to find more transition key');
432 // Switch to more keyset. 433 // Switch to more keyset.
433 mockTap(switchKey); 434 mockTap(switchKey);
434 } 435 }
435 } 436 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698