[Httpunit-commit] CVS: httpunit/test/com/meterware/httpunit WebFrameTest.java,1.16,1.17
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2003-04-02 16:48:03
|
Update of /cvsroot/httpunit/httpunit/test/com/meterware/httpunit
In directory sc8-pr-cvs1:/tmp/cvs-serv20744/test/com/meterware/httpunit
Modified Files:
WebFrameTest.java
Log Message:
Now handle zero-length responses
Index: WebFrameTest.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/test/com/meterware/httpunit/WebFrameTest.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- WebFrameTest.java 23 Mar 2003 01:43:15 -0000 1.16
+++ WebFrameTest.java 2 Apr 2003 16:47:57 -0000 1.17
@@ -328,7 +328,6 @@
defineWebPage( "Linker", "<form action=redirect.html target=_self><input type=text name=sample value=z></form>" );
defineResource( "redirect.html?sample=z", "", HttpURLConnection.HTTP_MOVED_PERM );
addResourceHeader( "redirect.html?sample=z", "Location: " + getHostPath() + "/Target.html" );
- addResourceHeader( "redirect.html?sample=z", "Connection: close" ); // TODO see why this is needed and remove it
_wc.getResponse( getHostPath() + "/Frames.html" );
WebResponse response = _wc.getResponse( _wc.getFrameContents( "red" ).getForms()[0].getRequest() );
@@ -341,7 +340,6 @@
public void testSubFrameRedirect() throws Exception {
defineResource( "Linker.html", "", HttpURLConnection.HTTP_MOVED_PERM );
addResourceHeader( "Linker.html", "Location: " + getHostPath() + "/Target.html" );
- addResourceHeader( "Linker.html", "Connection: close" ); // TODO see why this is needed and remove it
_wc.getResponse( getHostPath() + "/Frames.html" );
assertMatchingSet( "Frames defined for the conversation", new String[] { "_top", "red", "blue" }, _wc.getFrameNames() );
|