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

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

Issue 2915753003: [Night Light] CL5: Schedule Settings (Closed)
Patch Set: Steven's comments Created 3 years, 6 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_localized_strings_provider.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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 }, 76 },
77 77
78 /** @override */ 78 /** @override */
79 setPreferredNoteTakingApp: function(appId) { 79 setPreferredNoteTakingApp: function(appId) {
80 this.setPreferredNoteTakingApp_ = appId; 80 this.setPreferredNoteTakingApp_ = appId;
81 }, 81 },
82 }; 82 };
83 83
84 function getFakePrefs() { 84 function getFakePrefs() {
85 return { 85 return {
86 ash: {
87 night_light: {
88 schedule_type: {
89 key: 'ash.night_light.schedule_type',
90 type: chrome.settingsPrivate.PrefType.NUMBER,
91 value: 0,
92 },
93 },
94 },
86 settings: { 95 settings: {
87 touchpad: { 96 touchpad: {
88 enable_tap_to_click: { 97 enable_tap_to_click: {
89 key: 'settings.touchpad.enable_tap_to_click', 98 key: 'settings.touchpad.enable_tap_to_click',
90 type: chrome.settingsPrivate.PrefType.BOOLEAN, 99 type: chrome.settingsPrivate.PrefType.BOOLEAN,
91 value: true, 100 value: true,
92 }, 101 },
93 enable_tap_dragging: { 102 enable_tap_dragging: {
94 key: 'settings.touchpad.enable_tap_dragging', 103 key: 'settings.touchpad.enable_tap_dragging',
95 type: chrome.settingsPrivate.PrefType.BOOLEAN, 104 type: chrome.settingsPrivate.PrefType.BOOLEAN,
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after
968 .value); 977 .value);
969 }); 978 });
970 }); 979 });
971 }); 980 });
972 }); 981 });
973 982
974 return { 983 return {
975 TestNames: TestNames 984 TestNames: TestNames
976 }; 985 };
977 }); 986 });
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698