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

Unified Diff: chrome/test/data/payments/no_shipping.js

Issue 2656823006: [Payments] PR: Basic test for the order summary section. (Closed)
Patch Set: Created 3 years, 11 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/payments/no_shipping.js
diff --git a/chrome/test/data/payments/no_shipping.js b/chrome/test/data/payments/no_shipping.js
index 354fc9acb42acf1278770db823a78d67bd54fe23..238fb685c1d6508c83fd2372efc74018a768dc67 100644
--- a/chrome/test/data/payments/no_shipping.js
+++ b/chrome/test/data/payments/no_shipping.js
@@ -11,9 +11,17 @@
*/
function buy() { // eslint-disable-line no-unused-vars
try {
- new PaymentRequest(
- [{supportedMethods: ['visa', 'mastercard']}],
- {total: {label: 'Total', amount: {currency: 'USD', value: '5.00'}}})
+ new PaymentRequest([{supportedMethods: ['visa', 'mastercard']}], {
+ total: {label: 'Total', amount: {currency: 'USD', value: '5.00'}},
+ displayItems: [
+ {
+ label: 'Subtotal',
+ amount: {currency: 'USD', value: '4.50'},
+ pending: true
+ },
+ {label: 'Taxes', amount: {currency: 'USD', value: '0.50'}}
+ ]
+ })
.show()
.then(function(resp) {
resp.complete('success')
@@ -26,9 +34,7 @@ function buy() { // eslint-disable-line no-unused-vars
print(error);
});
})
- .catch(function(error) {
- print(error);
- });
+ .catch(function(error) { print(error); });
please use gerrit instead 2017/01/26 20:44:43 Bless your heart, clang-format: you can't format J
Mathieu 2017/01/26 22:41:33 Ah! Not sure if you're serious, but I've reverted
} catch (error) {
print(error.message);
}

Powered by Google App Engine
This is Rietveld 408576698