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

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,11 @@
}
TEST_F(PhoneFieldTest, ThreePartPhoneNumber) {
+ // Phone in format <field> - <field> - <field> could be either
+ // <area code> - <prefix> - <suffix>, or
+ // <country code> - <area code> - <phone>. The only distinguishing feature is
+ // size: <prefix> is no bigger than 3 characters, and <suffix> is no bigger
+ // than 4.
list_.push_back(
new AutoFillField(webkit_glue::FormField(ASCIIToUTF16("Phone:"),
ASCIIToUTF16("dayphone1"),
@@ -184,7 +189,7 @@
ASCIIToUTF16("dayphone2"),
string16(),
ASCIIToUTF16("text"),
- 0,
+ 3,
false),
ASCIIToUTF16("prefix1")));
list_.push_back(
@@ -192,7 +197,7 @@
ASCIIToUTF16("dayphone3"),
string16(),
ASCIIToUTF16("text"),
- 0,
+ 4,
false),
ASCIIToUTF16("suffix1")));
list_.push_back(
« no previous file with comments | « chrome/browser/autofill/phone_field.cc ('k') | chrome/test/data/autofill/heuristics/input/form_phones_en.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698