Chromium Code Reviews| 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} By default, JSCompile is not run on test files. | 7 * @suppress {checkTypes} By default, JSCompile is not run on test files. |
| 8 * However, you can modify |remoting_webapp_files.gypi| locally to include | 8 * However, you can modify |remoting_webapp_files.gypi| locally to include |
| 9 * the test in the package to expedite local development. This suppress | 9 * the test in the package to expedite local development. This suppress |
| 10 * is here so that JSCompile won't complain. | 10 * is here so that JSCompile won't complain. |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 317 browserTest.clickOnControl('change-daemon-pin'); | 317 browserTest.clickOnControl('change-daemon-pin'); |
| 318 } | 318 } |
| 319 return browserTest.setupPIN(pin); | 319 return browserTest.setupPIN(pin); |
| 320 }); | 320 }); |
| 321 }; | 321 }; |
| 322 | 322 |
| 323 // Called by Browser Test in C++ | 323 // Called by Browser Test in C++ |
| 324 browserTest.ensureRemoteConnectionEnabled = function(pin) { | 324 browserTest.ensureRemoteConnectionEnabled = function(pin) { |
| 325 browserTest.ensureHostStartedWithPIN(pin).then(function(){ | 325 browserTest.ensureHostStartedWithPIN(pin).then(function(){ |
| 326 browserTest.automationController_.send(true); | 326 browserTest.automationController_.send(true); |
| 327 }).catch(function(errorMessage){ | 327 }, function(errorMessage){ |
|
Jamie
2014/08/02 00:31:44
As discussed, jscompile is not smart enough to rec
kelvinp
2014/08/04 16:31:47
Acknowledged.
| |
| 328 console.error(errorMessage); | 328 console.error(errorMessage); |
| 329 browserTest.automationController_.send(false); | 329 browserTest.automationController_.send(false); |
| 330 }); | 330 }); |
| 331 }; | 331 }; |
| 332 | 332 |
| 333 browserTest.init(); | 333 browserTest.init(); |
| OLD | NEW |