diff options
author | jamiewalch@chromium.org <jamiewalch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-24 22:11:34 +0000 |
---|---|---|
committer | jamiewalch@chromium.org <jamiewalch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-24 22:11:34 +0000 |
commit | 8771430eb805a750dc00b824e14b7b4e81373bcd (patch) | |
tree | a84cad3dc2e70c7af4fd4bc46240bc67df13cb4a /remoting | |
parent | 4605ad77b2ee1b7c9f97602e480ec62a8aee8fb0 (diff) | |
download | chromium_src-8771430eb805a750dc00b824e14b7b4e81373bcd.zip chromium_src-8771430eb805a750dc00b824e14b7b4e81373bcd.tar.gz chromium_src-8771430eb805a750dc00b824e14b7b4e81373bcd.tar.bz2 |
Browser test for PINless authentication.
This test verifies that a PIN is required before pairing and is not required
afterwards. It then cleans up the pairing and tries again. The second run
serves to verify that the clean-up worked correctly and also allows us to
test both methods of clearing a pairing.
Review URL: https://codereview.chromium.org/38903002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230839 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rw-r--r-- | remoting/webapp/paired_client_manager.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/remoting/webapp/paired_client_manager.js b/remoting/webapp/paired_client_manager.js index 05d6fe9..d001cf3 100644 --- a/remoting/webapp/paired_client_manager.js +++ b/remoting/webapp/paired_client_manager.js @@ -57,6 +57,7 @@ remoting.PairedClient.prototype.createDom = function(parent, tbody) { this.deleteButton.href = '#'; this.deleteButton.innerText = chrome.i18n.getMessage( /*i18n-content*/'DELETE_PAIRED_CLIENT'); + this.deleteButton.id = 'delete-client-' + this.clientId; this.deleteButton.addEventListener( 'click', parent.deletePairedClient.bind(parent, this), @@ -270,6 +271,17 @@ remoting.PairedClientManager.prototype.deleteAll_ = function() { this.pairedClients_ = []; }; +/** + * Get the id of the first paired client for testing. + * + * @private + * @return {string} The client id of the first paired client in the list. + */ +remoting.PairedClientManager.prototype.getFirstClientIdForTesting_ = + function() { + return this.pairedClients_.length > 0 ? this.pairedClients_[0].clientId : ''; +}; + /** @type {remoting.PairedClientManager} */ remoting.pairedClientManager = null; |