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

Issue 6850007: Fixed a few Autofill automation failures and added new tests. (Closed)

Created:
9 years, 8 months ago by dyu1
Modified:
9 years, 7 months ago
CC:
chromium-reviews, John Grabowski, anantha, Nirnimesh, dyu1, Paweł Hajdan Jr.
Visibility:
Public.

Description

Fixed a few Autofill automation failures and added new tests. - Deprecated testFilterMalformedEmailAddresses as the logic changed. - Add testProfilesNotAggregatedWithInvalidEmail - Add testInvalidCreditCardIsNotAggregated - Add testWhiteSpacesStrippedForValidCCNums - Add testCharSeparatorsStrippedForValidCCNums - Fixed testAutofillInvalid - Fixed testComparePhoneNumbers - Fixed testNoAutofillForReadOnlyFields TEST=none BUG=73439, 78844, 79405, 78519 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=81861

Patch Set 1 #

Total comments: 44

Patch Set 2 : '' #

Total comments: 14

Patch Set 3 : '' #

Total comments: 28

Patch Set 4 : '' #

Total comments: 8

Patch Set 5 : '' #

Total comments: 2

Patch Set 6 : '' #

Total comments: 4

Patch Set 7 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -19 lines) Patch
M chrome/test/functional/PYAUTO_TESTS View 1 2 chunks +0 lines, -8 lines 0 comments Download
M chrome/test/functional/autofill.py View 1 2 3 4 5 6 6 chunks +137 lines, -11 lines 1 comment Download

Messages

Total messages: 17 (0 generated)
dyu1
I could not combine the white space and character separator tests due to this limitation: ...
9 years, 8 months ago (2011-04-14 00:51:15 UTC) #1
dennis_jeffrey
http://codereview.chromium.org/6850007/diff/1/chrome/test/functional/autofill.py File chrome/test/functional/autofill.py (right): http://codereview.chromium.org/6850007/diff/1/chrome/test/functional/autofill.py#newcode96 chrome/test/functional/autofill.py:96: expected_credit_card = {'CREDIT_CARD_NUMBER': 'Not_0123-5Checked'} Since "credit_card" is identical to ...
9 years, 8 months ago (2011-04-14 21:53:03 UTC) #2
dyu1
http://codereview.chromium.org/6850007/diff/1/chrome/test/functional/autofill.py File chrome/test/functional/autofill.py (right): http://codereview.chromium.org/6850007/diff/1/chrome/test/functional/autofill.py#newcode96 chrome/test/functional/autofill.py:96: expected_credit_card = {'CREDIT_CARD_NUMBER': 'Not_0123-5Checked'} On 2011/04/14 21:53:03, dennis_jeffrey wrote: ...
9 years, 8 months ago (2011-04-15 00:06:09 UTC) #3
Nirnimesh
http://codereview.chromium.org/6850007/diff/3001/chrome/test/functional/autofill.py File chrome/test/functional/autofill.py (right): http://codereview.chromium.org/6850007/diff/3001/chrome/test/functional/autofill.py#newcode114 chrome/test/functional/autofill.py:114: number: the credit card number being validated. Add: "as ...
9 years, 8 months ago (2011-04-15 05:29:45 UTC) #4
dyu1
http://codereview.chromium.org/6850007/diff/3001/chrome/test/functional/autofill.py File chrome/test/functional/autofill.py (right): http://codereview.chromium.org/6850007/diff/3001/chrome/test/functional/autofill.py#newcode114 chrome/test/functional/autofill.py:114: number: the credit card number being validated. On 2011/04/15 ...
9 years, 8 months ago (2011-04-15 21:43:50 UTC) #5
dyu1
http://codereview.chromium.org/6850007/diff/3001/chrome/test/functional/autofill.py File chrome/test/functional/autofill.py (right): http://codereview.chromium.org/6850007/diff/3001/chrome/test/functional/autofill.py#newcode260 chrome/test/functional/autofill.py:260: self.assertEqual([], self.GetAutofillProfile()['profiles'], On 2011/04/15 05:29:45, Nirnimesh wrote: > use ...
9 years, 8 months ago (2011-04-15 21:47:40 UTC) #6
Nirnimesh
LGTM. Please make sure the bots stay green after you check it in. http://codereview.chromium.org/6850007/diff/11001/chrome/test/functional/autofill.py File ...
9 years, 8 months ago (2011-04-15 22:15:46 UTC) #7
dennis_jeffrey
Some more comments. Before you submit, let me investigate the "Luhn test" a little more ...
9 years, 8 months ago (2011-04-15 22:51:19 UTC) #8
dennis_jeffrey
One more comment regarding the Luhn test implementation. Thanks! http://codereview.chromium.org/6850007/diff/11001/chrome/test/functional/autofill.py File chrome/test/functional/autofill.py (right): http://codereview.chromium.org/6850007/diff/11001/chrome/test/functional/autofill.py#newcode101 chrome/test/functional/autofill.py:101: ...
9 years, 8 months ago (2011-04-15 23:41:55 UTC) #9
dyu1
http://codereview.chromium.org/6850007/diff/11001/chrome/test/functional/autofill.py File chrome/test/functional/autofill.py (right): http://codereview.chromium.org/6850007/diff/11001/chrome/test/functional/autofill.py#newcode101 chrome/test/functional/autofill.py:101: def _LuhnCreditCardNumberValidator(self, number): On 2011/04/15 23:41:55, dennis_jeffrey wrote: > ...
9 years, 8 months ago (2011-04-16 00:11:06 UTC) #10
dennis_jeffrey
http://codereview.chromium.org/6850007/diff/8004/chrome/test/functional/autofill.py File chrome/test/functional/autofill.py (right): http://codereview.chromium.org/6850007/diff/8004/chrome/test/functional/autofill.py#newcode7 chrome/test/functional/autofill.py:7: import re move this 2 lines down to ensure ...
9 years, 8 months ago (2011-04-16 00:22:16 UTC) #11
dyu1
http://codereview.chromium.org/6850007/diff/8004/chrome/test/functional/autofill.py File chrome/test/functional/autofill.py (right): http://codereview.chromium.org/6850007/diff/8004/chrome/test/functional/autofill.py#newcode7 chrome/test/functional/autofill.py:7: import re On 2011/04/16 00:22:16, dennis_jeffrey wrote: > move ...
9 years, 8 months ago (2011-04-16 00:37:32 UTC) #12
dennis_jeffrey
http://codereview.chromium.org/6850007/diff/10004/chrome/test/functional/autofill.py File chrome/test/functional/autofill.py (right): http://codereview.chromium.org/6850007/diff/10004/chrome/test/functional/autofill.py#newcode128 chrome/test/functional/autofill.py:128: for d in reverse[1::2])) % 10 == 0) The ...
9 years, 8 months ago (2011-04-16 00:44:48 UTC) #13
dyu1
http://codereview.chromium.org/6850007/diff/10004/chrome/test/functional/autofill.py File chrome/test/functional/autofill.py (right): http://codereview.chromium.org/6850007/diff/10004/chrome/test/functional/autofill.py#newcode128 chrome/test/functional/autofill.py:128: for d in reverse[1::2])) % 10 == 0) 1. ...
9 years, 8 months ago (2011-04-16 00:53:47 UTC) #14
dennis_jeffrey
http://codereview.chromium.org/6850007/diff/9006/chrome/test/functional/autofill.py File chrome/test/functional/autofill.py (right): http://codereview.chromium.org/6850007/diff/9006/chrome/test/functional/autofill.py#newcode112 chrome/test/functional/autofill.py:112: 4.2. Sum the digits of each multiplication: 2, 7, ...
9 years, 8 months ago (2011-04-16 01:21:13 UTC) #15
dyu1
http://codereview.chromium.org/6850007/diff/9006/chrome/test/functional/autofill.py File chrome/test/functional/autofill.py (right): http://codereview.chromium.org/6850007/diff/9006/chrome/test/functional/autofill.py#newcode112 chrome/test/functional/autofill.py:112: 4.2. Sum the digits of each multiplication: 2, 7, ...
9 years, 8 months ago (2011-04-16 01:30:25 UTC) #16
dennis_jeffrey
9 years, 8 months ago (2011-04-16 01:36:48 UTC) #17
LGTM

Thanks for putting up with my pestering on the Luhn stuff :-D

http://codereview.chromium.org/6850007/diff/10009/chrome/test/functional/auto...
File chrome/test/functional/autofill.py (right):

http://codereview.chromium.org/6850007/diff/10009/chrome/test/functional/auto...
chrome/test/functional/autofill.py:113: (0 + 2 = 2, 1 + 6 = 7, 0 + 6 = 6, 0 + 4
= 4, 1 + 8 = 9)
Aha - this clarifies so much.  I think it would have helped if you had worded
step 4.2 like this (might have prevented my confusion):

"For each resulting value that is now 2 digits, add the digits together: 2, 7,
6, 4, 9".

Powered by Google App Engine
This is Rietveld 408576698