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

Unified Diff: content/test/data/payments/payment_app_invocation.html

Issue 2893823004: [Payments] Implement openWindow for service worker based payment handler (Closed)
Patch Set: correct file changes Created 3 years, 7 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: content/test/data/payments/payment_app_invocation.html
diff --git a/content/test/data/payments/payment_app_invocation.html b/content/test/data/payments/payment_app_invocation.html
index 5b74c69a62de824244a0c1c998d642c54d0b8937..79ba835f9d4e9195d7edbb16bf74cd0d36dcbb5f 100644
--- a/content/test/data/payments/payment_app_invocation.html
+++ b/content/test/data/payments/payment_app_invocation.html
@@ -9,10 +9,23 @@ function registerPaymentApp() {
return navigator.serviceWorker.ready;
})
.then(registration => {
- return registration.paymentManager.instruments.set('payment-app-id', {
- name: 'Visa ****',
- enabledMethods: ['basic-card']
- });
+ const instrumentPromises = [
+ registration.paymentManager.instruments.set(
+ 'basic-card-payment-app-id',
+ {
+ name: 'Visa ****',
+ enabledMethods: ['basic-card']
+ }),
+
+ registration.paymentManager.instruments.set(
+ 'bobpay-payment-app-id',
+ {
+ name: "Bob Pay",
+ enabledMethods: ['https://bobpay.com']
+ }),
+ ];
+
+ return Promise.all(instrumentPromises);
})
.then(result => {
sendResultToTest('registered');

Powered by Google App Engine
This is Rietveld 408576698