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

Unified Diff: chrome/test/functional/passwords.py

Issue 6994005: Fix password automation hooks to get pyauto test testSavePassword working. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Modified PYAUTO_TESTS. Created 9 years, 7 months 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 | « chrome/test/functional/PYAUTO_TESTS ('k') | chrome/test/pyautolib/pyauto.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/functional/passwords.py
diff --git a/chrome/test/functional/passwords.py b/chrome/test/functional/passwords.py
index 3b39918a1bad74242ab6cc63276b950318458e47..4f05f54db33a17304d4aa66d67761a6077fd2be4 100644
--- a/chrome/test/functional/passwords.py
+++ b/chrome/test/functional/passwords.py
@@ -25,6 +25,10 @@ class PasswordTest(pyauto.PyUITest):
pp = pprint.PrettyPrinter(indent=2)
pp.pprint(self.GetSavedPasswords())
+ def setUp(self):
+ pyauto.PyUITest.setUp(self)
+ self.assertEqual(self.GetSavedPasswords(), [])
Nirnimesh 2011/05/17 20:23:25 self.assertFalse(self.GetSavedPasswords())
+
def _AssertWithinOneSecond(self, time1, time2):
self.assertTrue(abs(time1 - time2) < 1.0,
'Times not within an acceptable range. '
@@ -54,7 +58,7 @@ class PasswordTest(pyauto.PyUITest):
'https://www.example.com/', 'https://www.example.com/login',
'username', 'password', 'https://www.example.com/login/')
self.assertTrue(self.AddSavedPassword(password1))
- self.assertEquals(self.GetSavedPasswords(), [password1])
+ self.assertEqual(self.GetSavedPasswords(), [password1])
def testRemovePasswords(self):
"""Verify that saved passwords can be removed."""
« no previous file with comments | « chrome/test/functional/PYAUTO_TESTS ('k') | chrome/test/pyautolib/pyauto.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698