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

Side by Side Diff: chrome/test/data/android/payments/payment_request_no_shipping_test.html

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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!--
3 Copyright 2016 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file.
6 -->
2 <html> 7 <html>
3 <head> 8 <head>
4 <title>No Shipping Test</title> 9 <title>No Shipping Test</title>
5 <meta charset="utf-8"> 10 <meta charset="utf-8">
6 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scal e=1"> 11 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scal e=1">
7 <style> 12 <link rel="stylesheet" type="text/css" href="style.css">
8 button {
9 width: 100%;
10 height: 5em;
11 font-size: 3em;
12 }
13 </style>
14 </head> 13 </head>
15 <body> 14 <body>
16 <button onclick="buy()" id="buy">No Shipping Test</button> 15 <button onclick="buy()" id="buy">No Shipping Test</button>
17 <script> 16 <pre id="result"></pre>
18 function print(msg) { 17 <script src="util.js"></script>
19 document.open(); 18 <script src="no_shipping.js"></script>
20 document.write('<pre id="result" style="font-size: 2em;">' + msg + '</pre>');
21 document.close();
22 }
23 function buy() {
24 try {
25 new PaymentRequest(['visa'], {
26 'items' : [ {
27 'id' : 'total',
28 'label' : 'Total',
29 'amount' : {'currency' : 'USD', 'value' : '5.00'}
30 } ]
31 })
32 .show()
33 .then(function(resp) {
34 resp.complete(true)
35 .then(function() {
36 print(resp.methodName + '<br>' +
37 JSON.stringify(resp.details, undefined, 2));
38 })
39 .catch(function(error) { print(error.message); });
40 })
41 .catch(function(error) { print(error.message); });
42 } catch (error) {
43 print(error.message);
44 }
45 }
46 </script>
47 </body> 19 </body>
48 </html> 20 </html>
OLDNEW
« no previous file with comments | « chrome/test/data/android/payments/payment_request_free_shipping_test.html ('k') | chrome/test/data/android/payments/style.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698