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

Unified Diff: chrome/test/data/android/payments/util.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
« no previous file with comments | « chrome/test/data/android/payments/style.css ('k') | chrome/test/data/payment_request_iframe.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/android/payments/util.js
diff --git a/chrome/test/data/android/payments/util.js b/chrome/test/data/android/payments/util.js
deleted file mode 100644
index 7b907bf21b6c99e43849c687c7fb27020616e5ce..0000000000000000000000000000000000000000
--- a/chrome/test/data/android/payments/util.js
+++ /dev/null
@@ -1,36 +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.
- */
-
-/**
- * Prints the message.
- * @param {String} msg - The message to print.
- */
-function print(msg) { // eslint-disable-line no-unused-vars
- document.getElementById('result').innerHTML = msg;
-}
-
-/**
- * Converts ShippingAddress into a dictionary.
- * @param {ShippingAddress} addr - The object to convert.
- * @return {object} The dictionary output.
- */
-function toDictionary(addr) { // eslint-disable-line no-unused-vars
- var dict = {};
- if (addr) {
- dict.country = addr.country;
- dict.region = addr.region;
- dict.city = addr.city;
- dict.dependentLocality = addr.dependentLocality;
- dict.addressLine = addr.addressLine;
- dict.postalCode = addr.postalCode;
- dict.sortingCode = addr.sortingCode;
- dict.languageCode = addr.languageCode;
- dict.organization = addr.organization;
- dict.recipient = addr.recipient;
- dict.phone = addr.phone;
- }
- return dict;
-}
« no previous file with comments | « chrome/test/data/android/payments/style.css ('k') | chrome/test/data/payment_request_iframe.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698