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

Unified Diff: android_webview/javatests/src/org/chromium/android_webview/test/util/CommonResources.java

Issue 284123004: [android_webview] Add more params to request intercepting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix accidentally broken test Created 6 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 side-by-side diff with in-line comments
Download patch
Index: android_webview/javatests/src/org/chromium/android_webview/test/util/CommonResources.java
diff --git a/android_webview/javatests/src/org/chromium/android_webview/test/util/CommonResources.java b/android_webview/javatests/src/org/chromium/android_webview/test/util/CommonResources.java
index 5fae61ca794653762b963efa7c35ee36cc7b8620..2f8e900392fb915dd4d4718aed8e766f3e94e36d 100644
--- a/android_webview/javatests/src/org/chromium/android_webview/test/util/CommonResources.java
+++ b/android_webview/javatests/src/org/chromium/android_webview/test/util/CommonResources.java
@@ -105,4 +105,22 @@ public class CommonResources {
"</body>" +
"</html>";
}
+
+ public static String makeHtmlPageWithSimpleLinkTo(String headers, String destination) {
+ return makeHtmlPageFrom(headers,
+ "<a href=\"" + destination + "\" id=\"link\">" +
+ "<img class=\"big\" />" +
+ "</a>");
+ }
+
+ public static String makeHtmlPageWithSimpleLinkTo(String destination) {
+ return makeHtmlPageWithSimpleLinkTo("", destination);
+ }
+
+ public static String makeHtmlPageWithSimplePostFormTo(String destination) {
+ return makeHtmlPageFrom("",
+ "<form action=\"" + destination + "\" method=\"post\">" +
+ "<input type=\"submit\" value=\"post\" id=\"link\">" +
+ "</form>");
+ }
}

Powered by Google App Engine
This is Rietveld 408576698