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

Unified Diff: chrome/browser/autofill/autofill_address_model_mac_unittest.mm

Issue 6484022: Autofill i18n: Set postal code and state field labels based on the selected country. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Still needs tests 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/autofill_address_model_mac_unittest.mm
diff --git a/chrome/browser/autofill/autofill_address_model_mac_unittest.mm b/chrome/browser/autofill/autofill_address_model_mac_unittest.mm
index b54219f445884ef896778da6c304240890b2ca13..6299a4f034eb16f56e30a4f18f4c8638f9382fcf 100644
--- a/chrome/browser/autofill/autofill_address_model_mac_unittest.mm
+++ b/chrome/browser/autofill/autofill_address_model_mac_unittest.mm
@@ -37,7 +37,7 @@ TEST(AutoFillAddressModelTest, InitializationFromProfile) {
"unit 5",
"Hollywood", "CA",
"91601",
- "US",
+ "United States",
"12345678910",
"01987654321");
scoped_nsobject<AutoFillAddressModel> model([[AutoFillAddressModel alloc]
@@ -52,7 +52,7 @@ TEST(AutoFillAddressModelTest, InitializationFromProfile) {
EXPECT_TRUE([[model addressCity] isEqualToString:@"Hollywood"]);
EXPECT_TRUE([[model addressState] isEqualToString:@"CA"]);
EXPECT_TRUE([[model addressZip] isEqualToString:@"91601"]);
- EXPECT_TRUE([[model addressCountry] isEqualToString:@"US"]);
+ EXPECT_TRUE([[model addressCountry] isEqualToString:@"United States"]);
EXPECT_TRUE([[model phoneWholeNumber] isEqualToString:@"12345678910"]);
EXPECT_TRUE([[model faxWholeNumber] isEqualToString:@"01987654321"]);
}
@@ -70,7 +70,7 @@ TEST(AutoFillAddressModelTest, CopyModelToProfile) {
"unit 5",
"Hollywood", "CA",
"91601",
- "US",
+ "United States",
"12345678910",
"01987654321");
scoped_nsobject<AutoFillAddressModel> model([[AutoFillAddressModel alloc]
@@ -85,7 +85,7 @@ TEST(AutoFillAddressModelTest, CopyModelToProfile) {
[model setAddressCity:@"Seattle"];
[model setAddressState:@"WA"];
[model setAddressZip:@"81601"];
- [model setAddressCountry:@"CA"];
+ [model setAddressCountry:@"Canada"];
[model setPhoneWholeNumber:@"23346678910"];
[model setFaxWholeNumber:@"12988654321"];
@@ -113,7 +113,7 @@ TEST(AutoFillAddressModelTest, CopyModelToProfile) {
profile.GetFieldText(AutoFillType(ADDRESS_HOME_STATE)));
EXPECT_EQ(ASCIIToUTF16("81601"),
profile.GetFieldText(AutoFillType(ADDRESS_HOME_ZIP)));
- EXPECT_EQ(ASCIIToUTF16("CA"),
+ EXPECT_EQ(ASCIIToUTF16("Canada"),
profile.GetFieldText(AutoFillType(ADDRESS_HOME_COUNTRY)));
EXPECT_EQ(ASCIIToUTF16("23346678910"),
profile.GetFieldText(AutoFillType(PHONE_HOME_WHOLE_NUMBER)));

Powered by Google App Engine
This is Rietveld 408576698