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

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

Issue 2165163002: Autofill cards at the bottom of the PaymentRequest UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Static comparator and faux-parameterized test Created 4 years, 5 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/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);
}
}

Powered by Google App Engine
This is Rietveld 408576698