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

Side by Side Diff: chrome/test/data/webui/settings/fake_input_method_private.js

Issue 2827553002: MD Settings: Use a browser proxy from the languages page. Re-enable test. (Closed)
Patch Set: Remove accidental usage of getInputMethodPrivate() on non-Cros Created 3 years, 8 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 /**
6 * @fileoverview Fake implementation of chrome.inputMethodPrivate
7 * for testing.
8 */
9 cr.define('settings', function() {
10 /**
11 * Fake of the chrome.inputMethodsPrivate API. Only methods that are called
12 * during testing have been implemented.
13 *
14 * @constructor
15 * @implements {InputMethodPrivate}
16 */
17 function FakeInputMethodPrivate() {}
18
19 FakeInputMethodPrivate.prototype = {
20 getCurrentInputMethod: function(callback) {
21 callback(null);
22 },
23
24 get onChanged() {
25 return {
26 addListener: function() {
27 // Nothing to do here.
28 },
29 removeListener: function() {
30 // Nothing to do here.
31 },
32 };
33 },
34 };
35
36 return {FakeInputMethodPrivate: FakeInputMethodPrivate};
37 });
OLDNEW
« no previous file with comments | « chrome/test/data/webui/settings/cr_settings_browsertest.js ('k') | chrome/test/data/webui/settings/languages_tests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698