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

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

Issue 2644713002: cros: Use runtime stylus detection for ash palette. (Closed)
Patch Set: Fix test Created 3 years, 10 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
« no previous file with comments | « chrome/browser/ui/webui/settings/md_settings_ui.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 cr.define('device_page_tests', function() { 5 cr.define('device_page_tests', function() {
6 /** @enum {string} */ 6 /** @enum {string} */
7 var TestNames = { 7 var TestNames = {
8 DevicePage: 'device page', 8 DevicePage: 'device page',
9 Display: 'display', 9 Display: 'display',
10 Keyboard: 'keyboard', 10 Keyboard: 'keyboard',
(...skipping 15 matching lines...) Expand all
26 } 26 }
27 27
28 TestDevicePageBrowserProxy.prototype = { 28 TestDevicePageBrowserProxy.prototype = {
29 /** override */ 29 /** override */
30 initializePointers: function() { 30 initializePointers: function() {
31 // Enable mouse and touchpad. 31 // Enable mouse and touchpad.
32 cr.webUIListenerCallback('has-mouse-changed', true); 32 cr.webUIListenerCallback('has-mouse-changed', true);
33 cr.webUIListenerCallback('has-touchpad-changed', true); 33 cr.webUIListenerCallback('has-touchpad-changed', true);
34 }, 34 },
35 35
36 /** override */
37 initializeStylus: function() {
38 // Enable stylus.
39 cr.webUIListenerCallback('has-stylus-changed', true);
40 },
41
36 /** @override */ 42 /** @override */
37 handleLinkEvent: function(e) { 43 handleLinkEvent: function(e) {
38 settings.DevicePageBrowserProxyImpl.prototype.handleLinkEvent.call( 44 settings.DevicePageBrowserProxyImpl.prototype.handleLinkEvent.call(
39 this, e); 45 this, e);
40 // Prevent opening the link, which can block the test. 46 // Prevent opening the link, which can block the test.
41 e.preventDefault(); 47 e.preventDefault();
42 }, 48 },
43 49
44 /** override */ 50 /** override */
45 initializeKeyboard: function() {}, 51 initializeKeyboard: function() {},
(...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after
836 assert(waitingDiv.hidden); 842 assert(waitingDiv.hidden);
837 assert(!selectAppDiv.hidden); 843 assert(!selectAppDiv.hidden);
838 }); 844 });
839 }); 845 });
840 }); 846 });
841 847
842 return { 848 return {
843 TestNames: TestNames 849 TestNames: TestNames
844 }; 850 };
845 }); 851 });
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/settings/md_settings_ui.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698