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 /** @fileoverview Suite of tests for Easy Unlock within People section. */ | 5 /** @fileoverview Suite of tests for Easy Unlock within People section. */ |
6 | 6 |
7 GEN_INCLUDE(['settings_page_browsertest.js']); | 7 GEN_INCLUDE(['settings_page_browsertest.js']); |
8 | 8 |
9 /** | 9 /** |
10 * @constructor | 10 * @constructor |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 /** @type {?TestEasyUnlockBrowserProxy} */ | 105 /** @type {?TestEasyUnlockBrowserProxy} */ |
106 var browserProxy = null; | 106 var browserProxy = null; |
107 | 107 |
108 /** @type {?CrSettingsPrefs} */ | 108 /** @type {?CrSettingsPrefs} */ |
109 var prefs = null; | 109 var prefs = null; |
110 | 110 |
111 var self = this; | 111 var self = this; |
112 | 112 |
113 suite('SettingsEasyUnlock', function() { | 113 suite('SettingsEasyUnlock', function() { |
114 suiteSetup(function() { | 114 suiteSetup(function() { |
115 self.getPage('basic').set('pageVisibility.people', true); | 115 self.basicPage.set('pageVisibility.people', true); |
116 Polymer.dom.flush(); | 116 Polymer.dom.flush(); |
117 | 117 |
118 // These overrides are necessary for this test to function on ChromeOS | 118 // These overrides are necessary for this test to function on ChromeOS |
119 // bots that do not have Bluetooth (don't actually support Easy Unlock). | 119 // bots that do not have Bluetooth (don't actually support Easy Unlock). |
120 loadTimeData.overrideValues({ | 120 loadTimeData.overrideValues({ |
121 easyUnlockAllowed: true, | 121 easyUnlockAllowed: true, |
122 easyUnlockProximityDetectionAllowed: false, | 122 easyUnlockProximityDetectionAllowed: false, |
123 | 123 |
124 easyUnlockSectionTitle: '', | 124 easyUnlockSectionTitle: '', |
125 easyUnlockLearnMoreURL: '', | 125 easyUnlockLearnMoreURL: '', |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 }).then(function() { | 234 }).then(function() { |
235 Polymer.dom.flush(); | 235 Polymer.dom.flush(); |
236 expectFalse(turnOffDialog.$.dialog.open); | 236 expectFalse(turnOffDialog.$.dialog.open); |
237 }); | 237 }); |
238 }); | 238 }); |
239 }); | 239 }); |
240 | 240 |
241 // Run all registered tests. | 241 // Run all registered tests. |
242 mocha.run(); | 242 mocha.run(); |
243 }); | 243 }); |
OLD | NEW |