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
3 // found in the LICENSE file.
7 * @suppress {checkTypes}
8 * Browser test for the scenario below:
9 * 1. Attempt to connect.
10 * 2. Hit cancel at the PIN prompt.
11 * 3. Reconnect with the PIN.
12 * 4. Verify that the session is connected.
18 browserTest
.Cancel_PIN = function() {};
20 browserTest
.Cancel_PIN
.prototype.run = function(data
) {
21 browserTest
.expect(typeof data
.pin
== 'string');
23 var AppMode
= remoting
.AppMode
;
24 browserTest
.connectMe2Me().then(function() {
25 browserTest
.clickOnControl('cancel-pin-entry-button');
26 return browserTest
.onUIMode(AppMode
.HOME
);
28 return browserTest
.connectMe2Me()
30 return browserTest
.enterPIN(data
.pin
)
36 browserTest
.fail(reason
);