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

Unified Diff: chrome/android/junit/src/org/chromium/chrome/browser/payments/AutofillAddressTest.java

Issue 2039863002: PaymentRequest: Sync up PaymentAddress with the payment request spec. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/android/junit/src/org/chromium/chrome/browser/payments/AutofillAddressTest.java
diff --git a/chrome/android/junit/src/org/chromium/chrome/browser/payments/AutofillAddressTest.java b/chrome/android/junit/src/org/chromium/chrome/browser/payments/AutofillAddressTest.java
index d3e07166999bab8fd13be846a94e5da6b6043fd1..6c604232e03bf7cec46eaf08c3efca1d206bc1b0 100644
--- a/chrome/android/junit/src/org/chromium/chrome/browser/payments/AutofillAddressTest.java
+++ b/chrome/android/junit/src/org/chromium/chrome/browser/payments/AutofillAddressTest.java
@@ -40,10 +40,10 @@ public class AutofillAddressTest {
"locality", "dependent locality", "postal code", "sorting code", "US",
"phone number", "email@address.com", "en-Latn-US"));
PaymentAddress output = input.toPaymentAddress();
- Assert.assertEquals("US", output.regionCode);
+ Assert.assertEquals("US", output.country);
Assert.assertArrayEquals(new String[]{"street", "address"}, output.addressLine);
- Assert.assertEquals("region", output.administrativeArea);
- Assert.assertEquals("locality", output.locality);
+ Assert.assertEquals("region", output.region);
+ Assert.assertEquals("locality", output.city);
Assert.assertEquals("dependent locality", output.dependentLocality);
Assert.assertEquals("postal code", output.postalCode);
Assert.assertEquals("sorting code", output.sortingCode);
@@ -51,6 +51,8 @@ public class AutofillAddressTest {
Assert.assertEquals("full name", output.recipient);
Assert.assertEquals("en", output.languageCode);
Assert.assertEquals("Latn", output.scriptCode);
+ Assert.assertEquals("", output.careOf);
+ Assert.assertEquals("phone number", output.phone);
}
@Test

Powered by Google App Engine
This is Rietveld 408576698