| 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 return browserProxy.whenCalled('startTurnOffFlow'); | 202 return browserProxy.whenCalled('startTurnOffFlow'); |
| 203 }).then(function() { | 203 }).then(function() { |
| 204 // To signal successful turnoff, the enabled status is broadcast | 204 // To signal successful turnoff, the enabled status is broadcast |
| 205 // as false. At that point, the dialog should close and cancel | 205 // as false. At that point, the dialog should close and cancel |
| 206 // any in-progress turnoff flow. The cancellation should be | 206 // any in-progress turnoff flow. The cancellation should be |
| 207 // a no-op assuming the turnoff originated from this tab. | 207 // a no-op assuming the turnoff originated from this tab. |
| 208 cr.webUIListenerCallback('easy-unlock-enabled-status', false); | 208 cr.webUIListenerCallback('easy-unlock-enabled-status', false); |
| 209 return browserProxy.whenCalled('cancelTurnOffFlow'); | 209 return browserProxy.whenCalled('cancelTurnOffFlow'); |
| 210 }).then(function() { | 210 }).then(function() { |
| 211 Polymer.dom.flush(); | 211 Polymer.dom.flush(); |
| 212 expectFalse(turnOffDialog.$.dialog.opened); | 212 expectFalse(turnOffDialog.$.dialog.open); |
| 213 }); | 213 }); |
| 214 }); | 214 }); |
| 215 }); | 215 }); |
| 216 | 216 |
| 217 // Run all registered tests. | 217 // Run all registered tests. |
| 218 mocha.run(); | 218 mocha.run(); |
| 219 }); | 219 }); |
| OLD | NEW |