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

Unified Diff: chrome/test/data/android/payments/abort.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/abort.js
diff --git a/chrome/test/data/android/payments/abort.js b/chrome/test/data/android/payments/abort.js
deleted file mode 100644
index 26c8b5c112366f49f42e0c4ac0e932868780948f..0000000000000000000000000000000000000000
--- a/chrome/test/data/android/payments/abort.js
+++ /dev/null
@@ -1,38 +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 */
-
-var request;
-
-/**
- * Launches the PaymentRequest UI.
- */
-function buy() { // eslint-disable-line no-unused-vars
- try {
- request = new PaymentRequest(
- [{supportedMethods: ['visa']}],
- {total: {label: 'Total', amount: {currency: 'USD', value: '5.00'}}});
- request.show();
- } catch (error) {
- print(error.message);
- }
-}
-
-/**
- * Aborts the PaymentRequest UI.
- */
-function abort() { // eslint-disable-line no-unused-vars
- try {
- request.abort().then(() => {
- print('Aborted');
- }).catch(() => {
- print('Cannot abort');
- });
- } catch (error) {
- print(error.message);
- }
-}
« no previous file with comments | « chrome/browser/payments/site_per_process_payments_browsertest.cc ('k') | chrome/test/data/android/payments/basic_card.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698