| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * @suppress {checkTypes} | 7 * @suppress {checkTypes} |
| 8 * Browser test for the scenario below: | 8 * Browser test for the scenario below: |
| 9 * 1. Change the PIN. | 9 * 1. Change the PIN. |
| 10 * 2. Connect with the new PIN. | 10 * 2. Connect with the new PIN. |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 ); | 55 ); |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 /** | 58 /** |
| 59 * @param {string} newPin | 59 * @param {string} newPin |
| 60 * @return {Promise} | 60 * @return {Promise} |
| 61 */ | 61 */ |
| 62 browserTest.Update_PIN.prototype.changePIN_ = function(newPin) { | 62 browserTest.Update_PIN.prototype.changePIN_ = function(newPin) { |
| 63 var AppMode = remoting.AppMode; | 63 var AppMode = remoting.AppMode; |
| 64 var HOST_RESTART_WAIT = 10000; | 64 var HOST_RESTART_WAIT = 10000; |
| 65 browserTest.clickOnControl('change-daemon-pin'); | 65 browserTest.clickOnControl('.change-daemon-pin'); |
| 66 return browserTest.setupPIN(newPin); | 66 return browserTest.setupPIN(newPin); |
| 67 }; | 67 }; |
| OLD | NEW |