Chromium Code Reviews| 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); |
| } |