Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(899)

Unified Diff: functional/passwords.py

Issue 5675001: Verify that previously saved username/password shows up in Regular Window, NT... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/test/
Patch Set: '' Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: functional/passwords.py
===================================================================
--- functional/passwords.py (revision 68696)
+++ functional/passwords.py (working copy)
@@ -65,7 +65,34 @@
self.ExecuteJavascript('document.getElementById("gaia_loginform").submit();'
'window.domAutomationController.send("done")')
test_utils.ClearPasswords(self)
-
-
+
+ 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)
+ self.AppendTab(pyauto.GURL(url))
+ test_utils.VerifyGoogleAccountCredsFilled(self, username, password)
Nirnimesh 2010/12/10 22:50:08 this and line 93 still just checks in first tab/fi
ismail 2010/12/11 02:03:36 Done.
+ self.RunCommand(pyauto.IDC_NEW_INCOGNITO_WINDOW)
+ self.NavigateToURL(url, 1, 0)
+ test_utils.VerifyGoogleAccountCredsFilled(self, username, password)
+ test_utils.ClearPasswords(self)
+
+
if __name__ == '__main__':
pyauto_functional.Main()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698