[Httpunit-commit] CVS: httpunit/test/com/meterware/httpunit FormSubmitTest.java,1.19,1.20
Brought to you by:
russgold
From: Russell G. <rus...@us...> - 2002-08-16 17:24:04
|
Update of /cvsroot/httpunit/httpunit/test/com/meterware/httpunit In directory usw-pr-cvs1:/tmp/cvs-serv22152/test/com/meterware/httpunit Modified Files: FormSubmitTest.java Log Message: Peter Royal: fixed scripting disabled, query-only URL parsing bugs Index: FormSubmitTest.java =================================================================== RCS file: /cvsroot/httpunit/httpunit/test/com/meterware/httpunit/FormSubmitTest.java,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- FormSubmitTest.java 5 Aug 2002 15:20:51 -0000 1.19 +++ FormSubmitTest.java 16 Aug 2002 17:24:01 -0000 1.20 @@ -110,6 +110,16 @@ } + public void testSubmitStringWithQueryOnlyRelativeURL() throws Exception { + defineWebPage( "/blah/blah/blah", "<form method=GET action = '?recall=true'>" + + "<Input type=submit value=Go>" + + "</form>" ); + WebResponse page = _wc.getResponse( getHostPath() + "/blah/blah/blah.html" ); + WebRequest request = page.getForms()[0].getRequest(); + assertEquals( getHostPath() + "/blah/blah/blah.html?recall=true", request.getURL().toExternalForm() ); + } + + public void testSubmitStringAfterSetAction() throws Exception { defineWebPage( "Default", "<form method=GET action = \"/ask\">" + "<Input type=text name=age>" + |