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

Side by Side Diff: chrome/test/data/android/payments/util.js

Issue 2018133002: Clean up PaymentRequest integration tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « chrome/test/data/android/payments/style.css ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2016 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
6
7 /**
8 * Prints the message.
9 * @param {String} msg - The message to print.
10 */
11 function print(msg) { // eslint-disable-line no-unused-vars
12 document.getElementById('result').innerHTML = msg;
13 }
14
15 /**
16 * Converts ShippingAddress into a dictionary.
17 * @param {ShippingAddress} addr - The object to convert.
18 * @return {object} The dictionary output.
19 */
20 function toDictionary(addr) { // eslint-disable-line no-unused-vars
21 var dict = {};
22 if (addr) {
23 dict.regionCode = addr.regionCode;
24 dict.administrativeArea = addr.administrativeArea;
25 dict.locality = addr.locality;
26 dict.dependentLocality = addr.dependentLocality;
27 dict.addressLine = addr.addressLine;
28 dict.postalCode = addr.postalCode;
29 dict.sortingCode = addr.sortingCode;
30 dict.languageCode = addr.languageCode;
31 dict.organization = addr.organization;
32 dict.recipient = addr.recipient;
33 }
34 return dict;
35 }
OLDNEW
« no previous file with comments | « chrome/test/data/android/payments/style.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698