summaryrefslogtreecommitdiffstats
path: root/chrome/test
diff options
context:
space:
mode:
authordennisjeffrey@chromium.org <dennisjeffrey@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-08 22:51:02 +0000
committerdennisjeffrey@chromium.org <dennisjeffrey@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-08 22:51:02 +0000
commit2098bf4125e4e490e4e846e6747d24f07507559c (patch)
treee7cd193a776c139707ff06edc04168c2c37eef80 /chrome/test
parent268534d6a238960b72a395a8f3275d0351bbe4cf (diff)
downloadchromium_src-2098bf4125e4e490e4e846e6747d24f07507559c.zip
chromium_src-2098bf4125e4e490e4e846e6747d24f07507559c.tar.gz
chromium_src-2098bf4125e4e490e4e846e6747d24f07507559c.tar.bz2
Fix bug in pyauto test passwords.PasswordTest.testDisplayAndSavePasswordInfobar.
This test was previously appending a new tab and then waiting for a DOM element on that tab. However, the waiting was being done on the wrong tab. This is now fixed. BUG=None TEST=None Review URL: http://codereview.chromium.org/7831059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100287 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test')
-rw-r--r--chrome/test/functional/passwords.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/test/functional/passwords.py b/chrome/test/functional/passwords.py
index 576bb5d..5e57fc120 100644
--- a/chrome/test/functional/passwords.py
+++ b/chrome/test/functional/passwords.py
@@ -101,16 +101,16 @@ class PasswordTest(pyauto.PyUITest):
self.assertEqual(infobar[0]['type'], 'confirm_infobar')
self.PerformActionOnInfobar('accept', infobar_index=0)
self.NavigateToURL(url_logout)
- self.AppendTab(pyauto.GURL(url_https)) # New tab to avoid bug 70694
+ self.NavigateToURL(url_https)
# Wait until username is filled by the Password manager on the login page.
self.assertTrue(self.WaitUntil(
lambda: self.GetDOMValue('document.getElementById("Email").value',
0, 0) != ''))
test_utils.VerifyGoogleAccountCredsFilled(self, username, password,
- tab_index=1, windex=0)
+ tab_index=0, windex=0)
self.ExecuteJavascript('document.getElementById("gaia_loginform").submit();'
'window.domAutomationController.send("done")',
- 0, 1)
+ 0, 0)
test_utils.ClearPasswords(self)
def testNeverSavePasswords(self):