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

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

Issue 2028603004: Rename 'items' into 'displayItems' in PaymentDetails. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 3fafa26eb67e377acdac74f0a2bedabf36c45edf..75f62a698f6e7fe5e886b60c635f057f77136136 100644
--- a/chrome/test/data/android/payments/dynamic_shipping.js
+++ b/chrome/test/data/android/payments/dynamic_shipping.js
@@ -14,7 +14,7 @@
function buy() { // eslint-disable-line no-unused-vars
try {
var details = {
- items: [
+ displayItems: [
{
id: 'sub',
label: 'Subtotal',
@@ -76,7 +76,8 @@ function updateDetails(details, addr) {
if (addr.administrativeArea === 'CA') {
shippingOption.id = 'ca';
shippingOption.label = 'Free shipping in California';
- details.items[details.items.length - 1].amount.value = '5.00';
+ details.displayItems[details.displayItems.length - 1].amount.value =
+ '5.00';
} else {
shippingOption.id = 'us';
shippingOption.label = 'Standard shipping in US';

Powered by Google App Engine
This is Rietveld 408576698