Index: chrome/test/data/android/payments/bobpay_and_cards.js |
diff --git a/chrome/test/data/android/payments/bobpay.js b/chrome/test/data/android/payments/bobpay_and_cards.js |
similarity index 71% |
copy from chrome/test/data/android/payments/bobpay.js |
copy to chrome/test/data/android/payments/bobpay_and_cards.js |
index 0ac7deffae5fa3cc02a689b18bf454777c10bdc7..7cd3a2e944e834ff14234d92005b350922e32afe 100644 |
--- a/chrome/test/data/android/payments/bobpay.js |
+++ b/chrome/test/data/android/payments/bobpay_and_cards.js |
@@ -7,12 +7,13 @@ |
/* global PaymentRequest:false */ |
/** |
- * Launches the PaymentRequest UI with Bob Pay as the only payment method. |
+ * Launches the PaymentRequest UI with Bob Pay and credit cards as payment |
+ * methods. |
*/ |
function buy() { // eslint-disable-line no-unused-vars |
try { |
new PaymentRequest( |
- [{supportedMethods: ['https://bobpay.com']}], |
+ [{supportedMethods: ['https://bobpay.com', 'visa', 'mastercard']}], |
{total: {label: 'Total', amount: {currency: 'USD', value: '5.00'}}}) |
.show() |
.then(function(resp) { |
@@ -22,13 +23,13 @@ function buy() { // eslint-disable-line no-unused-vars |
JSON.stringify(resp.details, undefined, 2)); |
}) |
.catch(function(error) { |
- print('complete() rejected<br>' + error.message); |
+ print(error.message); |
}); |
}) |
.catch(function(error) { |
- print('show() rejected<br>' + error.message); |
+ print(error.message); |
}); |
} catch (error) { |
- print('exception thrown<br>' + error.message); |
+ print(error.message); |
} |
} |