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

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

Issue 2816513004: Web payments metric for multiple show() calls. (Closed)
Patch Set: Comments Created 3 years, 8 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/payments/show_twice.js
diff --git a/chrome/test/data/payments/show_twice.js b/chrome/test/data/payments/show_twice.js
index e870f4e57a2fbb0a844cd78770c4cb365600de86..1de167ba7dca31e98c95a47421f100a6a713396d 100644
--- a/chrome/test/data/payments/show_twice.js
+++ b/chrome/test/data/payments/show_twice.js
@@ -4,20 +4,18 @@
* found in the LICENSE file.
*/
-/* global PaymentRequest:false */
-
/**
* Launches the PaymentRequest UI twice.
*/
function buy() { // eslint-disable-line no-unused-vars
- var payment1 = new PaymentRequest(
+ const payment1 = new PaymentRequest(
[{supportedMethods: ['visa']}],
{total: {label: 'Total', amount: {currency: 'USD', value: '5.00'}}});
- var payment2 = new PaymentRequest(
+ const payment2 = new PaymentRequest(
[{supportedMethods: ['visa']}],
{total: {label: 'Total', amount: {currency: 'USD', value: '5.00'}}});
payment1.show();
payment2.show().catch(function(error) {
- print("Second request: " + error);
+ print('Second request: ' + error);
});
}

Powered by Google App Engine
This is Rietveld 408576698