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

Side by Side Diff: chrome/test/data/extensions/api_test/input_method/background.js

Issue 22980018: Disable non Latin keyboard layout on Lock screen and Sign-in screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test case. Created 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_browser_chromeos.gypi ('k') | chromeos/ime/component_extension_ime_manager.cc » ('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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 var kNewInputMethod = "ru::rus"; 5 var kNewInputMethod = "fr::fra";
6 6
7 function setAndGetTest() { 7 function setAndGetTest() {
8 console.log('Changing input method to: ' + kNewInputMethod); 8 console.log('Changing input method to: ' + kNewInputMethod);
9 chrome.test.sendMessage('setInputMethod:' + kNewInputMethod, 9 chrome.test.sendMessage('setInputMethod:' + kNewInputMethod,
10 function (response) { 10 function (response) {
11 chrome.test.assertEq('done', response); 11 chrome.test.assertEq('done', response);
12 console.log('Getting current input method.'); 12 console.log('Getting current input method.');
13 chrome.inputMethodPrivate.get(function (inputMethod) { 13 chrome.inputMethodPrivate.get(function (inputMethod) {
14 chrome.test.assertEq(inputMethod, kNewInputMethod); 14 chrome.test.assertEq(inputMethod, kNewInputMethod);
15 chrome.test.succeed(); 15 chrome.test.succeed();
(...skipping 12 matching lines...) Expand all
28 ); 28 );
29 console.log('Changing input method to: ' + kNewInputMethod); 29 console.log('Changing input method to: ' + kNewInputMethod);
30 chrome.test.sendMessage('setInputMethod:' + kNewInputMethod, 30 chrome.test.sendMessage('setInputMethod:' + kNewInputMethod,
31 function (response) { 31 function (response) {
32 chrome.test.assertEq('done', response); 32 chrome.test.assertEq('done', response);
33 } 33 }
34 ); 34 );
35 } 35 }
36 36
37 chrome.test.runTests([setAndGetTest, setAndObserveTest]); 37 chrome.test.runTests([setAndGetTest, setAndObserveTest]);
OLDNEW
« no previous file with comments | « chrome/chrome_browser_chromeos.gypi ('k') | chromeos/ime/component_extension_ime_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698