summaryrefslogtreecommitdiffstats
path: root/chrome/test/functional
diff options
context:
space:
mode:
authornirnimesh@chromium.org <nirnimesh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-13 20:31:28 +0000
committernirnimesh@chromium.org <nirnimesh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-13 20:31:28 +0000
commite2d30f69f10ba3dea88c44b7833fca05b23ac951 (patch)
tree8b5e0f8e719dc1701300cddc040227b2cfaa5ccc /chrome/test/functional
parente93bec36e5b345fb5583ce5bacf1dfb803137053 (diff)
downloadchromium_src-e2d30f69f10ba3dea88c44b7833fca05b23ac951.zip
chromium_src-e2d30f69f10ba3dea88c44b7833fca05b23ac951.tar.gz
chromium_src-e2d30f69f10ba3dea88c44b7833fca05b23ac951.tar.bz2
Verify that previously saved username/password shows up in Regular Window, NTP and incognito window.
Review URL: http://codereview.chromium.org/5675001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69046 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/functional')
-rw-r--r--chrome/test/functional/passwords.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/chrome/test/functional/passwords.py b/chrome/test/functional/passwords.py
index f7527bd..af7ac6e 100644
--- a/chrome/test/functional/passwords.py
+++ b/chrome/test/functional/passwords.py
@@ -123,6 +123,36 @@ class PasswordTest(pyauto.PyUITest):
# self.assertFalse(self.GetSavedPasswords())
# TODO: Check the exceptions list
+ def testSavedPasswordInTabsAndWindows(self):
+ """Verify saved username/password displays in Regular/Incognito Window
+ and NTP"""
+ username = 'test'
+ password = 'test12345'
+ password_dict = {
+ u'action_target': u'https://www.google.com/accounts/ServiceLoginAuth',
+ u'blacklist': False,
+ u'origin_url': u'https://www.google.com/accounts/ServiceLogin',
+ u'password_element': u'Passwd',
+ u'password_value': u'test12345',
+ u'signon_realm': u'https://www.google.com/',
+ u'submit_element': u'',
+ u'time': 1280939865.0,
+ u'username_element': u'Email',
+ u'username_value': u'test'}
+ url = 'https://www.google.com/accounts/ServiceLogin'
+ self.AddSavedPassword(password_dict)
+ self.NavigateToURL(url)
+ test_utils.VerifyGoogleAccountCredsFilled(self, username, password,
+ tab_index=0, windex=0)
+ self.AppendTab(pyauto.GURL(url))
+ test_utils.VerifyGoogleAccountCredsFilled(self, username, password,
+ tab_index=1, windex=0)
+ self.RunCommand(pyauto.IDC_NEW_INCOGNITO_WINDOW)
+ self.NavigateToURL(url, 1, 0)
+ test_utils.VerifyGoogleAccountCredsFilled(self, username, password,
+ tab_index=0, windex=1)
+ test_utils.ClearPasswords(self)
+
if __name__ == '__main__':
pyauto_functional.Main()