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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698