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

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

Issue 2623653003: [Payments] Move Payment Request test files to chrome/test/data/payments (Closed)
Patch Set: Created 3 years, 11 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.js
diff --git a/chrome/test/data/android/payments/bobpay.js b/chrome/test/data/android/payments/bobpay.js
deleted file mode 100644
index 0d24e9fc00c84c16a93a0a6dde30d140bc99760d..0000000000000000000000000000000000000000
--- a/chrome/test/data/android/payments/bobpay.js
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Copyright 2016 The Chromium Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-/* global PaymentRequest:false */
-
-/**
- * Launches the PaymentRequest UI with Bob Pay as the only payment method.
- */
-function buy() { // eslint-disable-line no-unused-vars
- try {
- new PaymentRequest(
- [{supportedMethods: ['https://bobpay.com']}],
- {total: {label: 'Total', amount: {currency: 'USD', value: '5.00'}}})
- .show()
- .then(function(resp) {
- resp.complete('success')
- .then(function() {
- print(resp.methodName + '<br>' +
- JSON.stringify(resp.details, undefined, 2));
- })
- .catch(function(error) {
- print('complete() rejected<br>' + error);
- });
- })
- .catch(function(error) {
- print('show() rejected<br>' + error);
- });
- } catch (error) {
- print('exception thrown<br>' + error);
- }
-}
« no previous file with comments | « chrome/test/data/android/payments/basic_card.js ('k') | chrome/test/data/android/payments/bobpay_and_cards.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698