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

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

Issue 2866623003: PaymentRequest.canMakePayment() query quota on desktop. (Closed)
Patch Set: frame 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: chrome/test/data/payments/can_make_payment_query_cc.js
diff --git a/chrome/test/data/payments/can_make_payment_query_cc.js b/chrome/test/data/payments/can_make_payment_query_cc.js
index f56b8fdebca4fded64677d85cbb2cdd2c017ca1c..a60e9dd7c54c00cf31368dc412b0736393c0b09c 100644
--- a/chrome/test/data/payments/can_make_payment_query_cc.js
+++ b/chrome/test/data/payments/can_make_payment_query_cc.js
@@ -4,15 +4,12 @@
* found in the LICENSE file.
*/
-/* global PaymentRequest:false */
-/* global print:false */
-
/**
* Checks for existence of a complete VISA credit card.
*/
function buy() { // eslint-disable-line no-unused-vars
try {
- var request = new PaymentRequest(
+ const request = new PaymentRequest(
[{supportedMethods: ['visa']}],
{total: {label: 'Total', amount: {currency: 'USD', value: '5.00'}}});
request.canMakePayment()
@@ -30,9 +27,9 @@ function buy() { // eslint-disable-line no-unused-vars
/**
* Checks for existence of a complete MasterCard credit card.
*/
-function other_buy() { // eslint-disable-line no-unused-vars
+function other_buy() { // eslint-disable-line no-unused-vars, camelcase
try {
- var request = new PaymentRequest(
+ const request = new PaymentRequest(
[{supportedMethods: ['mastercard']}],
{total: {label: 'Total', amount: {currency: 'USD', value: '5.00'}}});
request.canMakePayment()
« no previous file with comments | « chrome/browser/ui/views/payments/payment_request_can_make_payment_browsertest.cc ('k') | components/payments/content/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698