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

Unified Diff: chrome/browser/autofill/phone_field_unittest.cc

Issue 6480083: Changed parsing code for the phonenumbers fields to incorporate different com... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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
Index: chrome/browser/autofill/phone_field_unittest.cc
===================================================================
--- chrome/browser/autofill/phone_field_unittest.cc (revision 74701)
+++ chrome/browser/autofill/phone_field_unittest.cc (working copy)
@@ -171,6 +171,9 @@
}
TEST_F(PhoneFieldTest, ThreePartPhoneNumber) {
+ // Phone in format field-field-field could be either area code-prefix-
dhollowa 2011/02/16 00:25:37 I had a bit of trouble parsing this comment. I mi
GeorgeY 2011/02/16 20:53:34 Done.
+ // suffix, or country code-area code-phone. The only distinguishing feature is
+ // size: prefix is no bigger than 3 characters, suffix - 4.
list_.push_back(
new AutoFillField(webkit_glue::FormField(ASCIIToUTF16("Phone:"),
ASCIIToUTF16("dayphone1"),
@@ -184,7 +187,7 @@
ASCIIToUTF16("dayphone2"),
string16(),
ASCIIToUTF16("text"),
- 0,
+ 3,
false),
ASCIIToUTF16("prefix1")));
list_.push_back(
@@ -192,7 +195,7 @@
ASCIIToUTF16("dayphone3"),
string16(),
ASCIIToUTF16("text"),
- 0,
+ 4,
false),
ASCIIToUTF16("suffix1")));
list_.push_back(

Powered by Google App Engine
This is Rietveld 408576698