diff options
author | dyu@chromium.org <dyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-18 18:48:27 +0000 |
---|---|---|
committer | dyu@chromium.org <dyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-18 18:48:27 +0000 |
commit | 28025bf44612c3460ad5eb570771976d1223902e (patch) | |
tree | 4ef45f3cd2adcb59e6117a2f8c94c729573342c7 /chrome/test/functional/autofill.py | |
parent | f5736ccce84e52db7b840a2b84a072fa1e8fef9c (diff) | |
download | chromium_src-28025bf44612c3460ad5eb570771976d1223902e.zip chromium_src-28025bf44612c3460ad5eb570771976d1223902e.tar.gz chromium_src-28025bf44612c3460ad5eb570771976d1223902e.tar.bz2 |
Fixed autofill test for testWhitespacesAndSeparatorCharsStrippedForValidCCNums
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/6882018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81971 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/functional/autofill.py')
-rw-r--r-- | chrome/test/functional/autofill.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/test/functional/autofill.py b/chrome/test/functional/autofill.py index 4e86905..6496c26 100644 --- a/chrome/test/functional/autofill.py +++ b/chrome/test/functional/autofill.py @@ -185,11 +185,11 @@ class AutofillTest(pyauto.PyUITest): url = self.GetHttpURLForDataPath( os.path.join('autofill', 'autofill_creditcard_form.html')) for cc_info in credit_card_info: - cc_number = credit_card_info['CREDIT_CARD_NUMBER'] - self.assertTrue(self._LuhnCreditCardNumberValidator(cc_number), - msg='This test requires a valid credit card number.') self.NavigateToURL(url) for key, value in cc_info.iteritems(): + cc_number = cc_info['CREDIT_CARD_NUMBER'] + self.assertTrue(self._LuhnCreditCardNumberValidator(cc_number), + msg='This test requires a valid credit card number.') script = ('document.getElementById("%s").value = "%s"; ' 'window.domAutomationController.send("done");') % (key, value) self.ExecuteJavascript(script, 0, 0) |