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

Unified Diff: chrome/test/data/android/payments/dynamic_shipping.js

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/test/data/android/payments/dynamic_shipping.js
diff --git a/chrome/test/data/android/payments/dynamic_shipping.js b/chrome/test/data/android/payments/dynamic_shipping.js
index 311353151308b29091920b1aa021e501be4272ff..6ec79ca5b81524485167ce5df046451a790ec391 100644
--- a/chrome/test/data/android/payments/dynamic_shipping.js
+++ b/chrome/test/data/android/payments/dynamic_shipping.js
@@ -58,13 +58,13 @@ function buy() { // eslint-disable-line no-unused-vars
* @return {object} The updated shopping cart.
*/
function updateDetails(details, addr) {
- if (addr.regionCode === 'US') {
+ if (addr.country === 'US') {
var shippingOption = {
id: '',
label: '',
amount: {currency: 'USD', value: '0.00'}
};
- if (addr.administrativeArea === 'CA') {
+ if (addr.region === 'CA') {
shippingOption.id = 'ca';
shippingOption.label = 'Free shipping in California';
details.total.amount.value = '5.00';
« no previous file with comments | « chrome/browser/autofill/android/personal_data_manager_android.cc ('k') | chrome/test/data/android/payments/util.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698