Update of /cvsroot/httpunit/httpunit/test/com/meterware/httpunit
In directory usw-pr-cvs1:/tmp/cvs-serv17008/test/com/meterware/httpunit
Modified Files:
FormSubmitTest.java
Log Message:
Only preload unvalidated requests with active parameters
Index: FormSubmitTest.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/test/com/meterware/httpunit/FormSubmitTest.java,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- FormSubmitTest.java 29 Aug 2002 15:32:44 -0000 1.23
+++ FormSubmitTest.java 29 Aug 2002 18:39:11 -0000 1.24
@@ -313,6 +313,18 @@
}
+ public void testImageButtonNoValueUncheckedPositionalSubmit() throws Exception {
+ HttpUnitOptions.setParameterValuesValidated( false );
+ defineWebPage( "Default", "<form method='GET' action='test.jsp'>" +
+ "<input type='image' src='image.gif' name='aButton'>" +
+ "</form>" );
+ WebResponse page = _wc.getResponse( getHostPath() + "/Default.html" );
+ WebForm form = page.getForms()[0];
+ WebRequest request = form.getRequest( form.getSubmitButton( "aButton" ), 20, 5 );
+ assertEqualQueries( getHostPath() + "/test.jsp?aButton.x=20&aButton.y=5", request.getURL().toExternalForm() );
+ }
+
+
public void testSubmitButtonAttributes() throws Exception {
defineWebPage( "Default", "<form method=GET action = \"/ask\">" +
"<Input type=text name=age value=12>" +
|