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

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

Issue 2885443003: enable modifiers for native apps (Closed)
Patch Set: addressing comments 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/modifier.js
diff --git a/chrome/test/data/payments/modifier.js b/chrome/test/data/payments/modifier.js
deleted file mode 100644
index 4fff18b6c539289cc5a121163a18bb290112c8ed..0000000000000000000000000000000000000000
--- a/chrome/test/data/payments/modifier.js
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
please use gerrit instead 2017/05/22 13:17:10 Let's not delete existing test cases.
wuandy1 2017/05/23 15:46:58 Done.
- * Copyright 2017 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.
- */
-
-/**
- * Invokes the PaymentRequest with a modifier that contains the bare mininum of
- * required fields.
- */
-function buy() { // eslint-disable-line no-unused-vars
- try {
- new PaymentRequest(
- [{
- supportedMethods: ['foo'],
- }], {
- total: {
- label: 'Total',
- amount: {
- currency: 'USD',
- value: '5.00',
- },
- },
- modifiers: [{
- supportedMethods: ['foo'],
- }],
- })
- .show()
- .then(function(response) {
- response.complete()
- .then(function() {
- print(complete);
- })
- .catch(function(error) {
- print(error);
- });
- })
- .catch(function(error) {
- print(error);
- });
- } catch (error) {
- print(error.message);
- }
-}

Powered by Google App Engine
This is Rietveld 408576698