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. Enter |data.pin| at the PIN prompt.
11 * 3. Verify that there is connection error due to invalid access code.
17 browserTest
.Invalid_PIN = function() {};
19 browserTest
.Invalid_PIN
.prototype.run = function(data
) {
21 browserTest
.expect(typeof data
.pin
== 'string');
23 // Connect to me2me Host.
24 browserTest
.connectMe2Me().then(function(){
25 return browserTest
.enterPIN(data
.pin
, true)
27 // Sleep for two seconds to allow the host backoff timer to reset.
28 base
.Promise
.sleep
.bind(window
, 2000)
34 browserTest
.fail(reason
);