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

Unified 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, 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/android/payments/payment_request_no_shipping_test.html
diff --git a/chrome/test/data/android/payments/payment_request_no_shipping_test.html b/chrome/test/data/android/payments/payment_request_no_shipping_test.html
index dbfc99a4d2915e2ca48a9a0b260b77c937224d2e..09b9bda2357c3214a732494bebd213ecb22992e4 100644
--- a/chrome/test/data/android/payments/payment_request_no_shipping_test.html
+++ b/chrome/test/data/android/payments/payment_request_no_shipping_test.html
@@ -1,48 +1,20 @@
<!DOCTYPE html>
+<!--
+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.
+-->
<html>
<head>
<title>No Shipping Test</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
-<style>
-button {
- width: 100%;
- height: 5em;
- font-size: 3em;
-}
-</style>
+<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<button onclick="buy()" id="buy">No Shipping Test</button>
-<script>
-function print(msg) {
- document.open();
- document.write('<pre id="result" style="font-size: 2em;">' + msg + '</pre>');
- document.close();
-}
-function buy() {
- try {
- new PaymentRequest(['visa'], {
- 'items' : [ {
- 'id' : 'total',
- 'label' : 'Total',
- 'amount' : {'currency' : 'USD', 'value' : '5.00'}
- } ]
- })
- .show()
- .then(function(resp) {
- resp.complete(true)
- .then(function() {
- print(resp.methodName + '<br>' +
- JSON.stringify(resp.details, undefined, 2));
- })
- .catch(function(error) { print(error.message); });
- })
- .catch(function(error) { print(error.message); });
- } catch (error) {
- print(error.message);
- }
-}
-</script>
+<pre id="result"></pre>
+<script src="util.js"></script>
+<script src="no_shipping.js"></script>
</body>
</html>
« 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