[Httpunit-commit] CVS: httpunit/test/com/meterware/httpunit/javascript ScriptingTest.java,1.56,1.57
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2003-10-28 00:42:01
|
Update of /cvsroot/httpunit/httpunit/test/com/meterware/httpunit/javascript
In directory sc8-pr-cvs1:/tmp/cvs-serv20882/test/com/meterware/httpunit/javascript
Modified Files:
ScriptingTest.java
Log Message:
be more tolerant of bad values in Javascript cookie setting
Index: ScriptingTest.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/test/com/meterware/httpunit/javascript/ScriptingTest.java,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -r1.56 -r1.57
--- ScriptingTest.java 17 Oct 2003 13:44:58 -0000 1.56
+++ ScriptingTest.java 27 Oct 2003 21:16:10 -0000 1.57
@@ -632,6 +632,15 @@
}
+ public void testSetCookieToNull() throws Exception {
+ defineResource( "OnCommand.html", "<html><script>" +
+ "document.cookie = null;" +
+ "</script></html>" );
+ WebConversation wc = new WebConversation();
+ wc.getResponse( getHostPath() + "/OnCommand.html" );
+ }
+
+
public void testReadCookies() throws Exception {
defineResource( "OnCommand.html", "<html><head><script language='JavaScript'>" +
"function viewCookies() { \n" +
|