| OLD | NEW | 
|---|
| 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  Loading... | 
| 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  Loading... | 
| 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 }); | 
| OLD | NEW | 
|---|