| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.android_webview.test.util; | 5 package org.chromium.android_webview.test.util; |
| 6 | 6 |
| 7 import android.util.Pair; | 7 import android.util.Pair; |
| 8 | 8 |
| 9 import java.util.ArrayList; | 9 import java.util.ArrayList; |
| 10 import java.util.List; | 10 import java.util.List; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 "img.big { width:100%; height:100%; background-color:bl
ue; }" + | 98 "img.big { width:100%; height:100%; background-color:bl
ue; }" + |
| 99 ".full_view { height:100%; width:100%; position:absolut
e; }" + | 99 ".full_view { height:100%; width:100%; position:absolut
e; }" + |
| 100 "</style>" + | 100 "</style>" + |
| 101 headers + | 101 headers + |
| 102 "</head>" + | 102 "</head>" + |
| 103 "<body>" + | 103 "<body>" + |
| 104 body + | 104 body + |
| 105 "</body>" + | 105 "</body>" + |
| 106 "</html>"; | 106 "</html>"; |
| 107 } | 107 } |
| 108 |
| 109 public static String makeHtmlPageWithSimpleLinkTo(String headers, String des
tination) { |
| 110 return makeHtmlPageFrom(headers, |
| 111 "<a href=\"" + destination + "\" id=\"link\">" + |
| 112 "<img class=\"big\" />" + |
| 113 "</a>"); |
| 114 } |
| 115 |
| 116 public static String makeHtmlPageWithSimpleLinkTo(String destination) { |
| 117 return makeHtmlPageWithSimpleLinkTo("", destination); |
| 118 } |
| 119 |
| 120 public static String makeHtmlPageWithSimplePostFormTo(String destination) { |
| 121 return makeHtmlPageFrom("", |
| 122 "<form action=\"" + destination + "\" method=\"post\">" + |
| 123 "<input type=\"submit\" value=\"post\" id=\"link\">" + |
| 124 "</form>"); |
| 125 } |
| 108 } | 126 } |
| OLD | NEW |