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

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

Issue 2656823006: [Payments] PR: Basic test for the order summary section. (Closed)
Patch Set: Rebase 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
« no previous file with comments | « chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..27981b450a2cef620435b589701cfde9c6103c62 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')
« no previous file with comments | « chrome/browser/ui/views/payments/test_chrome_payment_request_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698