httpunit-commit Mailing List for httpunit (Page 6)
Brought to you by:
russgold
You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(5) |
Sep
(31) |
Oct
(39) |
Nov
(18) |
Dec
(6) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(8) |
Feb
(5) |
Mar
(8) |
Apr
(25) |
May
(20) |
Jun
(23) |
Jul
(28) |
Aug
(10) |
Sep
(3) |
Oct
(32) |
Nov
(61) |
Dec
(24) |
2002 |
Jan
(50) |
Feb
(34) |
Mar
(35) |
Apr
(3) |
May
(25) |
Jun
(25) |
Jul
(30) |
Aug
(146) |
Sep
(49) |
Oct
(156) |
Nov
(121) |
Dec
(54) |
2003 |
Jan
(12) |
Feb
(79) |
Mar
(88) |
Apr
(26) |
May
(67) |
Jun
(29) |
Jul
(8) |
Aug
(16) |
Sep
(20) |
Oct
(17) |
Nov
|
Dec
(5) |
2004 |
Jan
|
Feb
(40) |
Mar
(30) |
Apr
(5) |
May
|
Jun
(83) |
Jul
(34) |
Aug
(20) |
Sep
(44) |
Oct
(46) |
Nov
|
Dec
(14) |
2005 |
Jan
(4) |
Feb
|
Mar
(5) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(4) |
Oct
|
Nov
|
Dec
(1) |
2006 |
Jan
|
Feb
|
Mar
(26) |
Apr
(8) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(5) |
Nov
|
Dec
|
2008 |
Jan
|
Feb
|
Mar
|
Apr
(36) |
May
(38) |
Jun
(1) |
Jul
(1) |
Aug
|
Sep
(4) |
Oct
|
Nov
(18) |
Dec
(4) |
2009 |
Jan
|
Feb
(2) |
Mar
(3) |
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
(35) |
Sep
(1) |
Oct
|
Nov
|
Dec
(1) |
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2011 |
Jan
(9) |
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(21) |
Oct
(18) |
Nov
(1) |
Dec
|
From: <wol...@us...> - 2008-06-05 18:40:35
|
Revision: 988 http://httpunit.svn.sourceforge.net/httpunit/?rev=988&view=rev Author: wolfgang_fahl Date: 2008-06-05 11:40:32 -0700 (Thu, 05 Jun 2008) Log Message: ----------- Eclipse settings added Added Paths: ----------- trunk/httpunit/.settings/ trunk/httpunit/.settings/org.eclipse.jdt.core.prefs Added: trunk/httpunit/.settings/org.eclipse.jdt.core.prefs =================================================================== --- trunk/httpunit/.settings/org.eclipse.jdt.core.prefs (rev 0) +++ trunk/httpunit/.settings/org.eclipse.jdt.core.prefs 2008-06-05 18:40:32 UTC (rev 988) @@ -0,0 +1,12 @@ +#Thu Jun 05 20:38:34 CEST 2008 +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.4 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=warning +org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning +org.eclipse.jdt.core.compiler.source=1.3 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wol...@us...> - 2008-05-21 05:52:04
|
Revision: 987 http://httpunit.svn.sourceforge.net/httpunit/?rev=987&view=rev Author: wolfgang_fahl Date: 2008-05-20 22:51:34 -0700 (Tue, 20 May 2008) Log Message: ----------- updated for new maven2 repository Modified Paths: -------------- trunk/httpunit/.classpath Modified: trunk/httpunit/.classpath =================================================================== --- trunk/httpunit/.classpath 2008-05-20 20:42:40 UTC (rev 986) +++ trunk/httpunit/.classpath 2008-05-21 05:51:34 UTC (rev 987) @@ -5,28 +5,17 @@ <classpathentry kind="src" path="pending-tests"/> <classpathentry kind="src" path="examples"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> - <classpathentry kind="lib" path="jars/activation.jar"/> - <classpathentry kind="lib" path="jars/ant-dependencies.jar"/> - <classpathentry kind="lib" path="jars/mailapi.jar"/> <classpathentry kind="lib" path="jars/quicksite.jar"/> -<!-- you might want to create a class path variable MAVEN_REPOSITORY - that points to - e.g. C:/Dokumente und Einstellungen/<your username>/.maven/repository ---> - <classpathentry kind="var" path="MAVEN_REPOSITORY/jtidy/jars/jtidy-4aug2000r7_dev.jar"/> - <classpathentry kind="var" path="MAVEN_REPOSITORY/junit/jars/junit-3.8.1.jar"/> -<!-- you might want to decide which nekohtml to use - <classpathentry kind="var" path="MAVEN_REPOSITORY/nekohtml/jars/nekohtml-1.9.6.jar"/> ---> - <classpathentry kind="var" path="MAVEN_REPOSITORY/nekohtml/jars/nekohtml-0.9.5.jar"/> - <classpathentry kind="var" path="MAVEN_REPOSITORY/rhino/jars/js-1.6R5.jar" sourcepath="/pub/2008/rhino1_6R5.zip"/> - <classpathentry kind="var" path="MAVEN_REPOSITORY/servletapi/jars/servletapi-2.4.jar"/> - <classpathentry kind="var" path="MAVEN_REPOSITORY/xerces/jars/xercesImpl-2.6.1.jar" sourcepath="/pub/2008/Xerces-J-src.2.6.1.zip"/> - <classpathentry kind="var" path="MAVEN_REPOSITORY/xerces/jars/xmlParserAPIs-2.6.1.jar"/> -<!-- - this is how you could debug with a local Xerces - <classpathentry kind="lib" path="F:/pub/2008/Xerces-J-src.2.6.1.zip" sourcepath="F:/pub/2008/Xerces-J-src.2.6.1.zip"/> ---> + <classpathentry kind="var" path="MAVEN_REPOSITORY/jtidy/jtidy/4aug2000r7-dev/jtidy-4aug2000r7-dev.jar"/> + <classpathentry kind="var" path="MAVEN_REPOSITORY/junit/junit/3.8.1/junit-3.8.1.jar"/> + <classpathentry kind="var" path="MAVEN_REPOSITORY/nekohtml/nekohtml/0.9.5/nekohtml-0.9.5.jar"/> + <classpathentry kind="var" path="MAVEN_REPOSITORY/rhino/js/1.6R5/js-1.6R5.jar" sourcepath="/pub/2008/rhino1_6R5.zip"/> + <classpathentry kind="var" path="MAVEN_REPOSITORY/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar"/> + <classpathentry kind="var" path="MAVEN_REPOSITORY/xerces/xmlParserAPIs/2.6.1/xmlParserAPIs-2.6.1.jar" sourcepath="/pub/2008/Xerces-J-src.2.6.1.zip"/> + <classpathentry kind="var" path="MAVEN_REPOSITORY/xerces/xercesImpl/2.6.1/xercesImpl-2.6.1.jar"/> <classpathentry kind="lib" path="META-INF"/> + <classpathentry kind="var" path="MAVEN_REPOSITORY/javax/activation/activation/1.1/activation-1.1.jar"/> + <classpathentry kind="var" path="MAVEN_REPOSITORY/javax/mail/mail/1.4/mail-1.4.jar"/> + <classpathentry kind="lib" path="jars/maven-ant-tasks-2.0.9.jar"/> <classpathentry kind="output" path="bin"/> </classpath> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rus...@us...> - 2008-05-20 20:42:40
|
Revision: 986 http://httpunit.svn.sourceforge.net/httpunit/?rev=986&view=rev Author: russgold Date: 2008-05-20 13:42:40 -0700 (Tue, 20 May 2008) Log Message: ----------- populate the 1.7 release Added Paths: ----------- tags/httpunit_1_7/httpunit/ Copied: tags/httpunit_1_7/httpunit (from rev 985, trunk/httpunit) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rus...@us...> - 2008-05-20 20:40:44
|
Revision: 985 http://httpunit.svn.sourceforge.net/httpunit/?rev=985&view=rev Author: russgold Date: 2008-05-20 13:40:43 -0700 (Tue, 20 May 2008) Log Message: ----------- establish 1.7 release Added Paths: ----------- tags/httpunit_1_7/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rus...@us...> - 2008-05-20 20:26:23
|
Revision: 984 http://httpunit.svn.sourceforge.net/httpunit/?rev=984&view=rev Author: russgold Date: 2008-05-20 13:26:21 -0700 (Tue, 20 May 2008) Log Message: ----------- cleanup for 1.7 Modified Paths: -------------- trunk/httpunit/build.xml trunk/httpunit/sitedocs/doc/developers.xml trunk/httpunit/sitedocs/news.xml trunk/httpunit/src/com/meterware/httpunit/BlockElement.java trunk/httpunit/src/com/meterware/httpunit/Button.java trunk/httpunit/src/com/meterware/httpunit/HTMLElementBase.java trunk/httpunit/src/com/meterware/httpunit/HTMLElementScriptable.java trunk/httpunit/src/com/meterware/httpunit/WebRequestSource.java trunk/httpunit/src/com/meterware/httpunit/scripting/ScriptableDelegate.java Removed Paths: ------------- trunk/httpunit/lib/ Modified: trunk/httpunit/build.xml =================================================================== --- trunk/httpunit/build.xml 2008-05-20 19:57:25 UTC (rev 983) +++ trunk/httpunit/build.xml 2008-05-20 20:26:21 UTC (rev 984) @@ -28,7 +28,7 @@ <project name="httpunit" default="jar" basedir="." xmlns:artifact="urn:maven-artifact-ant"> <property name="name" value="httpunit" /> <property name="Name" value="HttpUnit" /> - <property name="version" value="development" /> + <property name="version" value="1.7" /> <property name="revision" value="$Rev$" /> <property name="debug" value="on" /> @@ -239,18 +239,11 @@ HttpUnit-Version: ${version} Build-Date: ${TODAY} Build-Time: ${TSTAMP} -Revision: ${revision} </echo> - <!-- compressed default jar file --> <jar jarfile="${lib.dir}/${name}.jar" manifest="${build.dir}/info.txt"> <fileset dir="${build.classes}" includes="com/**"/> <fileset dir="META-INF" includes="*.dtd"/> </jar> - <!-- non compressed default jar file --> - <jar jarfile="${lib.dir}/${name}_uncompressed.jar" manifest="${build.dir}/info.txt" compress="false" > - <fileset dir="${build.classes}" includes="com/**"/> - <fileset dir="META-INF" includes="*.dtd"/> - </jar> </target> Modified: trunk/httpunit/sitedocs/doc/developers.xml =================================================================== --- trunk/httpunit/sitedocs/doc/developers.xml 2008-05-20 19:57:25 UTC (rev 983) +++ trunk/httpunit/sitedocs/doc/developers.xml 2008-05-20 20:26:21 UTC (rev 984) @@ -2,7 +2,7 @@ <developers> <group type="Maintainers"> <developer username="russgold" name="Russell Gold" email="rus...@ht..."> - The author and maintainer of HttpUnit, Russell has been developing software for over 25 years, and has been + The author and maintainer of HttpUnit, Russell has been developing software for over 30 years, and has been programming in Java since 1996. He is currently working for Oracle in Moorestown, NJ on the OC4J application server. </developer> @@ -10,12 +10,12 @@ <group type="Committers"> <developer username="wolfgang_fahl" name="Wolfgang Fahl" email="wf...@bi..."> Wolfgang has been using httpunit for testing his UML2PHP project result since 2004. He started - being a committer in 2007. Wolfgang works with computers since 1979 when he was 16 years old. + being a committer in 2007. Wolfgang has worked with computers since 1979 when he was 16 years old. He studied computer science at RWTH Aachen, germany. He is a specialist in software engineering since 1991 and trainer for software architects since 2003. He learned Java the same year as Russell: 1996. Test first software development is a key concept of Wolfgang's work since the same year. He is currently founder and CEO of BITPlan GmbH, Düsseldorf. - <developer> + </developer> </group> <group type="Contributors (partial list)"> <developer name="Artashes Aghajanyan" email="Art...@ly..."/> @@ -41,28 +41,28 @@ <developer name="Troy Waldrep" email="twa...@da..."/> <developer name="Ron Webster" email="ron...@ge..."/> <developer name="Bernhard Wagner" email="bw...@xm..."/> - <developer name="ahansen"/> - <developer name="Alexey Bulat"/> - <developer name="Christoph"/> - <developer name="Dan Allen"/> - <developer name="David D Kilzer"/> - <developer name="fabrizio giustina"/> - <developer name="Glen Stampoultzis"/> - <developer name="gklopp"/> - <developer name="Hugh Winkler"/> - <developer name="James Abley"/> - <developer name="Jord Sonneveld"/> - <developer name="kauffmann81"/> - <developer name="Mark Childerson"/> - <developer name="Matt"/> - <developer name="Peter Phillips"/> - <developer name="Rafal Krzewski"/> - <developer name="Richard Lee"/> - <developer name="Satish Kolli"/> - <developer name="Serguei Khramtchenko"/> - <developer name="Seth Ladd"/> - <developer name="Tim"/> - <developer name="Ville Skytt"/> - <developer name="Yu Chen"/> + <developer name="ahansen"/> + <developer name="Alexey Bulat"/> + <developer name="Christoph"/> + <developer name="Dan Allen"/> + <developer name="David D Kilzer"/> + <developer name="fabrizio giustina"/> + <developer name="Glen Stampoultzis"/> + <developer name="gklopp"/> + <developer name="Hugh Winkler"/> + <developer name="James Abley"/> + <developer name="Jord Sonneveld"/> + <developer name="kauffmann81"/> + <developer name="Mark Childerson"/> + <developer name="Matt"/> + <developer name="Peter Phillips"/> + <developer name="Rafal Krzewski"/> + <developer name="Richard Lee"/> + <developer name="Satish Kolli"/> + <developer name="Serguei Khramtchenko"/> + <developer name="Seth Ladd"/> + <developer name="Tim"/> + <developer name="Ville Skytt"/> + <developer name="Yu Chen"/> </group> </developers> Modified: trunk/httpunit/sitedocs/news.xml =================================================================== --- trunk/httpunit/sitedocs/news.xml 2008-05-20 19:57:25 UTC (rev 983) +++ trunk/httpunit/sitedocs/news.xml 2008-05-20 20:26:21 UTC (rev 984) @@ -1,6 +1,6 @@ <?xml version='1.0' ?> <news> - <item date="20-May-2008">HttpUnit 1.7 released</item> + <item date="20-May-2008" url="doc/release_notes.html">HttpUnit 1.7 released</item> <item date="02-Apr-2008">Open Tracker items patches/bug incorporated</item> <item date="26-Nov-2006">Switched to subversion repository</item> <item date="27-Mar-2006">HttpUnit 1.6.2 released</item> Modified: trunk/httpunit/src/com/meterware/httpunit/BlockElement.java =================================================================== --- trunk/httpunit/src/com/meterware/httpunit/BlockElement.java 2008-05-20 19:57:25 UTC (rev 983) +++ trunk/httpunit/src/com/meterware/httpunit/BlockElement.java 2008-05-20 20:26:21 UTC (rev 984) @@ -134,12 +134,7 @@ return this.getScriptingHandler().doEventScript(eventScript); } - /** - * get the event Handler script for the event e.g. onchange, onmousedown, onclick, onmouseup - * execute the script if it's assigned by calling doEvent for the script - * @param eventName - * @return true if the event with the given name was handled - */ + public boolean handleEvent(String eventName) { return this.getScriptingHandler().handleEvent(eventName); } Modified: trunk/httpunit/src/com/meterware/httpunit/Button.java =================================================================== --- trunk/httpunit/src/com/meterware/httpunit/Button.java 2008-05-20 19:57:25 UTC (rev 983) +++ trunk/httpunit/src/com/meterware/httpunit/Button.java 2008-05-20 20:26:21 UTC (rev 984) @@ -82,9 +82,7 @@ /** * the onClickSequence for this button - * @param x - the x position - * @param y - the y position - * @return if the onClickSequence was handled + * @return true if the even was handled */ protected boolean doOnClickSequence(int x,int y) throws IOException, SAXException { verifyButtonEnabled(); @@ -104,13 +102,8 @@ doOnClickSequence(0,0); } - /** - * return the last result of verifyButtonEnabled or the - * initial enabled state derived from !isDisabled as originally setDisabled - * needed to fix bug report [ 1289151 ] Order of events in button.click() is wrong - * @return whether the button was originally enabled - */ - public boolean wasEnabled() { + + boolean wasEnabled() { return _wasEnabled; } Modified: trunk/httpunit/src/com/meterware/httpunit/HTMLElementBase.java =================================================================== --- trunk/httpunit/src/com/meterware/httpunit/HTMLElementBase.java 2008-05-20 19:57:25 UTC (rev 983) +++ trunk/httpunit/src/com/meterware/httpunit/HTMLElementBase.java 2008-05-20 20:26:21 UTC (rev 984) @@ -84,19 +84,12 @@ /** * optional do the event if it's defined - * @param eventScript - * @return true if the event script was run */ public boolean doEventScript(String eventScript) { return this.getScriptingHandler().doEventScript(eventScript); } - /** - * get the event Handler script for the event e.g. onchange, onmousedown, onclick, onmouseup - * execute the script if it's assigned by calling doEvent for the script - * @param eventName - * @return whether the event was handled - */ + public boolean handleEvent(String eventName) { return this.getScriptingHandler().handleEvent(eventName); } Modified: trunk/httpunit/src/com/meterware/httpunit/HTMLElementScriptable.java =================================================================== --- trunk/httpunit/src/com/meterware/httpunit/HTMLElementScriptable.java 2008-05-20 19:57:25 UTC (rev 983) +++ trunk/httpunit/src/com/meterware/httpunit/HTMLElementScriptable.java 2008-05-20 20:26:21 UTC (rev 984) @@ -86,23 +86,17 @@ _element.removeAttribute( attributeName ); } - /** - * get the event Handler script for the event e.g. onchange, onmousedown, onclick, onmouseup - * execute the script if it's assigned by calling doEvent for the script - * @param eventName - * @return whether the event with the givne name was handled - */ public boolean handleEvent(String eventName) { - // check whether onclick is activated - if (eventName.toLowerCase().equals("onclick")) { - handleEvent("onmousedown"); - } - String eventScript = getAttribute( eventName ); - boolean result=doEventScript(eventScript); - if (eventName.toLowerCase().equals("onclick")) { - handleEvent("onmouseup"); - } - return result; + // check whether onclick is activated + if (eventName.toLowerCase().equals( "onclick" )) { + handleEvent( "onmousedown" ); + } + String eventScript = getAttribute( eventName ); + boolean result = doEventScript( eventScript ); + if (eventName.toLowerCase().equals( "onclick" )) { + handleEvent( "onmouseup" ); + } + return result; } /** Modified: trunk/httpunit/src/com/meterware/httpunit/WebRequestSource.java =================================================================== --- trunk/httpunit/src/com/meterware/httpunit/WebRequestSource.java 2008-05-20 19:57:25 UTC (rev 983) +++ trunk/httpunit/src/com/meterware/httpunit/WebRequestSource.java 2008-05-20 20:26:21 UTC (rev 984) @@ -274,12 +274,7 @@ return this.getScriptingHandler().doEventScript(eventScript); } - /** - * get the event Handler script for the event e.g. onchange, onmousedown, onclick, onmouseup - * execute the script if it's assigned by calling doEvent for the script - * @param eventName - * @return whether the event with the given name was handled - */ + public boolean handleEvent(String eventName) { return this.getScriptingHandler().handleEvent(eventName); } Modified: trunk/httpunit/src/com/meterware/httpunit/scripting/ScriptableDelegate.java =================================================================== --- trunk/httpunit/src/com/meterware/httpunit/scripting/ScriptableDelegate.java 2008-05-20 19:57:25 UTC (rev 983) +++ trunk/httpunit/src/com/meterware/httpunit/scripting/ScriptableDelegate.java 2008-05-20 20:26:21 UTC (rev 984) @@ -64,21 +64,20 @@ /** * Executes the specified scripted event. * @param eventScript - the eventScript to execute + * @return true if the event has been handled. **/ public boolean doEventScript( String eventScript ) { - if (eventScript.length() == 0) return true; - return getScriptEngine().doEventScript( eventScript ); + return eventScript.length() == 0 || getScriptEngine().doEventScript( eventScript ); } /** - * get the event Handler script for the event e.g. onchange, onmousedown, onclick, onmouseup - * execute the script if it's assigned by calling doEvent for the script - * @param eventName + * Executes the event Handler script for the specified event (such as onchange, onmousedown, onclick, onmouseup) if it is defined. + * @param eventName the name of the event for which a handler should be run. * @return whether the event with the given name was handled */ public boolean handleEvent(String eventName) { - String eventScript=(String)get(eventName); - return doEventScript(eventScript); + String eventScript = (String) get(eventName); + return doEventScript( eventScript ); } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rus...@us...> - 2008-05-20 19:57:39
|
Revision: 983 http://httpunit.svn.sourceforge.net/httpunit/?rev=983&view=rev Author: russgold Date: 2008-05-20 12:57:25 -0700 (Tue, 20 May 2008) Log Message: ----------- make svn address clickable in release notes Modified Paths: -------------- trunk/httpunit/doc/release_notes.html Modified: trunk/httpunit/doc/release_notes.html =================================================================== --- trunk/httpunit/doc/release_notes.html 2008-05-20 19:47:44 UTC (rev 982) +++ trunk/httpunit/doc/release_notes.html 2008-05-20 19:57:25 UTC (rev 983) @@ -55,7 +55,7 @@ event involved and the link included a frame reference, it would return the contents of the referenced frame. </li> <li> HttpUnit configuration management has been moved from CVS to subversion at - http://httpunit.svn.sourceforge.net/svnroot/httpunit/trunk/httpunit + <a href="http://httpunit.svn.sourceforge.net/svnroot/httpunit/trunk/httpunit">http://httpunit.svn.sourceforge.net/svnroot/httpunit/trunk/httpunit</a> </li> <li>The build now uses the Maven dependencies task (see http://maven.apache.org/ant-tasks.html) rather than keeping the dependent jars in the repository. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rus...@us...> - 2008-05-20 19:47:49
|
Revision: 982 http://httpunit.svn.sourceforge.net/httpunit/?rev=982&view=rev Author: russgold Date: 2008-05-20 12:47:44 -0700 (Tue, 20 May 2008) Log Message: ----------- prepare for 1.7 release Modified Paths: -------------- trunk/httpunit/doc/release_notes.html trunk/httpunit/pom.xml trunk/httpunit/sitedocs/news.xml trunk/httpunit/sitedocs/site.xml trunk/httpunit/src/com/meterware/httpunit/cookies/Cookie.java trunk/httpunit/src/com/meterware/servletunit/ServletUnitServletContext.java trunk/httpunit/test/com/meterware/httpunit/cookies/CookieTest.java Modified: trunk/httpunit/doc/release_notes.html =================================================================== --- trunk/httpunit/doc/release_notes.html 2008-05-19 17:56:38 UTC (rev 981) +++ trunk/httpunit/doc/release_notes.html 2008-05-20 19:47:44 UTC (rev 982) @@ -20,7 +20,7 @@ <h2>Revision History:</h2> -<h3>Version 1.7 Released 2008-05-14</h3> +<h3>Version 1.7 Released 2008-05-20</h3> <h4>Acknowledgements:</h4> This project would almost certainly have remained dormant without the extraordinary contributions of our new committer, Wolfgang Fahl. Wolfgang has been extremely active over the past few months, erasing the backlog in bug, patches, and enhancement requests, @@ -40,7 +40,7 @@ <li>Hugh Winkler for fixing getPathInfo decoding</li> <li>David D. Kilzer for supporting direct invocation ot javascript events</li> <li>Fabrizio Giustina for enabling html parsing of xml responses</li> - <li>Roger Lindsj\xF6 for adding handling of empty error pages under JDK 1.5</li> + <li>Roger Lindsj for adding handling of empty error pages under JDK 1.5</li> </ul> <h4>Notes:</h4> @@ -58,7 +58,7 @@ http://httpunit.svn.sourceforge.net/svnroot/httpunit/trunk/httpunit </li> <li>The build now uses the Maven dependencies task (see http://maven.apache.org/ant-tasks.html) rather than - keeping the dependent jars in cvs. + keeping the dependent jars in the repository. </li> <li>When using the nekoHtml parser, tag and attribute names now default to lower case, rather than upper case as before</li> <li>Empty cells from tables are no longer automatically purged when searching for a table by its first non-blank cell</li> Modified: trunk/httpunit/pom.xml =================================================================== --- trunk/httpunit/pom.xml 2008-05-19 17:56:38 UTC (rev 981) +++ trunk/httpunit/pom.xml 2008-05-20 19:47:44 UTC (rev 982) @@ -17,7 +17,7 @@ <modelVersion>4.0.0</modelVersion> <groupId>httpunit</groupId> <artifactId>httpunit</artifactId> - <version>1.7-SNAPSHOT</version> + <version>1.7</version> <description>A library for testing websites programmatically</description> <build> <sourceDirectory>src</sourceDirectory> @@ -153,6 +153,16 @@ <artifactId>jtidy</artifactId> <version>4aug2000r7-dev</version> </dependency> + <dependency> + <groupId>xerces</groupId> + <artifactId>xercesImpl</artifactId> + <version>2.6.1</version> + </dependency> + <dependency> + <groupId>xerces</groupId> + <artifactId>xmlParserAPIs</artifactId> + <version>2.6.1</version> + </dependency> <dependency> <groupId>javax.mail</groupId> <artifactId>mail</artifactId> Modified: trunk/httpunit/sitedocs/news.xml =================================================================== --- trunk/httpunit/sitedocs/news.xml 2008-05-19 17:56:38 UTC (rev 981) +++ trunk/httpunit/sitedocs/news.xml 2008-05-20 19:47:44 UTC (rev 982) @@ -1,5 +1,6 @@ <?xml version='1.0' ?> <news> + <item date="20-May-2008">HttpUnit 1.7 released</item> <item date="02-Apr-2008">Open Tracker items patches/bug incorporated</item> <item date="26-Nov-2006">Switched to subversion repository</item> <item date="27-Mar-2006">HttpUnit 1.6.2 released</item> Modified: trunk/httpunit/sitedocs/site.xml =================================================================== --- trunk/httpunit/sitedocs/site.xml 2008-05-19 17:56:38 UTC (rev 981) +++ trunk/httpunit/sitedocs/site.xml 2008-05-20 19:47:44 UTC (rev 982) @@ -11,7 +11,7 @@ <fragment source="sitedocs/doc/license.html"/> </page> - <external location="http://prdownloads.sourceforge.net/httpunit/httpunit-1.6.2.zip?download" item="Download 1.6.2"/> + <external location="http://prdownloads.sourceforge.net/httpunit/httpunit-1.7.zip?download" item="Download 1.7"/> <space/> <page location="doc/cookbook.html" title="Cookbook"> Modified: trunk/httpunit/src/com/meterware/httpunit/cookies/Cookie.java =================================================================== --- trunk/httpunit/src/com/meterware/httpunit/cookies/Cookie.java 2008-05-19 17:56:38 UTC (rev 981) +++ trunk/httpunit/src/com/meterware/httpunit/cookies/Cookie.java 2008-05-20 19:47:44 UTC (rev 982) @@ -44,15 +44,17 @@ private String _domain; private long _expiredTime; - - /** - * @return the _expiredTime in milliseconds - */ - public long getExpiredTime() { - return _expiredTime; - } - + + /** + * @return the _expiredTime in milliseconds + */ + public long getExpiredTime() { + return _expiredTime; + } + + + /** * DateFormat to be used to format original Netscape cookies */ private final static DateFormat originalCookieFormat = Modified: trunk/httpunit/src/com/meterware/servletunit/ServletUnitServletContext.java =================================================================== --- trunk/httpunit/src/com/meterware/servletunit/ServletUnitServletContext.java 2008-05-19 17:56:38 UTC (rev 981) +++ trunk/httpunit/src/com/meterware/servletunit/ServletUnitServletContext.java 2008-05-20 19:47:44 UTC (rev 982) @@ -359,6 +359,13 @@ return _application.getDisplayName(); } +//-------------------------------------- servlet-api 2.5 additions ----------------------------------------------- + + public String getContextPath() { + return null; + } + + //------------------------------------------- package members ---------------------------------------------------- Modified: trunk/httpunit/test/com/meterware/httpunit/cookies/CookieTest.java =================================================================== --- trunk/httpunit/test/com/meterware/httpunit/cookies/CookieTest.java 2008-05-19 17:56:38 UTC (rev 981) +++ trunk/httpunit/test/com/meterware/httpunit/cookies/CookieTest.java 2008-05-20 19:47:44 UTC (rev 982) @@ -172,37 +172,38 @@ * test cookie age and expiration handling * see also Friday Fun: I Hate Cookies * http://www.mnot.net/blog/2006/10/27/cookie_fun - * @throws Exception + * @throws Exception when an unexpected error occurs */ public void testCookieAge() throws Exception { - String ages[]= {"max-age=5000", - "Max-Age=3000", - "expires=Tue, 29-Mar-2005 19:30:42 GMT; Max-Age=2592000", - "Max-Age=2592000;expires=Tue, 29-Mar-2005 19:30:42 GMT", - "expires=Tue, 29-Mar-2005 19:30:42 GMT", - "Expires=Wednesday, 01-Jan-1970 0:0:00 GMT" - }; - long expectedMilliSeconds[]={System.currentTimeMillis()+5000*1000, - System.currentTimeMillis()+3000*1000, - 1112124642000l, - 1112124642000l, - 1112124642000l, - 0}; - for (int i=0;i<ages.length;i++) { - String index=""+i; - String cookieName="cookie"+index.trim(); - String header=cookieName+"=cookievalue;"+ages[i]; - TestSource source=new TestSource(new URL("http://www.somedomain.com/somepath/"),header); - CookieJar jar = new CookieJar(source); - Cookie cookie=jar.getCookie(cookieName); - assertTrue(cookieName+" not null",cookie!=null); - if (cookie!=null) { - long expiredTime=cookie.getExpiredTime(); - assertEquals(cookieName+" expiration",expiredTime,expectedMilliSeconds[i]); - } - } + String ages[] = {"max-age=5000", + "Max-Age=3000", + "expires=Tue, 29-Mar-2005 19:30:42 GMT; Max-Age=2592000", + "Max-Age=2592000;expires=Tue, 29-Mar-2005 19:30:42 GMT", + "expires=Tue, 29-Mar-2005 19:30:42 GMT", + "Expires=Wednesday, 01-Jan-1970 0:0:00 GMT" + }; + long expectedMilliSeconds[] = {System.currentTimeMillis() + 5000 * 1000, + System.currentTimeMillis() + 3000 * 1000, + 1112124642000l, + 1112124642000l, + 1112124642000l, + 0}; + + for (int i = 0; i < ages.length; i++) { + String index = "" + i; + String cookieName = "cookie" + index.trim(); + String header = cookieName + "=cookievalue;" + ages[i]; + TestSource source = new TestSource( new URL( "http://www.somedomain.com/somepath/" ), header ); + CookieJar jar = new CookieJar( source ); + Cookie cookie = jar.getCookie( cookieName ); + assertNotNull( cookieName + " not null", cookie ); + + long expiredTime = cookie.getExpiredTime(); + assertEquals( cookieName + " expiration", expiredTime, expectedMilliSeconds[i] ); + } } + public void testHeaderGeneration() throws Exception { CookieJar jar = new CookieJar(); jar.putCookie( "zero", "nil" ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rus...@us...> - 2008-05-19 17:56:41
|
Revision: 981 http://httpunit.svn.sourceforge.net/httpunit/?rev=981&view=rev Author: russgold Date: 2008-05-19 10:56:38 -0700 (Mon, 19 May 2008) Log Message: ----------- remove now-superfluous jars Modified Paths: -------------- trunk/httpunit/build.xml Removed Paths: ------------- trunk/httpunit/jars/activation.jar trunk/httpunit/jars/ant-dependencies.jar trunk/httpunit/jars/jars.txt trunk/httpunit/jars/mailapi.jar trunk/httpunit/jars/rhino-patch.txt Modified: trunk/httpunit/build.xml =================================================================== --- trunk/httpunit/build.xml 2008-05-19 17:08:44 UTC (rev 980) +++ trunk/httpunit/build.xml 2008-05-19 17:56:38 UTC (rev 981) @@ -1,25 +1,26 @@ <?xml version="1.0" ?> -<!-- - * http://sourceforge.net/projects/httpunit/ - * Copyright (c) 2002-2008 Russell Gold - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated - * documentation files (the "Software"), to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and - * to permit persons to whom the Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all copies or substantial portions - * of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO - * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF - * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - * DEALINGS IN THE SOFTWARE. - $Header$ - $Id$ - $Log$ ---> +<!-- **************************************************************************************************************** +* +* $Id$ +* +* http://httpunit.org/ +* Copyright (c) 2002-2008 Russell Gold +* +* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated +* documentation files (the "Software"), to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and +* to permit persons to whom the Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice shall be included in all copies or substantial portions +* of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO +* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF +* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +* +**************************************************************************************************************** --> <!-- ======================================================================= --> <!-- httpunit build file --> @@ -58,17 +59,6 @@ <property name="test.class" value="com.meterware.httpunit.HttpUnitSuite" /> <property name="servlet.test.class" value="com.meterware.servletunit.ServletUnitSuite" /> -<!-- =================================================================== --> -<!-- Defines the classpath used for testing. --> -<!-- =================================================================== --> -<path id="test.classpath"> - <fileset dir="${jars.dir}"> - <include name="activation.jar"/> - <include name="mailapi.jar" /> - </fileset> -</path> - - <!-- =================================================================== --> <!-- Prepares the build directory --> <!-- =================================================================== --> @@ -97,9 +87,8 @@ <echo message="using repository classpath"/> <typedef classpath="${jars.dir}/maven-ant-tasks-2.0.9.jar" resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant" /> - <artifact:pom file="pom.xml" id="maven.project"/> <artifact:dependencies pathId="base.classpath" fileSetId="distributed.jars"> - <pom refid="maven.project"/> + <pom file="pom.xml"/> </artifact:dependencies> </target> @@ -116,7 +105,7 @@ <available property="jsdk.present" classname="javax.servlet.http.HttpServlet" classpathref="base.classpath" /> <available property="javamail.present" classname="javax.mail.internet.MimeMultipart" - classpathref="test.classpath" /> + classpathref="base.classpath" /> <available property="jaxp.present" classname="javax.xml.parsers.DocumentBuilderFactory" classpathref="base.classpath" /> <available property="rhino.present" classname="org.mozilla.javascript.Context" @@ -195,7 +184,6 @@ debug="on" deprecation="off" optimize="off"> <classpath> <path refid="base.classpath" /> - <path refid="test.classpath" /> <pathelement location="${build.classes}" /> </classpath> <exclude name="**/servletunit/*" unless="jsdk.present" /> @@ -219,7 +207,6 @@ <java classname="${test.class}" fork="yes" > <classpath> <path refid="base.classpath" /> - <path refid="test.classpath" /> <pathelement location="${build.classes}" /> <pathelement location="META-INF" /> <pathelement location="${test.classes}" /> Deleted: trunk/httpunit/jars/activation.jar =================================================================== (Binary files differ) Deleted: trunk/httpunit/jars/ant-dependencies.jar =================================================================== (Binary files differ) Deleted: trunk/httpunit/jars/jars.txt =================================================================== --- trunk/httpunit/jars/jars.txt 2008-05-19 17:08:44 UTC (rev 980) +++ trunk/httpunit/jars/jars.txt 2008-05-19 17:56:38 UTC (rev 981) @@ -1,5 +0,0 @@ -Jars used: - -(for testing HttpUnit only) -mail (javamail 1.2) -activation (jaf 1.0.1) Deleted: trunk/httpunit/jars/mailapi.jar =================================================================== (Binary files differ) Deleted: trunk/httpunit/jars/rhino-patch.txt =================================================================== --- trunk/httpunit/jars/rhino-patch.txt 2008-05-19 17:08:44 UTC (rev 980) +++ trunk/httpunit/jars/rhino-patch.txt 2008-05-19 17:56:38 UTC (rev 981) @@ -1,24 +0,0 @@ -Index: js/rhino/src/org/mozilla/javascript/Interpreter.java -=================================================================== -RCS file: /cvsroot/mozilla/js/rhino/src/org/mozilla/javascript/Interpreter.java,v -retrieving revision 1.130 -diff -u -r1.130 Interpreter.java ---- js/rhino/src/org/mozilla/javascript/Interpreter.java 17 Feb 2003 08:50:55 -0000 1.130 -+++ js/rhino/src/org/mozilla/javascript/Interpreter.java 17 Feb 2003 15:43:53 -0000 -@@ -2032,6 +2032,16 @@ - --stackTop; - Object lhs = stack[stackTop]; - if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); -+ else if (lhs == undefined) { -+ // special code for better error message for get property from undefined -+ int j = pc-6; -+ while (j > 0 && iCode[j] != 0) j--; -+ int i = getShort(iCode, j); -+ if (i >= 0 && i < strings.length) { -+ lhs=strings[i]; -+ throw NativeGlobal.typeError1( "msg.is.not.defined", ScriptRuntime.toString(lhs),scope ); -+ } -+ } - stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); - break; - } \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rus...@us...> - 2008-05-19 17:08:52
|
Revision: 980 http://httpunit.svn.sourceforge.net/httpunit/?rev=980&view=rev Author: russgold Date: 2008-05-19 10:08:44 -0700 (Mon, 19 May 2008) Log Message: ----------- Use pom.xml as the source for dependencies Modified Paths: -------------- trunk/httpunit/build.xml trunk/httpunit/pom.xml Modified: trunk/httpunit/build.xml =================================================================== --- trunk/httpunit/build.xml 2008-05-19 16:54:31 UTC (rev 979) +++ trunk/httpunit/build.xml 2008-05-19 17:08:44 UTC (rev 980) @@ -97,12 +97,9 @@ <echo message="using repository classpath"/> <typedef classpath="${jars.dir}/maven-ant-tasks-2.0.9.jar" resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant" /> + <artifact:pom file="pom.xml" id="maven.project"/> <artifact:dependencies pathId="base.classpath" fileSetId="distributed.jars"> - <dependency groupId="rhino" artifactId="js" version="1.6R5" /> - <dependency groupId="junit" artifactId="junit" version="3.8.1" /> - <dependency groupId="nekohtml" artifactId="nekohtml" version="0.9.5"/> - <dependency groupId="javax.servlet" artifactId="servlet-api" version="2.4" /> - <dependency groupId="jtidy" artifactId="jtidy" version="4aug2000r7-dev"/> + <pom refid="maven.project"/> </artifact:dependencies> </target> Modified: trunk/httpunit/pom.xml =================================================================== --- trunk/httpunit/pom.xml 2008-05-19 16:54:31 UTC (rev 979) +++ trunk/httpunit/pom.xml 2008-05-19 17:08:44 UTC (rev 980) @@ -18,7 +18,7 @@ <groupId>httpunit</groupId> <artifactId>httpunit</artifactId> <version>1.7-SNAPSHOT</version> - <description></description> + <description>A library for testing websites programmatically</description> <build> <sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory> @@ -141,7 +141,7 @@ <dependency> <groupId>nekohtml</groupId> <artifactId>nekohtml</artifactId> - <version>1.9.6</version> + <version>0.9.5</version> </dependency> <dependency> <groupId>javax.servlet</groupId> @@ -154,16 +154,6 @@ <version>4aug2000r7-dev</version> </dependency> <dependency> - <groupId>xerces</groupId> - <artifactId>xercesImpl</artifactId> - <version>2.6.1</version> - </dependency> - <dependency> - <groupId>xerces</groupId> - <artifactId>xmlParserAPIs</artifactId> - <version>2.6.1</version> - </dependency> - <dependency> <groupId>javax.mail</groupId> <artifactId>mail</artifactId> <version>1.4</version> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rus...@us...> - 2008-05-19 16:54:52
|
Revision: 979 http://httpunit.svn.sourceforge.net/httpunit/?rev=979&view=rev Author: russgold Date: 2008-05-19 09:54:31 -0700 (Mon, 19 May 2008) Log Message: ----------- switch httpunit to use maven ant tasks Modified Paths: -------------- trunk/httpunit/build.xml trunk/httpunit/doc/release_notes.html Added Paths: ----------- trunk/httpunit/jars/maven-ant-tasks-2.0.9.jar Modified: trunk/httpunit/build.xml =================================================================== --- trunk/httpunit/build.xml 2008-05-19 14:22:02 UTC (rev 978) +++ trunk/httpunit/build.xml 2008-05-19 16:54:31 UTC (rev 979) @@ -24,7 +24,7 @@ <!-- ======================================================================= --> <!-- httpunit build file --> <!-- ======================================================================= --> -<project name="httpunit" default="jar" basedir="."> +<project name="httpunit" default="jar" basedir="." xmlns:artifact="urn:maven-artifact-ant"> <property name="name" value="httpunit" /> <property name="Name" value="HttpUnit" /> <property name="version" value="development" /> @@ -92,25 +92,18 @@ </path> </target> - <!-- use ant-dependencies special ant-task to optionally download missing parts from maven repository --> + <!-- use maven ant-task to optionally download missing parts from maven repository --> <target name="prepare_repository_classpath" depends="check_jars_dir" unless="have.local.jars"> <echo message="using repository classpath"/> - <!-- Russell's proxy --> - <setproxy proxyhost="www-proxy.us.oracle.com" proxyport="80"/> - <typedef classpath="${jars.dir}/ant-dependencies.jar" resource="dependencies.properties" /> - <dependencies pathId="base.classpath" fileSetId="distributed.jars"> - <!-- get from http://www.ibiblio.org/maven/rhino/jars/ --> - <dependency group="rhino" artifact="js" version="1.6R5" website="http://www.mozilla.org/rhino/download.html" /> - <!-- older version - < dependency group="rhino" artifact="rhino" version="1.5R4.1" website="http://www.mozilla.org/rhino/download.html" /> - --> - <dependency group="junit" version="3.8.1" /> - <dependency group="nekohtml" version="0.9.5" unless="use.jtidy"/> - <dependency group="servletapi" version="2.4" /> - <dependency group="jtidy" version="4aug2000r7-dev"/> - <dependency group="xerces" version="2.6.1" artifact="xercesImpl"/> - <dependency group="xerces" version="2.6.1" artifact="xmlParserAPIs"/> - </dependencies> + + <typedef classpath="${jars.dir}/maven-ant-tasks-2.0.9.jar" resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant" /> + <artifact:dependencies pathId="base.classpath" fileSetId="distributed.jars"> + <dependency groupId="rhino" artifactId="js" version="1.6R5" /> + <dependency groupId="junit" artifactId="junit" version="3.8.1" /> + <dependency groupId="nekohtml" artifactId="nekohtml" version="0.9.5"/> + <dependency groupId="javax.servlet" artifactId="servlet-api" version="2.4" /> + <dependency groupId="jtidy" artifactId="jtidy" version="4aug2000r7-dev"/> + </artifact:dependencies> </target> <target name="prepare" depends="prepare_local_classpath,prepare_repository_classpath"> Modified: trunk/httpunit/doc/release_notes.html =================================================================== --- trunk/httpunit/doc/release_notes.html 2008-05-19 14:22:02 UTC (rev 978) +++ trunk/httpunit/doc/release_notes.html 2008-05-19 16:54:31 UTC (rev 979) @@ -57,7 +57,7 @@ <li> HttpUnit configuration management has been moved from CVS to subversion at http://httpunit.svn.sourceforge.net/svnroot/httpunit/trunk/httpunit </li> - <li>The build now uses the ant-dependencies task (see http://www.httpunit.org/doc/dependencies.html) rather than + <li>The build now uses the Maven dependencies task (see http://maven.apache.org/ant-tasks.html) rather than keeping the dependent jars in cvs. </li> <li>When using the nekoHtml parser, tag and attribute names now default to lower case, rather than upper case as before</li> Added: trunk/httpunit/jars/maven-ant-tasks-2.0.9.jar =================================================================== (Binary files differ) Property changes on: trunk/httpunit/jars/maven-ant-tasks-2.0.9.jar ___________________________________________________________________ Name: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rus...@us...> - 2008-05-19 14:22:29
|
Revision: 978 http://httpunit.svn.sourceforge.net/httpunit/?rev=978&view=rev Author: russgold Date: 2008-05-19 07:22:02 -0700 (Mon, 19 May 2008) Log Message: ----------- use jdk version rather than class to detect dom3 Modified Paths: -------------- trunk/httpunit/build.xml Modified: trunk/httpunit/build.xml =================================================================== --- trunk/httpunit/build.xml 2008-05-16 20:59:33 UTC (rev 977) +++ trunk/httpunit/build.xml 2008-05-19 14:22:02 UTC (rev 978) @@ -96,7 +96,7 @@ <target name="prepare_repository_classpath" depends="check_jars_dir" unless="have.local.jars"> <echo message="using repository classpath"/> <!-- Russell's proxy --> - <!--<setproxy proxyhost="www-proxy.us.oracle.com" proxyport="80"/>--> + <setproxy proxyhost="www-proxy.us.oracle.com" proxyport="80"/> <typedef classpath="${jars.dir}/ant-dependencies.jar" resource="dependencies.properties" /> <dependencies pathId="base.classpath" fileSetId="distributed.jars"> <!-- get from http://www.ibiblio.org/maven/rhino/jars/ --> @@ -122,7 +122,7 @@ <!-- =================================================================== --> <!-- Check to see what optional dependencies are available --> <!-- =================================================================== --> -<target name="check_for_optional_packages"> +<target name="check_for_optional_packages" depends="prepare"> <available property="jsdk.present" classname="javax.servlet.http.HttpServlet" classpathref="base.classpath" /> <available property="javamail.present" classname="javax.mail.internet.MimeMultipart" @@ -137,15 +137,16 @@ classpathref="base.classpath" /> <available property="junit.present" classname="junit.framework.Test" classpathref="base.classpath" /> - <available property="dom3.present" classname="org.w3c.dom.TypeInfo" - classpathref="base.classpath" /> + <condition property="dom3.absent"> + <contains string="${java.version}" substring="1.4"/> + </condition> </target> <!-- =================================================================== --> <!-- Compiles the source code --> <!-- =================================================================== --> -<target name="compile-for-java2" depends="prepare,check_for_optional_packages" unless="dom3.present"> +<target name="compile-for-java2" depends="prepare,check_for_optional_packages" if="dom3.absent"> <mkdir dir="${build.classes}" /> <javac srcdir="src-1.4" destdir="${build.classes}"/> </target> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wol...@us...> - 2008-05-16 20:59:34
|
Revision: 977 http://httpunit.svn.sourceforge.net/httpunit/?rev=977&view=rev Author: wolfgang_fahl Date: 2008-05-16 13:59:33 -0700 (Fri, 16 May 2008) Log Message: ----------- not for relase notes - fixed missing imports and changed .classpath for Eclipse Modified Paths: -------------- trunk/httpunit/.classpath trunk/httpunit/pending-tests/com/meterware/httpunit/NewParsingTests.java trunk/httpunit/pending-tests/com/meterware/httpunit/javascript/NewScriptingEngineTests.java trunk/httpunit/pending-tests/com/meterware/httpunit/javascript/NewScriptingTests.java Modified: trunk/httpunit/.classpath =================================================================== --- trunk/httpunit/.classpath 2008-05-16 20:43:00 UTC (rev 976) +++ trunk/httpunit/.classpath 2008-05-16 20:59:33 UTC (rev 977) @@ -9,14 +9,24 @@ <classpathentry kind="lib" path="jars/ant-dependencies.jar"/> <classpathentry kind="lib" path="jars/mailapi.jar"/> <classpathentry kind="lib" path="jars/quicksite.jar"/> +<!-- you might want to create a class path variable MAVEN_REPOSITORY + that points to + e.g. C:/Dokumente und Einstellungen/<your username>/.maven/repository +--> <classpathentry kind="var" path="MAVEN_REPOSITORY/jtidy/jars/jtidy-4aug2000r7_dev.jar"/> <classpathentry kind="var" path="MAVEN_REPOSITORY/junit/jars/junit-3.8.1.jar"/> +<!-- you might want to decide which nekohtml to use <classpathentry kind="var" path="MAVEN_REPOSITORY/nekohtml/jars/nekohtml-1.9.6.jar"/> +--> + <classpathentry kind="var" path="MAVEN_REPOSITORY/nekohtml/jars/nekohtml-0.9.5.jar"/> <classpathentry kind="var" path="MAVEN_REPOSITORY/rhino/jars/js-1.6R5.jar" sourcepath="/pub/2008/rhino1_6R5.zip"/> <classpathentry kind="var" path="MAVEN_REPOSITORY/servletapi/jars/servletapi-2.4.jar"/> <classpathentry kind="var" path="MAVEN_REPOSITORY/xerces/jars/xercesImpl-2.6.1.jar" sourcepath="/pub/2008/Xerces-J-src.2.6.1.zip"/> <classpathentry kind="var" path="MAVEN_REPOSITORY/xerces/jars/xmlParserAPIs-2.6.1.jar"/> +<!-- + this is how you could debug with a local Xerces <classpathentry kind="lib" path="F:/pub/2008/Xerces-J-src.2.6.1.zip" sourcepath="F:/pub/2008/Xerces-J-src.2.6.1.zip"/> +--> <classpathentry kind="lib" path="META-INF"/> <classpathentry kind="output" path="bin"/> </classpath> Modified: trunk/httpunit/pending-tests/com/meterware/httpunit/NewParsingTests.java =================================================================== --- trunk/httpunit/pending-tests/com/meterware/httpunit/NewParsingTests.java 2008-05-16 20:43:00 UTC (rev 976) +++ trunk/httpunit/pending-tests/com/meterware/httpunit/NewParsingTests.java 2008-05-16 20:59:33 UTC (rev 977) @@ -19,6 +19,13 @@ * DEALINGS IN THE SOFTWARE. * *******************************************************************************************************************/ +import com.meterware.httpunit.HttpUnitTest; +import com.meterware.httpunit.WebClient; +import com.meterware.httpunit.WebConversation; +import com.meterware.httpunit.WebForm; +import com.meterware.httpunit.WebLink; +import com.meterware.httpunit.WebResponse; + import junit.framework.Test; import junit.framework.TestSuite; Modified: trunk/httpunit/pending-tests/com/meterware/httpunit/javascript/NewScriptingEngineTests.java =================================================================== --- trunk/httpunit/pending-tests/com/meterware/httpunit/javascript/NewScriptingEngineTests.java 2008-05-16 20:43:00 UTC (rev 976) +++ trunk/httpunit/pending-tests/com/meterware/httpunit/javascript/NewScriptingEngineTests.java 2008-05-16 20:59:33 UTC (rev 977) @@ -20,6 +20,8 @@ * *******************************************************************************************************************/ import com.meterware.httpunit.*; +import com.meterware.httpunit.javascript.AbstractJavaScriptTest; + import junit.framework.TestSuite; import junit.textui.TestRunner; Modified: trunk/httpunit/pending-tests/com/meterware/httpunit/javascript/NewScriptingTests.java =================================================================== --- trunk/httpunit/pending-tests/com/meterware/httpunit/javascript/NewScriptingTests.java 2008-05-16 20:43:00 UTC (rev 976) +++ trunk/httpunit/pending-tests/com/meterware/httpunit/javascript/NewScriptingTests.java 2008-05-16 20:59:33 UTC (rev 977) @@ -22,6 +22,8 @@ import com.meterware.httpunit.WebConversation; import com.meterware.httpunit.HttpUnitOptions; +import com.meterware.httpunit.javascript.AbstractJavaScriptTest; + import junit.textui.TestRunner; import junit.framework.TestSuite; @@ -152,14 +154,14 @@ // alert(var25500);}' failed: java.lang.IllegalArgumentException: out of range index // for 50000 lines and opt level 0 if ((optimizationLevel >= 0) && (lines >= 50000)) { - this.warnDisabled( "testLargeJavaScript", + this.warnDisabled( "testLargeJavaScript","C",2, "fails with runtime Exception for " + lines + " lines at optimizationLevel " + optimizationLevel + " the default is level -1 so we only warn" ); } else { throw re; } } catch (java.lang.OutOfMemoryError ome) { if (lines >= expectMemoryExceededForLinesOver) { - this.warnDisabled( "testLargeJavaScript", + this.warnDisabled( "testLargeJavaScript","C",2, "fails with out of memory error for " + lines + " lines at optimizationLevel " + optimizationLevel + " we expect this for more than " + expectMemoryExceededForLinesOver + " lines" ); break; } else { @@ -168,7 +170,7 @@ } catch (java.lang.ClassFormatError cfe) { // java.lang.ClassFormatError: Invalid method Code length 223990 in class file org/mozilla/javascript/gen/c1 if (optimizationLevel >= 0) - this.warnDisabled( "testLargeJavaScript", + this.warnDisabled( "testLargeJavaScript","C",2, "fails with class format error for " + lines + " lines at optimizationLevel " + optimizationLevel + " the default is level -1 so we only warn" ); else throw cfe; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wol...@us...> - 2008-05-16 20:43:20
|
Revision: 976 http://httpunit.svn.sourceforge.net/httpunit/?rev=976&view=rev Author: wolfgang_fahl Date: 2008-05-16 13:43:00 -0700 (Fri, 16 May 2008) Log Message: ----------- Eclipse configuration files added Added Paths: ----------- trunk/httpunit/.classpath trunk/httpunit/.project Added: trunk/httpunit/.classpath =================================================================== --- trunk/httpunit/.classpath (rev 0) +++ trunk/httpunit/.classpath 2008-05-16 20:43:00 UTC (rev 976) @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="src" path="src"/> + <classpathentry kind="src" path="test"/> + <classpathentry kind="src" path="pending-tests"/> + <classpathentry kind="src" path="examples"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> + <classpathentry kind="lib" path="jars/activation.jar"/> + <classpathentry kind="lib" path="jars/ant-dependencies.jar"/> + <classpathentry kind="lib" path="jars/mailapi.jar"/> + <classpathentry kind="lib" path="jars/quicksite.jar"/> + <classpathentry kind="var" path="MAVEN_REPOSITORY/jtidy/jars/jtidy-4aug2000r7_dev.jar"/> + <classpathentry kind="var" path="MAVEN_REPOSITORY/junit/jars/junit-3.8.1.jar"/> + <classpathentry kind="var" path="MAVEN_REPOSITORY/nekohtml/jars/nekohtml-1.9.6.jar"/> + <classpathentry kind="var" path="MAVEN_REPOSITORY/rhino/jars/js-1.6R5.jar" sourcepath="/pub/2008/rhino1_6R5.zip"/> + <classpathentry kind="var" path="MAVEN_REPOSITORY/servletapi/jars/servletapi-2.4.jar"/> + <classpathentry kind="var" path="MAVEN_REPOSITORY/xerces/jars/xercesImpl-2.6.1.jar" sourcepath="/pub/2008/Xerces-J-src.2.6.1.zip"/> + <classpathentry kind="var" path="MAVEN_REPOSITORY/xerces/jars/xmlParserAPIs-2.6.1.jar"/> + <classpathentry kind="lib" path="F:/pub/2008/Xerces-J-src.2.6.1.zip" sourcepath="F:/pub/2008/Xerces-J-src.2.6.1.zip"/> + <classpathentry kind="lib" path="META-INF"/> + <classpathentry kind="output" path="bin"/> +</classpath> Added: trunk/httpunit/.project =================================================================== --- trunk/httpunit/.project (rev 0) +++ trunk/httpunit/.project 2008-05-16 20:43:00 UTC (rev 976) @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>httpunit</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rus...@us...> - 2008-05-16 19:45:10
|
Revision: 975 http://httpunit.svn.sourceforge.net/httpunit/?rev=975&view=rev Author: russgold Date: 2008-05-16 12:44:48 -0700 (Fri, 16 May 2008) Log Message: ----------- moved all pending tests to new pending-tests directory Modified Paths: -------------- trunk/httpunit/build.xml trunk/httpunit/doc/release_notes.html trunk/httpunit/src/com/meterware/httpunit/WebTable.java trunk/httpunit/src/com/meterware/httpunit/controls/SelectionFormControl.java trunk/httpunit/test/com/meterware/httpunit/FormParametersTest.java trunk/httpunit/test/com/meterware/httpunit/HtmlTablesTest.java trunk/httpunit/test/com/meterware/httpunit/WebFrameTest.java trunk/httpunit/test/com/meterware/httpunit/WebLinkTest.java trunk/httpunit/test/com/meterware/httpunit/javascript/DocumentScriptingTest.java trunk/httpunit/test/com/meterware/httpunit/javascript/ScriptingTest.java trunk/httpunit/test/com/meterware/servletunit/HttpServletResponseTest.java trunk/httpunit/test/com/meterware/servletunit/ServletUnitSuite.java Added Paths: ----------- trunk/httpunit/pending-tests/ trunk/httpunit/pending-tests/com/ trunk/httpunit/pending-tests/com/meterware/ trunk/httpunit/pending-tests/com/meterware/httpunit/ trunk/httpunit/pending-tests/com/meterware/httpunit/NewParsingTests.java trunk/httpunit/pending-tests/com/meterware/httpunit/javascript/ trunk/httpunit/pending-tests/com/meterware/httpunit/javascript/NewScriptingEngineTests.java trunk/httpunit/pending-tests/com/meterware/httpunit/javascript/NewScriptingTests.java trunk/httpunit/pending-tests/com/meterware/httpunit/servletunit/ trunk/httpunit/pending-tests/com/meterware/httpunit/servletunit/NewServletUnitTests.java trunk/httpunit/test/com/meterware/httpunit/javascript/AbstractJavaScriptTest.java Removed Paths: ------------- trunk/httpunit/test/com/meterware/servletunit/FormTableTest.java Modified: trunk/httpunit/build.xml =================================================================== --- trunk/httpunit/build.xml 2008-05-15 13:53:47 UTC (rev 974) +++ trunk/httpunit/build.xml 2008-05-16 19:44:48 UTC (rev 975) @@ -105,7 +105,7 @@ < dependency group="rhino" artifact="rhino" version="1.5R4.1" website="http://www.mozilla.org/rhino/download.html" /> --> <dependency group="junit" version="3.8.1" /> - <dependency group="nekohtml" version="1.9.6" unless="use.jtidy"/> + <dependency group="nekohtml" version="0.9.5" unless="use.jtidy"/> <dependency group="servletapi" version="2.4" /> <dependency group="jtidy" version="4aug2000r7-dev"/> <dependency group="xerces" version="2.6.1" artifact="xercesImpl"/> Modified: trunk/httpunit/doc/release_notes.html =================================================================== --- trunk/httpunit/doc/release_notes.html 2008-05-15 13:53:47 UTC (rev 974) +++ trunk/httpunit/doc/release_notes.html 2008-05-16 19:44:48 UTC (rev 975) @@ -45,7 +45,7 @@ <h4>Notes:</h4> <ol> - <li>Upgraded NekoHTML to 1.9.6</li> + <li>Upgraded NekoHTML to 0.9.5</li> <li>Upgraded Xerces to 2.6.1</li> <li>Upgraded Rhino to 1.6R5</li> <li>The PostMethodWebRequest.setMimeEncoded method has been removed. Mime encoding, if desired, should now be @@ -61,6 +61,7 @@ keeping the dependent jars in cvs. </li> <li>When using the nekoHtml parser, tag and attribute names now default to lower case, rather than upper case as before</li> + <li>Empty cells from tables are no longer automatically purged when searching for a table by its first non-blank cell</li> </ol> <h4>Problems fixed:</h4> <h5>Content and Parsing:</h5> Added: trunk/httpunit/pending-tests/com/meterware/httpunit/NewParsingTests.java =================================================================== --- trunk/httpunit/pending-tests/com/meterware/httpunit/NewParsingTests.java (rev 0) +++ trunk/httpunit/pending-tests/com/meterware/httpunit/NewParsingTests.java 2008-05-16 19:44:48 UTC (rev 975) @@ -0,0 +1,133 @@ +package com.meterware.httpunit; +/******************************************************************************************************************** +* $Id$ +* +* Copyright (c) 2007-2008, Russell Gold +* +* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated +* documentation files (the "Software"), to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and +* to permit persons to whom the Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice shall be included in all copies or substantial portions +* of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO +* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF +* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +* +*******************************************************************************************************************/ +import junit.framework.Test; +import junit.framework.TestSuite; + +public class NewParsingTests extends HttpUnitTest { + + private WebClient _wc; + + + public static void main(String args[]) { + junit.textui.TestRunner.run( suite() ); + } + + + public static Test suite() { + return new TestSuite( NewParsingTests.class ); + } + + + public NewParsingTests( String name ) { + super( name ); + } + + + public void setUp() throws Exception { + super.setUp(); + _wc = new WebConversation(); + } + + + + /** + * test a link that has a line break included + * @throws Exception on an unexpected exception - requires nekohtml 1.9.6 to pass + */ + public void testLinkUrlAcrossLineBreaks() throws Exception { + WebConversation wc = new WebConversation(); + defineWebPage( "Initial", "<a id='midbreak' href='http://loc\nalhost/somewhere'</a>" + + "<a id='endbreak' href='http://localhost/somewhere\n'</a>" ); + + WebResponse response = wc.getResponse( getHostPath() + "/Initial.html" ); + String endbreak=response.getLinkWithID( "endbreak" ).getRequest().getURL().toExternalForm() ; + assertEquals( "URL with break at end", endbreak,"http://localhost/somewhere"); + //System.err.println("endbreak='"+endbreak+"'"); + String midbreak=response.getLinkWithID( "midbreak" ).getRequest().getURL().toExternalForm() ; + //System.err.println("midbreak='"+midbreak+"'"); + assertEquals( "URL across linebreak", midbreak,"http://loc\nalhost/somewhere"); + } + + + /** + * test for bug report [ 1393144 ] URL args in form action are sent for GET forms + * by Nathan Jakubiak + * @throws Exception on an uncaught error + */ + public void testParamReplacement() throws Exception { + String expected = "/cgi-bin/bar?foo=a"; + String nogood = "/cgi-bin/bar?arg=replaced&foo=a"; + defineResource( nogood, "not good" ); + defineResource( expected, "excellent" ); + String html = + "<FORM NAME=Bethsheba METHOD=GET ACTION=/cgi-bin/bar?arg=replaced>" + + "<INPUT TYPE=TEXT NAME=foo>" + + "<INPUT TYPE=SUBMIT>" + + "</FORM>" + + "<br>" + + "<!--JavaScript submit:" + + "<a href=\"javascript:document.Bethsheba.submit()\">go</a>" + + "-->"; + defineWebPage( "test", html ); + WebResponse resp = _wc.getResponse( getHostPath() + "/test.html" ); + WebForm form = resp.getFormWithName( "Bethsheba" ); + form.setParameter( "foo", "a" ); + resp = form.submit(); + String foundURL = resp.getURL().toString(); + assertTrue( foundURL.equals( expected ) ); + } + + + /** + * test bug report [ 1376739 ] iframe tag not recognized if Javascript code contains '<' + * by Nathan Jakubiak + * @throws Exception on an uncaught error + */ + public void testIFrameBug() throws Exception { + String html = "\"<SCRIPT LANGUAGE=\"JavaScript\">\n" + + "var b = 0 < 1;\n" + + "</SCRIPT>\n" + + "<iframe name=\"iframe_after_lessthan_in_javascript\"\n" + + "src=\"c.html\"></iframe>"; + defineWebPage( "iframe", html ); + WebResponse response = _wc.getFrameContents( "iframe_after_lessthan_in_javascript" ); + assertNotNull( "Iframe was not recognized", response ); + } + + + /** + * test for bug report [ 1156972 ] isWebLink doesn't recognize all anchor tags + * by fregienj + * @throws Exception on anuncaught error + */ + public void testFindNonHrefLinks() throws Exception { + defineResource( "NonHref.html", "<html><head><title>NonHref Links</title></head><body>\n" + + "<a onclick='javascript:followlink()'>I am a clickable link after all</a>\n" + + "</body></html>" ); + WebConversation wc = new WebConversation(); + WebResponse response = wc.getResponse( getHostPath() + "/NonHref.html" ); + WebLink[] links = response.getLinks(); + assertNotNull( links ); + assertEquals( "number of non-href anchor tags", 1, links.length ); + } + +} Property changes on: trunk/httpunit/pending-tests/com/meterware/httpunit/NewParsingTests.java ___________________________________________________________________ Name: svn:keywords + Author Date Id Revision Name: svn:eol-style + native Added: trunk/httpunit/pending-tests/com/meterware/httpunit/javascript/NewScriptingEngineTests.java =================================================================== --- trunk/httpunit/pending-tests/com/meterware/httpunit/javascript/NewScriptingEngineTests.java (rev 0) +++ trunk/httpunit/pending-tests/com/meterware/httpunit/javascript/NewScriptingEngineTests.java 2008-05-16 19:44:48 UTC (rev 975) @@ -0,0 +1,120 @@ +package com.meterware.httpunit.javascript; +/******************************************************************************************************************** + * $Id$ + * + * Copyright (c) 2007-2008, Russell Gold + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated + * documentation files (the "Software"), to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and + * to permit persons to whom the Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all copies or substantial portions + * of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO + * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * + *******************************************************************************************************************/ +import com.meterware.httpunit.*; +import junit.framework.TestSuite; +import junit.textui.TestRunner; + +/** + * New features promised for scripting, but only implemented for new scripting engine. + */ +public class NewScriptingEngineTests extends AbstractJavaScriptTest { + + public static void main( String args[] ) { + TestRunner.run( suite() ); + } + + + public static TestSuite suite() { + return new TestSuite( NewScriptingEngineTests.class ); + } + + + public NewScriptingEngineTests( String name ) { + super( name ); + } + + + /** + * test jsFunction_createElement() - supplied by Mark Childerson + * also for bug report [ 1430378 ] createElement not found in JavaScript by Saliya Jinadasa + * @since 2008-03-26 + * @throws Exception on uncaught problem + */ + public void testCreateElement() throws Exception { + defineResource( "OnCommand.html", + "<html><head><title>Amazing!</title></head>" + + "<body onLoad='var elem=document.createElement(\"input\");elem.id=\"hellothere\";alert(elem.id);'></body>" ); + WebConversation wc = new WebConversation(); + boolean oldDebug = HttpUnitUtils.setEXCEPTION_DEBUG( false ); + try { + wc.getResponse( getHostPath() + "/OnCommand.html" ); + // used to throw: + // com.meterware.httpunit.ScriptException: Event 'var elem=document.createElement("input");elem.id="hellothere";alert(elem.id);' failed: org.mozilla.javascript.EcmaError: TypeError: Cannot find function createElement. + assertEquals( "Alert message", "hellothere", wc.popNextAlert() ); + } finally { + HttpUnitUtils.setEXCEPTION_DEBUG( oldDebug ); + } + } + + /** + * test for cloneNode feature (asked for by Mark Childeson on 2008-04-01) + * @throws Exception on any uncaught problem + */ + public void testCloneNode() throws Exception { + doTestJavaScript( + "dolly1=document.getElementById('Dolly');\n" + + "dolly2=dolly1.cloneNode(true);\n" + + "dolly1.firstChild.nodeValue += dolly2.firstChild.nodeValue;\n" + + "alert(dolly1.firsthChild.nodeValue);\n", + "<div id='Dolly'>Dolly </div>" ); + } + + + /** + * test for bug report [ 1396877 ] Javascript:properties parentNode,firstChild, .. returns null + * by gklopp 2006-01-04 15:15 + * @throws Exception on any uncaught problem + */ + public void testDOM() throws Exception { + defineResource( "testSelect.html", "<html><head><script type='text/javascript'>\n" + + "<!--\n" + + "function testDOM() {\n" + + " var sel = document.getElementById('the_select');\n" + + " var p = sel.parentNode;\n" + + " var child = p.firstChild;\n" + + " alert('Parent : ' + p.nodeName);\n" + + " alert('First child : ' + child.nodeName);\n" + + "}\n" + + "-->\n" + + "</script></head>" + + "<body>" + + "<form name='the_form'>" + + " <table>" + + " <tr>" + + " <td>Selection :</td>" + + " <td>" + + " <select name='the_select'>" + + " <option value='option1Value'>option1</option>" + + " </select>" + + " </td>" + + " </tr>" + + " </table>" + + "</form>" + + "<script type='text/javascript'>testDOM();</script>" + + "</body></html>" ); + WebConversation wc = new WebConversation(); + wc.getResponse( getHostPath() + "/testSelect.html" ); + assertEquals( "Message 1", "TD", wc.popNextAlert().toUpperCase() ); + assertEquals( "Message 2", "SELECT", wc.popNextAlert().toUpperCase() ); + } + +} Property changes on: trunk/httpunit/pending-tests/com/meterware/httpunit/javascript/NewScriptingEngineTests.java ___________________________________________________________________ Name: svn:keywords + Author Date Id Revision Name: svn:eol-style + native Added: trunk/httpunit/pending-tests/com/meterware/httpunit/javascript/NewScriptingTests.java =================================================================== --- trunk/httpunit/pending-tests/com/meterware/httpunit/javascript/NewScriptingTests.java (rev 0) +++ trunk/httpunit/pending-tests/com/meterware/httpunit/javascript/NewScriptingTests.java 2008-05-16 19:44:48 UTC (rev 975) @@ -0,0 +1,190 @@ +package com.meterware.httpunit.javascript; +/******************************************************************************************************************** + * $Id$ + * + * Copyright (c) 2007-2008, Russell Gold + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated + * documentation files (the "Software"), to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and + * to permit persons to whom the Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all copies or substantial portions + * of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO + * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * + *******************************************************************************************************************/ + +import com.meterware.httpunit.WebConversation; +import com.meterware.httpunit.HttpUnitOptions; +import junit.textui.TestRunner; +import junit.framework.TestSuite; + +/** + * Tests designed to track promised new features. + */ +public class NewScriptingTests extends AbstractJavaScriptTest { + + + public static void main( String args[] ) { + TestRunner.run( suite() ); + } + + + public static TestSuite suite() { + return new TestSuite( NewScriptingTests.class ); + } + + + public NewScriptingTests( String name ) { + super( name ); + } + + + /** + * bug report [ 1286018 ] EcmaError in seemingly valid function + * by Stephane Mikaty + * + * @throws Exception on uncaught error + */ + public void testArgumentsProperty() throws Exception { + String html = "<html><head><script language='JavaScript'> " + + " function dumpargs() { " + + " var args=dumpargs.arguments; " + + " var argdump=args.length; " + + " alert( args.length + ' arguments') " + + " for (i=0; i<args.length; i+=1) { " + + " alert( i + ': ' + args[i]') " + + " } " + + " } " + + "</script> " + + "<body onload=\"dumpargs('a','b')\"> " + + "</body></html> "; + + defineResource( "OnCommand.html", html ); + WebConversation wc = new WebConversation(); + wc.getResponse( getHostPath() + "/OnCommand.html" ); + assertEquals( "alert message 1", "2 arguments", wc.popNextAlert() ); + assertEquals( "alert message 2", "0: a", wc.popNextAlert() ); + assertEquals( "alert message 3", "1: b", wc.popNextAlert() ); + } + + + /** + * test for bug report [ 1216567 ] Exception for large javascripts + * by Grzegorz Lukasik + * and bug report [ 1572117 ] ClassFormatError + * by Walter Meier + * + * @author Wolfgang Fahl 2008-04-05 + */ + public void testLargeJavaScript() throws Exception { + // create at least 64 KByte worth of Java script of the form + // var1000=1000; + // let's check the length; + // 1 + // 12345678901234 + // var1000=1000+1; + // so that is 14 chars avg per line - we'll do that many times for good measure ... + // you might want to adjust the numbers to your environment + // we do tests with 1000,10000,100000,1000000 lines in a logarithmic manner + // we do the optimization levels according to rhino docs: + // + // -2: with continuation + // -1: interpret + // 0: compile to Java bytecode, don't optimize + // 1..9: compile to Java bytecode, optimize + // + // set quicktest to false to get the full extent of the test + // the quick version only runs 1000 and 1000 lines for the levels -2 to 1 + boolean quicktest = true; + boolean showProgress = false; + int linesToTest[] = {1000, 10000, 100000, 1000000}; + int numTests = linesToTest.length; + int minOptLevel = -2; + int maxOptLevel = 9; + // when to expect a memory error + int expectMemoryExceededForLinesOver = 100000; + if (quicktest) { + numTests = 2; + minOptLevel = -1; + maxOptLevel = 1; + showProgress = false; + } else { + showProgress = true; + } + for (int optimizationLevel = minOptLevel; optimizationLevel <= maxOptLevel; optimizationLevel++) { + HttpUnitOptions.setJavaScriptOptimizationLevel( optimizationLevel ); + // allow for different number of lines + for (int i = 1; i < numTests; i++) { + int fromj = 1; + int toj = linesToTest[i] + 1; + int lines = toj - fromj; + String testDesc = "test " + i + " for " + lines + " Lines (" + fromj + "-" + toj + ") at optlevel " + optimizationLevel; + if (showProgress) + System.out.println( testDesc ); + int midj = (fromj + toj) / 2; + WebConversation wc = null; + StringBuffer prepareScript = new StringBuffer(); + try { + // prepare code lines like + // var1000=1000+1; + // with the var<j>=<j>+1;\n pattern ... + // should be fun for the optimizer to remove all that unused code :-) + // we'll only use one variable later ... + for (int j = fromj; j < toj; j++) { + prepareScript.append( "var" ); + prepareScript.append( j ); + prepareScript.append( "=" ); + prepareScript.append( j ); + prepareScript.append( "+1;\n" ); + } + prepareScript.append( "alert(var" + midj + ");" ); + // off we go ... see what happens ... + wc = this.doTestJavaScript( prepareScript.toString() ); + } catch (RuntimeException re) { + // currently we get: + // alert(var25500);}' failed: java.lang.IllegalArgumentException: out of range index + // for 50000 lines and opt level 0 + if ((optimizationLevel >= 0) && (lines >= 50000)) { + this.warnDisabled( "testLargeJavaScript", + "fails with runtime Exception for " + lines + " lines at optimizationLevel " + optimizationLevel + " the default is level -1 so we only warn" ); + } else { + throw re; + } + } catch (java.lang.OutOfMemoryError ome) { + if (lines >= expectMemoryExceededForLinesOver) { + this.warnDisabled( "testLargeJavaScript", + "fails with out of memory error for " + lines + " lines at optimizationLevel " + optimizationLevel + " we expect this for more than " + expectMemoryExceededForLinesOver + " lines" ); + break; + } else { + throw ome; + } + } catch (java.lang.ClassFormatError cfe) { + // java.lang.ClassFormatError: Invalid method Code length 223990 in class file org/mozilla/javascript/gen/c1 + if (optimizationLevel >= 0) + this.warnDisabled( "testLargeJavaScript", + "fails with class format error for " + lines + " lines at optimizationLevel " + optimizationLevel + " the default is level -1 so we only warn" ); + else + throw cfe; + } // try + + if (wc != null) { + String expected = "" + (midj + 1); + expected = expected.trim(); + // if we get here the big javascript was actually executed + // e.g. interpreted and compiled and the alert message at it's end + // was fired to show the content of a variable in the far middle of the script + assertEquals( testDesc, expected, wc.popNextAlert() ); + } + } // for + HttpUnitOptions.reset(); + } // for optimizationLevel + } + +} Property changes on: trunk/httpunit/pending-tests/com/meterware/httpunit/javascript/NewScriptingTests.java ___________________________________________________________________ Name: svn:keywords + Author Date Id Revision Name: svn:eol-style + native Added: trunk/httpunit/pending-tests/com/meterware/httpunit/servletunit/NewServletUnitTests.java =================================================================== --- trunk/httpunit/pending-tests/com/meterware/httpunit/servletunit/NewServletUnitTests.java (rev 0) +++ trunk/httpunit/pending-tests/com/meterware/httpunit/servletunit/NewServletUnitTests.java 2008-05-16 19:44:48 UTC (rev 975) @@ -0,0 +1,92 @@ +package com.meterware.httpunit.servletunit; +/******************************************************************************************************************** + * $Id$ + * + * Copyright (c) 2007-2008, Russell Gold + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated + * documentation files (the "Software"), to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and + * to permit persons to whom the Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all copies or substantial portions + * of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO + * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * + *******************************************************************************************************************/ +import com.meterware.httpunit.HttpUnitTest; +import com.meterware.httpunit.WebRequest; +import com.meterware.httpunit.GetMethodWebRequest; +import com.meterware.httpunit.WebResponse; +import com.meterware.servletunit.ServletRunner; +import com.meterware.servletunit.StatelessTest; + +import junit.framework.TestSuite; + +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.ServletException; +import java.io.IOException; +import java.io.PrintWriter; + +/** + * Tests for features pending addition to ServletUnit. + */ +public class NewServletUnitTests extends HttpUnitTest { + + public static void main( String args[] ) { + junit.textui.TestRunner.run( suite() ); + } + + + public static TestSuite suite() { + return new TestSuite( NewServletUnitTests.class ); + } + + + public NewServletUnitTests( String name ) { + super( name ); + } + + + /** + * test bug report [ 1534234 ] HttpServletResponse.isCommitted() always false? (+patch) + * by Olaf Klischat? + * @throws Exception on unexpected error + */ + public void testIsCommitted() throws Exception { + ServletRunner sr = new ServletRunner(); + + WebRequest request = new GetMethodWebRequest( + "http://localhost/servlet/" + CheckIsCommittedServlet.class.getName() ); + WebResponse response = sr.getResponse( request ); + assertTrue( "The response should be committed", CheckIsCommittedServlet.isCommitted ); + } + + + /** + * helper Servlet for bug report 1534234 + */ + public static class CheckIsCommittedServlet extends HttpServlet { + + public static boolean isCommitted; + + + protected void doGet( HttpServletRequest req, HttpServletResponse resp ) throws ServletException, IOException { + resp.setContentType( "text/html" ); + + PrintWriter pw = resp.getWriter(); + pw.println( "anything" ); + pw.flush(); + pw.close(); + isCommitted = resp.isCommitted(); + } + } + +} Property changes on: trunk/httpunit/pending-tests/com/meterware/httpunit/servletunit/NewServletUnitTests.java ___________________________________________________________________ Name: svn:keywords + Author Date Id Revision Name: svn:eol-style + native Modified: trunk/httpunit/src/com/meterware/httpunit/WebTable.java =================================================================== --- trunk/httpunit/src/com/meterware/httpunit/WebTable.java 2008-05-15 13:53:47 UTC (rev 974) +++ trunk/httpunit/src/com/meterware/httpunit/WebTable.java 2008-05-16 19:44:48 UTC (rev 975) @@ -336,23 +336,29 @@ static { - MATCH_FIRST_NONBLANK_CELL = new HTMLElementPredicate() { // XXX find a way to do this w/o purging the table cells + MATCH_FIRST_NONBLANK_CELL = new HTMLElementPredicate() { public boolean matchesCriteria( Object htmlElement, Object criteria ) { WebTable table = ((WebTable) htmlElement); - table.purgeEmptyCells(); - return table.getRowCount() > 0 && - HttpUnitUtils.matches( table.getCellAsText(0,0).trim(), (String) criteria ); - }; + for (int row = 0; row < table.getRowCount(); row++) { + for (int col = 0; col < table.getColumnCount(); col++) { + if (HttpUnitUtils.matches( table.getCellAsText( row, col ).trim(), (String) criteria)) return true; + } + } + return false; + } }; MATCH_FIRST_NONBLANK_CELL_PREFIX = new HTMLElementPredicate() { // XXX find a way to do this w/o purging the table cells public boolean matchesCriteria( Object htmlElement, Object criteria ) { WebTable table = ((WebTable) htmlElement); - table.purgeEmptyCells(); - return table.getRowCount() > 0 && - HttpUnitUtils.hasPrefix( table.getCellAsText(0,0).toUpperCase().trim(), (String) criteria ); - }; + for (int row = 0; row < table.getRowCount(); row++) { + for (int col = 0; col < table.getColumnCount(); col++) { + if (HttpUnitUtils.hasPrefix( table.getCellAsText( row, col ).trim(), (String) criteria)) return true; + } + } + return false; + } }; Modified: trunk/httpunit/src/com/meterware/httpunit/controls/SelectionFormControl.java =================================================================== --- trunk/httpunit/src/com/meterware/httpunit/controls/SelectionFormControl.java 2008-05-15 13:53:47 UTC (rev 974) +++ trunk/httpunit/src/com/meterware/httpunit/controls/SelectionFormControl.java 2008-05-16 19:44:48 UTC (rev 975) @@ -144,9 +144,7 @@ if (!(value instanceof Number)) throw new RuntimeException( "selectedIndex must be set to an integer" ); _selectionOptions.setSelectedIndex( ((Number) value).intValue() ); } else if (propertyName.equalsIgnoreCase( "length" )) { - // [ 1396896 ] Javascript: length property of a select element not writable - // what now? - throw new RuntimeException( "Options.setLength Not implemented yet" ); + _selectionOptions.setLength( ((Number) value).intValue() ); } else { super.set( propertyName, value ); } Modified: trunk/httpunit/test/com/meterware/httpunit/FormParametersTest.java =================================================================== --- trunk/httpunit/test/com/meterware/httpunit/FormParametersTest.java 2008-05-15 13:53:47 UTC (rev 974) +++ trunk/httpunit/test/com/meterware/httpunit/FormParametersTest.java 2008-05-16 19:44:48 UTC (rev 975) @@ -592,40 +592,9 @@ String paramValue=form.getParameterValue("submitButton"); assertTrue("the parameter value should be buttonLabel",paramValue.equals("buttonLabel")); } + /** - * test for bug report [ 1393144 ] URL args in form action are sent for GET forms - * by Nathan Jakubiak - */ - public void testParamReplacement() throws Exception { - String expected="/cgi-bin/bar?foo=a"; - String nogood ="/cgi-bin/bar?arg=replaced&foo=a"; - defineResource( nogood , "not good" ); - defineResource( expected, "excellent" ); - String html= - "<FORM NAME=Bethsheba METHOD=GET ACTION=/cgi-bin/bar?arg=replaced>"+ - "<INPUT TYPE=TEXT NAME=foo>"+ - "<INPUT TYPE=SUBMIT>"+ - "</FORM>"+ - "<br>"+ - "<!--JavaScript submit:"+ - "<a href=\"javascript:document.Bethsheba.submit()\">go</a>"+ - "-->"; - defineWebPage( "test", html); - WebResponse resp= _wc.getResponse( getHostPath() + "/test.html" ); - WebForm form = resp.getFormWithName("Bethsheba"); - form.setParameter("foo", "a"); - resp = form.submit(); - String foundURL=resp.getURL().toString(); - boolean disabled=true; - if (disabled) { - this.warnDisabled("testParamReplacement","A",2, "bug 1393144 pending - waiting for patch"); - } else { - // System.out.println("url: " + foundURL); - assertTrue(foundURL.equals(expected)); - } - } - /** * test for bug report * [ 1510582 ] setParameter fails with <input type="file"> * by Julien HENRY Modified: trunk/httpunit/test/com/meterware/httpunit/HtmlTablesTest.java =================================================================== --- trunk/httpunit/test/com/meterware/httpunit/HtmlTablesTest.java 2008-05-15 13:53:47 UTC (rev 974) +++ trunk/httpunit/test/com/meterware/httpunit/HtmlTablesTest.java 2008-05-16 19:44:48 UTC (rev 975) @@ -19,9 +19,6 @@ * DEALINGS IN THE SOFTWARE. * *******************************************************************************************************************/ -import com.meterware.servletunit.ServletRunner; -import com.meterware.servletunit.FormTableTest.FormTableServlet; - import junit.framework.TestSuite; @@ -261,19 +258,13 @@ "</head>\n<body>\n"+ "<FORM METHOD=\"POST\" ACTION=\"/some/action\">\n"+ "<TABLE>\n"+ - "<TR><TD colspan=\"4\">Test Form:</TD></TR>\n\n"+ - "<TR>\n"+ - "<TD>*Contact Name:</TD>\n"+ - "<TD>"+ - "<input type=\"text\" size=\"21\" " + - "name=\"CONTACT_NAME\" value=\"TIMOTHY O'LEARY\">"+ - "</TD>\n"+ - "<TD>Building Number:</TD>\n"+ - "<TD>"+ - "<input type=\"text\" size=\"7\" " + - "name=\"BUILDING_NUMBER\" value=\"355\">"+ - "</TD>\n"+ - "</TR>\n"+ + " <TR><TD colspan=\"4\">Test Form:</TD></TR>\n\n"+ + " <TR>\n"+ + " <TD>*Contact Name:</TD>\n"+ + " <TD><input type=\"text\" size=\"21\" name=\"CONTACT_NAME\" value=\"TIMOTHY O'LEARY\"></TD>\n"+ + " <TD>Building Number:</TD>\n"+ + " <TD><input type=\"text\" size=\"7\" name=\"BUILDING_NUMBER\" value=\"355\"></TD>\n"+ + " </TR>\n"+ "</TABLE>\n"+ "</FORM>"; @@ -282,13 +273,13 @@ * by AutoTest */ public void testColumnNumberInTable() throws Exception { - defineWebPage( "Default",htmlForBug1043368); - WebResponse page = _wc.getResponse( getHostPath() + "/Default.html" ); - WebTable table = page.getTables()[0]; - assertNotNull( "didn't find table", table ); - // System.out.println( table.toString() ); - assertFalse( "wrong table",table.getCellAsText( 1, 0 ).indexOf("Contact Name") == -1 ); - assertEquals( "wrong column count", 4, table.getColumnCount()); + defineWebPage( "Default", htmlForBug1043368 ); + WebResponse page = _wc.getResponse( getHostPath() + "/Default.html" ); + WebTable table = page.getTableStartingWithPrefix( "Test Form" ); + assertNotNull( "didn't find table", table ); + // System.out.println( table.toString() ); + assertFalse( "wrong table", table.getCellAsText( 1, 0 ).indexOf( "Contact Name" ) == -1 ); + assertEquals( "wrong column count", 4, table.getColumnCount() ); } @@ -341,6 +332,7 @@ WebResponse page = _wc.getResponse( getHostPath() + "/Default.html" ); WebTable wt = page.getTableStartingWith( "Red" ); assertNotNull( "Did not find table starting with 'Red'", wt ); + wt.purgeEmptyCells(); String[][] cells = wt.asText(); assertEquals( "Non-blank rows", 2, cells.length ); assertEquals( "Non-blank columns", 2, cells[0].length ); @@ -378,7 +370,9 @@ "</table>" ); WebResponse page = _wc.getResponse( getHostPath() + "/Default.html" ); - String[][] cells = page.getTableStartingWith( "Title" ).asText(); + WebTable table = page.getTableStartingWith( "Title" ); + table.purgeEmptyCells(); + String[][] cells = table.asText(); assertEquals( "Non-blank rows", 3, cells.length ); assertEquals( "Non-blank columns", 2, cells[0].length ); assertEquals( "cell at 1,1", "Value", cells[1][1] ); @@ -394,7 +388,9 @@ "</table>" ); WebResponse page = _wc.getResponse( getHostPath() + "/Default.html" ); - String[][] cells = page.getTableStartingWith( "Title" ).asText(); + WebTable table = page.getTableStartingWith( "Title" ); + table.purgeEmptyCells(); + String[][] cells = table.asText(); assertEquals( "Non-blank rows", 3, cells.length ); assertEquals( "Non-blank columns", 2, cells[0].length ); assertEquals( "cell at 1,1", "Value", cells[1][1] ); Modified: trunk/httpunit/test/com/meterware/httpunit/WebFrameTest.java =================================================================== --- trunk/httpunit/test/com/meterware/httpunit/WebFrameTest.java 2008-05-15 13:53:47 UTC (rev 974) +++ trunk/httpunit/test/com/meterware/httpunit/WebFrameTest.java 2008-05-16 19:44:48 UTC (rev 975) @@ -512,25 +512,6 @@ assertEquals( "Number of links in iframe", 1, _wc.getFrameContents( "center" ).getLinks().length ); } - /** - * test bug report [ 1376739 ] iframe tag not recognized if Javascript code contains '<' - * by Nathan Jakubiak - * @throws Exception - */ - public void testIFrameBug() throws Exception { - String html="\"<SCRIPT LANGUAGE=\"JavaScript\">\n"+ - "var b = 0 < 1;\n"+ - "</SCRIPT>\n"+ - "<iframe name=\"iframe_after_lessthan_in_javascript\"\n"+ - "src=\"c.html\"></iframe>"; - defineWebPage( "iframe", html); - try { - WebResponse response = _wc.getFrameContents("iframe_after_lessthan_in_javascript"); - assertTrue(response!=null); - } catch (Throwable th) { - this.warnDisabled("testIFrameBug", "B",2,"patch needed for '"+th.getMessage()+"'"); - } - } /** * test I Frame with a Form according to mail to mailinglist of 2008-03-25 Modified: trunk/httpunit/test/com/meterware/httpunit/WebLinkTest.java =================================================================== --- trunk/httpunit/test/com/meterware/httpunit/WebLinkTest.java 2008-05-15 13:53:47 UTC (rev 974) +++ trunk/httpunit/test/com/meterware/httpunit/WebLinkTest.java 2008-05-16 19:44:48 UTC (rev 975) @@ -72,29 +72,6 @@ /** - * test for bug report [ 1156972 ] isWebLink doesn't recognize all anchor tags - * by fregienj - * @throws Exception - */ - public void testFindNonHrefLinks() throws Exception { - defineResource( "NonHref.html", "<html><head><title>NonHref Links</title></head><body>\n"+ - "<a onclick='javascript:followlink()'>I am a clickable link after all</a>\n"+ - "</body></html>" ); - WebConversation wc = new WebConversation(); - WebResponse response=wc.getResponse( getHostPath() + "/NonHref.html" ); - WebLink[] links = response.getLinks(); - // TODO implement and test this - // WebLink[] links = response.getAnchors(); - assertNotNull( links ); - boolean decided=true; - if (decided) { - assertEquals( 0, links.length ); - } else { - this.warnDisabled("testFindNonHrefLinks()","C",2,"pending decision for bug report [ 1156972 ] -> does an <a> node to have href to be considered a link?"); - } - } - - /** * test for Bug report 1908117 by firebird74 * http://www.w3.org/Addressing/URL/url-spec.html * says @@ -159,25 +136,6 @@ } - /** - * test a link that has a line break included - * @throws Exception - */ - public void testLinkUrlAcrossLineBreaks() throws Exception { - WebConversation wc = new WebConversation(); - defineWebPage( "Initial", "<a id='midbreak' href='http://loc\nalhost/somewhere'</a>" + - "<a id='endbreak' href='http://localhost/somewhere\n'</a>" ); - - WebResponse response = wc.getResponse( getHostPath() + "/Initial.html" ); - String endbreak=response.getLinkWithID( "endbreak" ).getRequest().getURL().toExternalForm() ; - assertEquals( "URL with break at end", endbreak,"http://localhost/somewhere"); - //System.err.println("endbreak='"+endbreak+"'"); - String midbreak=response.getLinkWithID( "midbreak" ).getRequest().getURL().toExternalForm() ; - //System.err.println("midbreak='"+midbreak+"'"); - assertEquals( "URL across linebreak", midbreak,"http://loc\nalhost/somewhere"); - } - - public void testLinkReference() throws Exception { WebLink link = _simplePage.getLinks()[0]; assertEquals( "URLString", "/other.html", link.getURLString() ); Added: trunk/httpunit/test/com/meterware/httpunit/javascript/AbstractJavaScriptTest.java =================================================================== --- trunk/httpunit/test/com/meterware/httpunit/javascript/AbstractJavaScriptTest.java (rev 0) +++ trunk/httpunit/test/com/meterware/httpunit/javascript/AbstractJavaScriptTest.java 2008-05-16 19:44:48 UTC (rev 975) @@ -0,0 +1,60 @@ +package com.meterware.httpunit.javascript; + +import com.meterware.httpunit.HttpUnitTest; +import com.meterware.httpunit.WebConversation; +import com.meterware.httpunit.WebResponse; + +/** + * Created by IntelliJ IDEA. + * User: russgold + * Date: May 16, 2008 + * Time: 3:20:40 PM + * To change this template use File | Settings | File Templates. + */ +public class AbstractJavaScriptTest extends HttpUnitTest {// set to true to get the static HTML Code on System.err +public static boolean debugHTML=false; + + + public AbstractJavaScriptTest( String name ) { + super( name ); + } + + + /** + * test the given javaScript code by putting it into a function and calling it + * as a prerequisite make the html code snippet available in the body of the page + * @param script - some javascript code to be called in a function + * @param html - a html code snippet + * @return + * @throws Exception + */ + public WebConversation doTestJavaScript(String script,String html) throws Exception { + defineResource( "OnCommand.html", "<html><head><script language='JavaScript'>\n" + + "function javaScriptFunction() {\n"+ + script+ + "}\n"+ + "</script></head>" + + "<body>" + + html+"\n"+ + "<a href=\"javascript:javaScriptFunction()\">go</a>" + + "</body></html>" ); + WebConversation wc = new WebConversation(); + WebResponse response = wc.getResponse( getHostPath() + "/OnCommand.html" ); + if (debugHTML) { + System.err.println(response.getText()+"\n"); + } + response.getLinkWith( "go" ).click(); + return wc; + } + + + /** + * test the given javaScript code by putting it into a function + * and calling it + * @param script the script to test + * @return the web client on which the test was run + */ + public WebConversation doTestJavaScript(String script) throws Exception { + return doTestJavaScript(script,""); + } +} Property changes on: trunk/httpunit/test/com/meterware/httpunit/javascript/AbstractJavaScriptTest.java ___________________________________________________________________ Name: svn:keywords + Author Date Id Revision Name: svn:eol-style + native Modified: trunk/httpunit/test/com/meterware/httpunit/javascript/DocumentScriptingTest.java =================================================================== --- trunk/httpunit/test/com/meterware/httpunit/javascript/DocumentScriptingTest.java 2008-05-15 13:53:47 UTC (rev 974) +++ trunk/httpunit/test/com/meterware/httpunit/javascript/DocumentScriptingTest.java 2008-05-16 19:44:48 UTC (rev 975) @@ -315,35 +315,6 @@ assertEquals( "changed image source", "new.jpg", image.getSource() ); } - /** - * test jsFunction_createElement() - * @author Mark Childerson - * also for bug report [ 1430378 ] createElement not found in JavaScript - * by Saliya Jinadasa - * @since 2008-03-26 - * @throws Exception - */ - public void testCreateElement() throws Exception { - defineResource("OnCommand.html", - "<html><head><title>Amazing!</title></head>"+ - "<body onLoad='var elem=document.createElement(\"input\");elem.id=\"hellothere\";alert(elem.id);'></body>"); - WebConversation wc = new WebConversation(); - boolean oldDebug= HttpUnitUtils.setEXCEPTION_DEBUG(false); - try { - wc.getResponse( getHostPath() + "/OnCommand.html" ); - // used to throw: - // com.meterware.httpunit.ScriptException: Event 'var elem=document.createElement("input");elem.id="hellothere";alert(elem.id);' failed: org.mozilla.javascript.EcmaError: TypeError: Cannot find function createElement. - assertEquals( "Alert message", "hellothere", wc.popNextAlert() ); - } catch (ScriptException se) { - if (HttpUnitOptions.DEFAULT_SCRIPT_ENGINE_FACTORY.equals(HttpUnitOptions.ORIGINAL_SCRIPTING_ENGINE_FACTORY)) { - this.warnDisabled("testCreateElement","B",3, "not fixed for old scripting engine"); - } else { - throw se; - } - } finally { - HttpUnitUtils.setEXCEPTION_DEBUG(oldDebug); - } - } public void testWriteToNewDocument() throws Exception { Modified: trunk/httpunit/test/com/meterware/httpunit/javascript/ScriptingTest.java =================================================================== --- trunk/httpunit/test/com/meterware/httpunit/javascript/ScriptingTest.java 2008-05-15 13:53:47 UTC (rev 974) +++ trunk/httpunit/test/com/meterware/httpunit/javascript/ScriptingTest.java 2008-05-16 19:44:48 UTC (rev 975) @@ -39,7 +39,7 @@ * @author <a href="mailto:rus...@ht...">Russell Gold</a> * @author Wolfgang Fahl - for compiling patches from the Source Forge web site 2008-03 **/ -public class ScriptingTest extends HttpUnitTest { +public class ScriptingTest extends AbstractJavaScriptTest { public static void main( String args[] ) { TestRunner.run( suite() ); @@ -120,46 +120,9 @@ response.getLinks()[0].click(); assertEquals( "New page", "You made it!", wc.getCurrentPage().getText() ); } - // set to true to get the static HTML Code on System.err - public static boolean debugHTML=false; + /** - * test the given javaScript code by putting it into a function and calling it - * as a prerequisite make the html code snippet available in the body of the page - * @param script - some javascript code to be called in a function - * @param html - a html code snippet - * @return - * @throws Exception - */ - public WebConversation doTestJavaScript(String script,String html) throws Exception { - defineResource( "OnCommand.html", "<html><head><script language='JavaScript'>\n" + - "function javaScriptFunction() {\n"+ - script+ - "}\n"+ - "</script></head>" + - "<body>" + - html+"\n"+ - "<a href=\"javascript:javaScriptFunction()\">go</a>" + - "</body></html>" ); - WebConversation wc = new WebConversation(); - WebResponse response = wc.getResponse( getHostPath() + "/OnCommand.html" ); - if (debugHTML) { - System.err.println(response.getText()+"\n"); - } - response.getLinkWith( "go" ).click(); - return wc; - } - - /** - * test the given javaScript code by putting it into a function - * and calling it - * @param script - */ - public WebConversation doTestJavaScript(String script) throws Exception { - return doTestJavaScript(script,""); - } - - /** * test for bug report [ 1508516 ] Javascript method: "undefined" is not supported * @throws Exception */ @@ -181,23 +144,6 @@ } /** - * test for cloneNode feature (asked for by Mark Childeson on 2008-04-01) - * @throws Exception - */ - public void testCloneNode() throws Exception { - if (HttpUnitOptions.DEFAULT_SCRIPT_ENGINE_FACTORY.equals(HttpUnitOptions.ORIGINAL_SCRIPTING_ENGINE_FACTORY)) { - warnDisabled("testCloneNode","B",3,"not fixed for old javascript engine"); - return; - } - WebConversation wc=doTestJavaScript( - "dolly1=document.getElementById('Dolly');\n"+ - "dolly2=dolly1.cloneNode(true);\n"+ - "dolly1.firstChild.nodeValue += dolly2.firstChild.nodeValue;\n"+ - "alert(dolly1.firsthChild.nodeValue);\n", - "<div id='Dolly'>Dolly </div>"); - } - - /** * test javascript call to an included function * @throws Exception */ @@ -1066,9 +1012,9 @@ defineResource( "NoScript.html", "No javascript here" ); defineResource( "HasScript.html", "Javascript is enabled!" ); defineResource( "Start.html", "<html><head>" + -// " <noscript>" + -// " <meta http-equiv='refresh' content='0;url=NoScript.html'>" + -// " </noscript>" + + " <noscript>" + + " <meta http-equiv='refresh' content='0;url=NoScript.html'>" + + " </noscript>" + "</head>" + "<body onload='document.form.submit()'>" + "<form name='form' action='HasScript.html'></form>" + @@ -1077,59 +1023,54 @@ wc.getClientProperties().setAutoRefresh( true ); WebResponse response = wc.getResponse( getHostPath() + "/Start.html" ); assertEquals( "Result page ", "Javascript is enabled!", response.getText() ); - boolean nekoHtmlBugFixed = false; // waiting for response to http://sourceforge.net/tracker/index.php?func=detail&aid=1932445&group_id=195122&atid=952178 - if (!nekoHtmlBugFixed) { - this.warnDisabled("testJavascriptDetectionTrick","A",2,"waiting for nekoHtml bug #1932445" ); - } else { - HttpUnitOptions.setScriptingEnabled( false ); - response = wc.getResponse( getHostPath() + "/Start.html" ); - assertEquals( "Result page", "No javascript here", response.getText() ); - } + HttpUnitOptions.setScriptingEnabled( false ); + response = wc.getResponse( getHostPath() + "/Start.html" ); + assertEquals( "Result page", "No javascript here", response.getText() ); } /** - * @see https://sourceforge.net/forum/forum.php?thread_id=1808696&forum_id=20294 + * https://sourceforge.net/forum/forum.php?thread_id=1808696&forum_id=20294 * by kauffman81 */ public void testJavaScriptConfirmPopUp() throws Exception { - String target="<html><body>After click we want to see this!</body></html>"; - defineResource( "Target.html", target); - defineResource( "Popup.html","<html><head><script language='JavaScript'>"+ - "// This is the javascript that handles the onclick event\n"+ - "function verify_onBorrar(form){\n"+ - " alert(form.id);\n"+ - /* TODO check this javascript code - * if uncommented it will throw - com.meterware.httpunit.ScriptException: Event 'verify_onBorrar(this.form)' failed: org.mozilla.javascript.EcmaError: TypeError: Cannot read property "0" from undefined (httpunit#3) - " for(var i = 0;i<form.selection[i].length;i++){\n"+ - " if(form.selection[i].checked){\n"+ - " if(confirm('blablabla')){\n"+ - " form.action = 'Target.html';\n"+ - " form.submit(); \n"+ - " } // if\n"+ - " } // if\n"+ - " } // for\n"+ - */ - "} // verify_onBorrar\n"+ - "</script></head>\n"+ - "<body>\n"+ - " <form id='someform' name='someform'>"+ - " <input type='button' id='button1' class='button' value='say hi' onclick=\"alert('hi')\"/>"+ - " <input type='button' id='delete' class='button' value='delete' onclick='verify_onBorrar(this.form)'/></form>\n"+ - " </form>\n"+ - "</body></html>"); - WebConversation wc = new WebConversation(); - WebResponse response = wc.getResponse( getHostPath() + "/Popup.html" ); - Button button1 = (Button) response.getElementWithID( "button1" ); - button1.click(); - String alert1=wc.popNextAlert(); - assertEquals("hi",alert1); - Button button2 = (Button) response.getElementWithID( "delete" ); - button2.click(); - String alert2=wc.popNextAlert(); - // TODO activate this check - // System.err.println("alert 2 is "+alert2); - // assertEquals("someform",alert2); + String target = "<html><body>After click we want to see this!</body></html>"; + defineResource( "Target.html", target ); + defineResource( "Popup.html", "<html><head><script language='JavaScript'>" + + "// This is the javascript that handles the onclick event\n" + + "function verify_onBorrar(form){\n" + + " alert(form.id);\n" + + /* TODO check this javascript code + * if uncommented it will throw + com.meterware.httpunit.ScriptException: Event 'verify_onBorrar(this.form)' failed: org.mozilla.javascript.EcmaError: TypeError: Cannot read property "0" from undefined (httpunit#3) + " for(var i = 0;i<form.selection[i].length;i++){\n"+ + " if(form.selection[i].checked){\n"+ + " if(confirm('blablabla')){\n"+ + " form.action = 'Target.html';\n"+ + " form.submit(); \n"+ + " } // if\n"+ + " } // if\n"+ + " } // for\n"+ + */ + "} // verify_onBorrar\n" + + "</script></head>\n" + + "<body>\n" + + " <form id='someform' name='someform'>" + + " <input type='button' id='button1' class='button' value='say hi' onclick=\"alert('hi')\"/>" + + " <input type='button' id='delete' class='button' value='delete' onclick='verify_onBorrar(this.form)'/></form>\n" + + " </form>\n" + + "</body></html>" ); + WebConversation wc = new WebConversation(); + WebResponse response = wc.getResponse( getHostPath() + "/Popup.html" ); + Button button1 = (Button) response.getElementWithID( "button1" ); + button1.click(); + String alert1 = wc.popNextAlert(); + assertEquals( "hi", alert1 ); + Button button2 = (Button) response.getElementWithID( "delete" ); + button2.click(); + String alert2 = wc.popNextAlert(); + // TODO activate this check + // System.err.println("alert 2 is "+alert2); + // assertEquals("someform",alert2); } /** @@ -1154,49 +1095,6 @@ String alert1=wc.popNextAlert(); assertEquals("somefunction called",alert1); } - - /** - * test for bug report [ 1396877 ] Javascript:properties parentNode,firstChild, .. returns null - * by gklopp 2006-01-04 15:15 - * @throws Exception - */ - public void testDOM() throws Exception { - if (HttpUnitOptions.DEFAULT_SCRIPT_ENGINE_FACTORY.equals(HttpUnitOptions.ORIGINAL_SCRIPTING_ENGINE_FACTORY)) { - warnDisabled("testDOM","B",3,"not fixed for old javascript engine"); - return; - } - defineResource( "testSelect.html", "<html><head><script type='text/javascript'>\n" + - "<!--\n" + - "function testDOM() {\n" + - " var sel = document.getElementById('the_select');\n" + - " var p = sel.parentNode;\n" + - " var child = p.firstChild;\n" + - " alert('Parent : ' + p.nodeName);\n" + - " alert('First child : ' + child.nodeName);\n" + - "}\n" + - "-->\n" + - "</script></head>" + - "<body>" + - "<form name='the_form'>" + - " <table>" + - " <tr>" + - " <td>Selection :</td>" + - " <td>" + - " <select name='the_select'>" + - " <option value='option1Value'>option1</option>" + - " </select>" + - " </td>" + - " </tr>" + - " </table>" + - "</form>" + - "<script type='text/javascript'>testDOM();</script>" + - "</body></html>"); - WebConversation wc = new WebConversation(); - WebResponse response = wc.getRespo... [truncated message content] |
From: <wol...@us...> - 2008-05-15 13:53:52
|
Revision: 974 http://httpunit.svn.sourceforge.net/httpunit/?rev=974&view=rev Author: wolfgang_fahl Date: 2008-05-15 06:53:47 -0700 (Thu, 15 May 2008) Log Message: ----------- not for release notes: format for non - active test display changed Modified Paths: -------------- trunk/httpunit/test/com/meterware/httpunit/FormParametersTest.java trunk/httpunit/test/com/meterware/httpunit/HttpUnitSuite.java trunk/httpunit/test/com/meterware/httpunit/HttpUnitTest.java trunk/httpunit/test/com/meterware/httpunit/WebFrameTest.java trunk/httpunit/test/com/meterware/httpunit/WebLinkTest.java trunk/httpunit/test/com/meterware/httpunit/javascript/DocumentScriptingTest.java trunk/httpunit/test/com/meterware/httpunit/javascript/ScriptingTest.java trunk/httpunit/test/com/meterware/servletunit/FormTableTest.java trunk/httpunit/test/com/meterware/servletunit/HttpServletResponseTest.java Removed Paths: ------------- trunk/httpunit/httpunit.pom Deleted: trunk/httpunit/httpunit.pom =================================================================== --- trunk/httpunit/httpunit.pom 2008-05-15 11:07:45 UTC (rev 973) +++ trunk/httpunit/httpunit.pom 2008-05-15 13:53:47 UTC (rev 974) @@ -1,186 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!--- - $Id$ - This file is a contribution by Matt Smith as of 2008-05-14: - - I have created and attached a POM for building httpunit using Maven2. - It also runs FindBugs and cobertura, a code coverage tool, as well. - It uses the current project structure. It excludes the following tests: - EventAwareTestCase - WebClientTest - WebPageTest - -Also, if you run out of memory on the FindBugs, try upping the memory thusly -export MAVEN_OPTS=-Xmx384M ---> -<project> - <modelVersion>4.0.0</modelVersion> - <groupId>httpunit</groupId> - <artifactId>httpunit</artifactId> - <version>1.7-SNAPSHOT</version> - <description></description> - <build> - <sourceDirectory>src</sourceDirectory> - <testSourceDirectory>test</testSourceDirectory> - <testResources> - <testResource> - <directory>META-INF</directory> - </testResource> - </testResources> - <resources> - <resource> - <directory>META-INF</directory> - </resource> - </resources> - <plugins> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>cobertura-maven-plugin</artifactId> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-source-plugin</artifactId> - <executions> - <execution> - <id>attach-sources</id> - <phase>package</phase> - <goals> - <goal>jar</goal> - <goal>test-jar</goal> - </goals> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>build-helper-maven-plugin</artifactId> - <version>1.0</version> - <executions> - <execution> - <id>add-source</id> - <phase>generate-sources</phase> - <goals> - <goal>add-source</goal> - </goals> - <configuration> - <sources> - <source>src-1.4</source> - </sources> - </configuration> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-jar-plugin</artifactId> - - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <configuration> - <forkMode>never</forkMode> - <!-- Assertions diasabled due to a bug in xmlbeans - https://issues.apache.org/jira/browse/XMLBEANS-317 --> - <enableAssertions>false</enableAssertions> - <excludes> - <exclude>**/TestSuite$1.class</exclude> - <exclude>**/EventAwareTestCase.class</exclude> - <exclude>**/WebClientTest.class</exclude> - <exclude>**/WebPageTest.class</exclude> - </excludes> - </configuration> - </plugin> - </plugins> - - </build> - <reporting> - <plugins> - <plugin> - <artifactId>maven-javadoc-plugin</artifactId> - </plugin> - <plugin> - <artifactId>maven-surefire-report-plugin</artifactId> - <configuration> - <additionalClasspathElements> - <additionalClasspathElement> - META-INF - </additionalClasspathElement> - </additionalClasspathElements> - </configuration> - </plugin> - <plugin> - <artifactId>maven-jxr-plugin</artifactId> - </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>findbugs-maven-plugin</artifactId> - <configuration> - <threshold>Normal</threshold> - </configuration> - </plugin> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>cobertura-maven-plugin</artifactId> - </plugin> - </plugins> - - </reporting> - - <dependencies> - <dependency> - <groupId>rhino</groupId> - <artifactId>js</artifactId> - <version>1.6R5</version> - </dependency> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>3.8.1</version> - </dependency> - <dependency> - <groupId>nekohtml</groupId> - <artifactId>nekohtml</artifactId> - <version>1.9.6</version> - </dependency> - <dependency> - <groupId>javax.servlet</groupId> - <artifactId>servlet-api</artifactId> - <version>2.4</version> - </dependency> - <dependency> - <groupId>jtidy</groupId> - <artifactId>jtidy</artifactId> - <version>4aug2000r7-dev</version> - </dependency> - <dependency> - <groupId>xerces</groupId> - <artifactId>xercesImpl</artifactId> - <version>2.6.1</version> - </dependency> - <dependency> - <groupId>xerces</groupId> - <artifactId>xmlParserAPIs</artifactId> - <version>2.6.1</version> - </dependency> - <dependency> - <groupId>javax.mail</groupId> - <artifactId>mail</artifactId> - <version>1.4</version> - <scope>test</scope> - </dependency> - </dependencies> - - <pluginRepositories> - <pluginRepository> - <id>repo1</id> - <url>http://repo1.maven.org/maven2/</url> - <snapshots> - <enabled>true</enabled> - </snapshots> - <releases> - <enabled>true</enabled> - </releases> - </pluginRepository> - </pluginRepositories> -</project> Modified: trunk/httpunit/test/com/meterware/httpunit/FormParametersTest.java =================================================================== --- trunk/httpunit/test/com/meterware/httpunit/FormParametersTest.java 2008-05-15 11:07:45 UTC (rev 973) +++ trunk/httpunit/test/com/meterware/httpunit/FormParametersTest.java 2008-05-15 13:53:47 UTC (rev 974) @@ -619,7 +619,7 @@ String foundURL=resp.getURL().toString(); boolean disabled=true; if (disabled) { - this.warnDisabled("testParamReplacement", "bug 1393144 pending - waiting for patch"); + this.warnDisabled("testParamReplacement","A",2, "bug 1393144 pending - waiting for patch"); } else { // System.out.println("url: " + foundURL); assertTrue(foundURL.equals(expected)); Modified: trunk/httpunit/test/com/meterware/httpunit/HttpUnitSuite.java =================================================================== --- trunk/httpunit/test/com/meterware/httpunit/HttpUnitSuite.java 2008-05-15 11:07:45 UTC (rev 973) +++ trunk/httpunit/test/com/meterware/httpunit/HttpUnitSuite.java 2008-05-15 13:53:47 UTC (rev 974) @@ -27,6 +27,9 @@ import com.meterware.httpunit.ssl.HttpsProtocolSupportTest; import com.meterware.httpunit.dom.DomTestSuite; +import junit.framework.AssertionFailedError; +import junit.framework.TestListener; +import junit.framework.TestResult; import junit.framework.TestSuite; import junit.framework.Test; @@ -35,14 +38,15 @@ * Tests for the httpunit package. **/ public class HttpUnitSuite extends ConditionalTestSuite { - + /** * entry point to run suite from command line * @param args - command line arguments */ public static void main( String[] args ) { try { - junit.textui.TestRunner.run( suite() ); + HttpUnitTest.warnDelim="\n"; + TestResult result=junit.textui.TestRunner.run(suite()); } catch (Exception e) { e.printStackTrace(); //To change body of catch statement use Options | File Templates. } Modified: trunk/httpunit/test/com/meterware/httpunit/HttpUnitTest.java =================================================================== --- trunk/httpunit/test/com/meterware/httpunit/HttpUnitTest.java 2008-05-15 11:07:45 UTC (rev 973) +++ trunk/httpunit/test/com/meterware/httpunit/HttpUnitTest.java 2008-05-15 13:53:47 UTC (rev 974) @@ -102,23 +102,28 @@ } return result; } + public static String warnDelim=""; + + /** * show a warning for disabled Tests * @param testName * @param comment */ - public static void warnDisabled(String testName,String comment) { + public static void warnDisabled(String testName,String priority,int urgency,String comment) { if (WARN_DISABLED) { - String delim=""; - //delim="\n"; if (firstWarn) { firstWarn=false; - System.err.println("\n The following tests are not active:"); - System.err.println(" # | testname | reason "); - System.err.println("----+-------------------------------+--------------------------------------------"); + System.err.println("\n The following tests are not active - the features tested are not part of the current release:"); + System.err.println(" # | testname | priority | urgency | reason "); + System.err.println("----+-------------------------------+----------+---------+----------------------------------------"); } disabledIndex++; - System.err.println(delim+padLeft(""+disabledIndex,3)+" | "+padLeft(testName,29)+" | "+comment); + System.err.println(warnDelim+padLeft(""+disabledIndex,3)+ + " | "+padLeft(testName,29)+ + " | "+padLeft(priority, 8)+ + " | "+padLeft(""+urgency, 7)+ + " | "+comment); } } Modified: trunk/httpunit/test/com/meterware/httpunit/WebFrameTest.java =================================================================== --- trunk/httpunit/test/com/meterware/httpunit/WebFrameTest.java 2008-05-15 11:07:45 UTC (rev 973) +++ trunk/httpunit/test/com/meterware/httpunit/WebFrameTest.java 2008-05-15 13:53:47 UTC (rev 974) @@ -528,7 +528,7 @@ WebResponse response = _wc.getFrameContents("iframe_after_lessthan_in_javascript"); assertTrue(response!=null); } catch (Throwable th) { - this.warnDisabled("testIFrameBug", "patch needed for '"+th.getMessage()+"'"); + this.warnDisabled("testIFrameBug", "B",2,"patch needed for '"+th.getMessage()+"'"); } } Modified: trunk/httpunit/test/com/meterware/httpunit/WebLinkTest.java =================================================================== --- trunk/httpunit/test/com/meterware/httpunit/WebLinkTest.java 2008-05-15 11:07:45 UTC (rev 973) +++ trunk/httpunit/test/com/meterware/httpunit/WebLinkTest.java 2008-05-15 13:53:47 UTC (rev 974) @@ -90,7 +90,7 @@ if (decided) { assertEquals( 0, links.length ); } else { - this.warnDisabled("testFindNonHrefLinks()","pending decision for bug report [ 1156972 ] -> does an <a> node to have href to be considered a link?"); + this.warnDisabled("testFindNonHrefLinks()","C",2,"pending decision for bug report [ 1156972 ] -> does an <a> node to have href to be considered a link?"); } } Modified: trunk/httpunit/test/com/meterware/httpunit/javascript/DocumentScriptingTest.java =================================================================== --- trunk/httpunit/test/com/meterware/httpunit/javascript/DocumentScriptingTest.java 2008-05-15 11:07:45 UTC (rev 973) +++ trunk/httpunit/test/com/meterware/httpunit/javascript/DocumentScriptingTest.java 2008-05-15 13:53:47 UTC (rev 974) @@ -336,7 +336,7 @@ assertEquals( "Alert message", "hellothere", wc.popNextAlert() ); } catch (ScriptException se) { if (HttpUnitOptions.DEFAULT_SCRIPT_ENGINE_FACTORY.equals(HttpUnitOptions.ORIGINAL_SCRIPTING_ENGINE_FACTORY)) { - this.warnDisabled("testCreateElement", "not fixed for old scripting engine"); + this.warnDisabled("testCreateElement","B",3, "not fixed for old scripting engine"); } else { throw se; } Modified: trunk/httpunit/test/com/meterware/httpunit/javascript/ScriptingTest.java =================================================================== --- trunk/httpunit/test/com/meterware/httpunit/javascript/ScriptingTest.java 2008-05-15 11:07:45 UTC (rev 973) +++ trunk/httpunit/test/com/meterware/httpunit/javascript/ScriptingTest.java 2008-05-15 13:53:47 UTC (rev 974) @@ -186,7 +186,7 @@ */ public void testCloneNode() throws Exception { if (HttpUnitOptions.DEFAULT_SCRIPT_ENGINE_FACTORY.equals(HttpUnitOptions.ORIGINAL_SCRIPTING_ENGINE_FACTORY)) { - warnDisabled("testCloneNode","not fixed for old javascript engine"); + warnDisabled("testCloneNode","B",3,"not fixed for old javascript engine"); return; } WebConversation wc=doTestJavaScript( @@ -1079,7 +1079,7 @@ assertEquals( "Result page ", "Javascript is enabled!", response.getText() ); boolean nekoHtmlBugFixed = false; // waiting for response to http://sourceforge.net/tracker/index.php?func=detail&aid=1932445&group_id=195122&atid=952178 if (!nekoHtmlBugFixed) { - this.warnDisabled("testJavascriptDetectionTrick", "waiting for nekoHtml bug #1932445" ); + this.warnDisabled("testJavascriptDetectionTrick","A",2,"waiting for nekoHtml bug #1932445" ); } else { HttpUnitOptions.setScriptingEnabled( false ); response = wc.getResponse( getHostPath() + "/Start.html" ); @@ -1162,7 +1162,7 @@ */ public void testDOM() throws Exception { if (HttpUnitOptions.DEFAULT_SCRIPT_ENGINE_FACTORY.equals(HttpUnitOptions.ORIGINAL_SCRIPTING_ENGINE_FACTORY)) { - warnDisabled("testDOM","not fixed for old javascript engine"); + warnDisabled("testDOM","B",3,"not fixed for old javascript engine"); return; } defineResource( "testSelect.html", "<html><head><script type='text/javascript'>\n" + @@ -1275,7 +1275,7 @@ } catch (Exception ex ) { if (HttpUnitOptions.DEFAULT_SCRIPT_ENGINE_FACTORY.equals(HttpUnitOptions.ORIGINAL_SCRIPTING_ENGINE_FACTORY)) { // TODO change this expected result if fixed - warnDisabled("testModifySelectLength","not fixed for old javascript engine"); + warnDisabled("testModifySelectLength","B",3,"not fixed for old javascript engine"); assertTrue(ex instanceof java.lang.RuntimeException); assertTrue(ex.getMessage().indexOf("Not implemented yet")>=0); } else { @@ -1363,13 +1363,13 @@ // alert(var25500);}' failed: java.lang.IllegalArgumentException: out of range index // for 50000 lines and opt level 0 if ((optimizationLevel>=0) && (lines>=50000)) { - this.warnDisabled("testLargeJavaScript","fails with runtime Exception for "+lines+" lines at optimizationLevel "+optimizationLevel+" the default is level -1 so we only warn"); + this.warnDisabled("testLargeJavaScript","C",2,"fails with runtime Exception for "+lines+" lines at optimizationLevel "+optimizationLevel+" the default is level -1 so we only warn"); } else { throw re; } } catch (java.lang.OutOfMemoryError ome) { if (lines>=expectMemoryExceededForLinesOver) { - this.warnDisabled("testLargeJavaScript","fails with out of memory error for "+lines+" lines at optimizationLevel "+optimizationLevel+" we expect this for more than "+expectMemoryExceededForLinesOver+" lines"); + this.warnDisabled("testLargeJavaScript","C",3,"fails with out of memory error for "+lines+" lines at optimizationLevel "+optimizationLevel+" we expect this for more than "+expectMemoryExceededForLinesOver+" lines"); break; } else { throw ome; @@ -1377,7 +1377,7 @@ } catch (java.lang.ClassFormatError cfe) { // java.lang.ClassFormatError: Invalid method Code length 223990 in class file org/mozilla/javascript/gen/c1 if (optimizationLevel>=0) - this.warnDisabled("testLargeJavaScript","fails with class format error for "+lines+" lines at optimizationLevel "+optimizationLevel+" the default is level -1 so we only warn"); + this.warnDisabled("testLargeJavaScript","C",2,"fails with class format error for "+lines+" lines at optimizationLevel "+optimizationLevel+" the default is level -1 so we only warn"); else throw cfe; } // try @@ -1401,7 +1401,7 @@ */ public void testArgumentsProperty() throws Exception { if (HttpUnitOptions.DEFAULT_SCRIPT_ENGINE_FACTORY.equals(HttpUnitOptions.ORIGINAL_SCRIPTING_ENGINE_FACTORY)) { - warnDisabled("testArgumentsProperty","not fixed for old javascript engine"); + warnDisabled("testArgumentsProperty","B",3,"not fixed for old javascript engine"); return; } new ScriptingTestHelper("../html/testArgumentsProperty.html").run(); Modified: trunk/httpunit/test/com/meterware/servletunit/FormTableTest.java =================================================================== --- trunk/httpunit/test/com/meterware/servletunit/FormTableTest.java 2008-05-15 11:07:45 UTC (rev 973) +++ trunk/httpunit/test/com/meterware/servletunit/FormTableTest.java 2008-05-15 13:53:47 UTC (rev 974) @@ -74,7 +74,7 @@ boolean bug1043368Pending=true; if (bug1043368Pending) { - this.warnDisabled("testFormTable", "for pending bug 1043368"); + this.warnDisabled("testFormTable","A",2, "for pending bug 1043368"); } else { System.out.println( table.toString() ); assertFalse( "wrong table", Modified: trunk/httpunit/test/com/meterware/servletunit/HttpServletResponseTest.java =================================================================== --- trunk/httpunit/test/com/meterware/servletunit/HttpServletResponseTest.java 2008-05-15 11:07:45 UTC (rev 973) +++ trunk/httpunit/test/com/meterware/servletunit/HttpServletResponseTest.java 2008-05-15 13:53:47 UTC (rev 974) @@ -226,7 +226,7 @@ WebResponse response = sr.getResponse( request ); boolean isPending=true; if (isPending) { - HttpUnitTest.warnDisabled("testIsCommitted", "bug report 1534234 is pending - waiting for testcase/improved patch"); + HttpUnitTest.warnDisabled("testIsCommitted","B",2,"bug report 1534234 is pending - waiting for testcase/improved patch"); } else { assertTrue("The response should be committed",CheckIsCommittedServlet.isCommitted); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wol...@us...> - 2008-05-15 11:07:48
|
Revision: 973 http://httpunit.svn.sourceforge.net/httpunit/?rev=973&view=rev Author: wolfgang_fahl Date: 2008-05-15 04:07:45 -0700 (Thu, 15 May 2008) Log Message: ----------- not for release notes - display of non active tests changed Modified Paths: -------------- trunk/httpunit/test/com/meterware/httpunit/HttpUnitTest.java Modified: trunk/httpunit/test/com/meterware/httpunit/HttpUnitTest.java =================================================================== --- trunk/httpunit/test/com/meterware/httpunit/HttpUnitTest.java 2008-05-15 10:33:46 UTC (rev 972) +++ trunk/httpunit/test/com/meterware/httpunit/HttpUnitTest.java 2008-05-15 11:07:45 UTC (rev 973) @@ -84,16 +84,41 @@ */ public static boolean WARN_DISABLED=true; public static int disabledIndex=0; + public static boolean firstWarn=true; /** + * return a left padded string + * @param s + * @param pad + * @return + */ + private static String padLeft(String s, int pad) { + String result=s; + String space=" "; + if (result.length()>pad) { + result=result.substring(0,pad); + } else if (result.length()<pad) { + result=space.substring(0,pad-result.length())+result; + } + return result; + } + /** * show a warning for disabled Tests * @param testName * @param comment */ public static void warnDisabled(String testName,String comment) { if (WARN_DISABLED) { + String delim=""; + //delim="\n"; + if (firstWarn) { + firstWarn=false; + System.err.println("\n The following tests are not active:"); + System.err.println(" # | testname | reason "); + System.err.println("----+-------------------------------+--------------------------------------------"); + } disabledIndex++; - System.err.println("*** "+disabledIndex+". Test "+testName+" disabled: "+comment); + System.err.println(delim+padLeft(""+disabledIndex,3)+" | "+padLeft(testName,29)+" | "+comment); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rus...@us...> - 2008-05-15 10:33:48
|
Revision: 972 http://httpunit.svn.sourceforge.net/httpunit/?rev=972&view=rev Author: russgold Date: 2008-05-15 03:33:46 -0700 (Thu, 15 May 2008) Log Message: ----------- Acknowledge Wolfgang in the release notes Modified Paths: -------------- trunk/httpunit/doc/release_notes.html Modified: trunk/httpunit/doc/release_notes.html =================================================================== --- trunk/httpunit/doc/release_notes.html 2008-05-15 09:52:58 UTC (rev 971) +++ trunk/httpunit/doc/release_notes.html 2008-05-15 10:33:46 UTC (rev 972) @@ -22,7 +22,10 @@ <h3>Version 1.7 Released 2008-05-14</h3> <h4>Acknowledgements:</h4> -Thanks to <ul> +This project would almost certainly have remained dormant without the extraordinary contributions of our new committer, Wolfgang Fahl. +Wolfgang has been extremely active over the past few months, erasing the backlog in bug, patches, and enhancement requests, +and generally improving the quality and energy of the project. +In addition, thanks are due to:<ul> <li>Stefan H\xFCbner for supplying a patch for URL-decoding of parameters in ServletUnit</li> <li>Archimedes Trajano for supplying code to support non-JSSE SSL providers</li> <li>Bobby Abraham for adding the capability of deleting a cookie manually</li> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wol...@us...> - 2008-05-15 09:54:39
|
Revision: 971 http://httpunit.svn.sourceforge.net/httpunit/?rev=971&view=rev Author: wolfgang_fahl Date: 2008-05-15 02:52:58 -0700 (Thu, 15 May 2008) Log Message: ----------- not for release notes: renamed Maven pom file Added Paths: ----------- trunk/httpunit/pom.xml Copied: trunk/httpunit/pom.xml (from rev 967, trunk/httpunit/httpunit.pom) =================================================================== --- trunk/httpunit/pom.xml (rev 0) +++ trunk/httpunit/pom.xml 2008-05-15 09:52:58 UTC (rev 971) @@ -0,0 +1,186 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!--- + $Id$ + This file is a contribution by Matt Smith as of 2008-05-14: + + I have created and attached a POM for building httpunit using Maven2. + It also runs FindBugs and cobertura, a code coverage tool, as well. + It uses the current project structure. It excludes the following tests: + EventAwareTestCase + WebClientTest + WebPageTest + +Also, if you run out of memory on the FindBugs, try upping the memory thusly +export MAVEN_OPTS=-Xmx384M +--> +<project> + <modelVersion>4.0.0</modelVersion> + <groupId>httpunit</groupId> + <artifactId>httpunit</artifactId> + <version>1.7-SNAPSHOT</version> + <description></description> + <build> + <sourceDirectory>src</sourceDirectory> + <testSourceDirectory>test</testSourceDirectory> + <testResources> + <testResource> + <directory>META-INF</directory> + </testResource> + </testResources> + <resources> + <resource> + <directory>META-INF</directory> + </resource> + </resources> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>cobertura-maven-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-source-plugin</artifactId> + <executions> + <execution> + <id>attach-sources</id> + <phase>package</phase> + <goals> + <goal>jar</goal> + <goal>test-jar</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <version>1.0</version> + <executions> + <execution> + <id>add-source</id> + <phase>generate-sources</phase> + <goals> + <goal>add-source</goal> + </goals> + <configuration> + <sources> + <source>src-1.4</source> + </sources> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <forkMode>never</forkMode> + <!-- Assertions diasabled due to a bug in xmlbeans + https://issues.apache.org/jira/browse/XMLBEANS-317 --> + <enableAssertions>false</enableAssertions> + <excludes> + <exclude>**/TestSuite$1.class</exclude> + <exclude>**/EventAwareTestCase.class</exclude> + <exclude>**/WebClientTest.class</exclude> + <exclude>**/WebPageTest.class</exclude> + </excludes> + </configuration> + </plugin> + </plugins> + + </build> + <reporting> + <plugins> + <plugin> + <artifactId>maven-javadoc-plugin</artifactId> + </plugin> + <plugin> + <artifactId>maven-surefire-report-plugin</artifactId> + <configuration> + <additionalClasspathElements> + <additionalClasspathElement> + META-INF + </additionalClasspathElement> + </additionalClasspathElements> + </configuration> + </plugin> + <plugin> + <artifactId>maven-jxr-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>findbugs-maven-plugin</artifactId> + <configuration> + <threshold>Normal</threshold> + </configuration> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>cobertura-maven-plugin</artifactId> + </plugin> + </plugins> + + </reporting> + + <dependencies> + <dependency> + <groupId>rhino</groupId> + <artifactId>js</artifactId> + <version>1.6R5</version> + </dependency> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>3.8.1</version> + </dependency> + <dependency> + <groupId>nekohtml</groupId> + <artifactId>nekohtml</artifactId> + <version>1.9.6</version> + </dependency> + <dependency> + <groupId>javax.servlet</groupId> + <artifactId>servlet-api</artifactId> + <version>2.4</version> + </dependency> + <dependency> + <groupId>jtidy</groupId> + <artifactId>jtidy</artifactId> + <version>4aug2000r7-dev</version> + </dependency> + <dependency> + <groupId>xerces</groupId> + <artifactId>xercesImpl</artifactId> + <version>2.6.1</version> + </dependency> + <dependency> + <groupId>xerces</groupId> + <artifactId>xmlParserAPIs</artifactId> + <version>2.6.1</version> + </dependency> + <dependency> + <groupId>javax.mail</groupId> + <artifactId>mail</artifactId> + <version>1.4</version> + <scope>test</scope> + </dependency> + </dependencies> + + <pluginRepositories> + <pluginRepository> + <id>repo1</id> + <url>http://repo1.maven.org/maven2/</url> + <snapshots> + <enabled>true</enabled> + </snapshots> + <releases> + <enabled>true</enabled> + </releases> + </pluginRepository> + </pluginRepositories> +</project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rus...@us...> - 2008-05-14 21:09:48
|
Revision: 970 http://httpunit.svn.sourceforge.net/httpunit/?rev=970&view=rev Author: russgold Date: 2008-05-14 14:09:46 -0700 (Wed, 14 May 2008) Log Message: ----------- Finished major cleanup of release notes Modified Paths: -------------- trunk/httpunit/doc/release_notes.html Modified: trunk/httpunit/doc/release_notes.html =================================================================== --- trunk/httpunit/doc/release_notes.html 2008-05-14 18:44:13 UTC (rev 969) +++ trunk/httpunit/doc/release_notes.html 2008-05-14 21:09:46 UTC (rev 970) @@ -20,7 +20,7 @@ <h2>Revision History:</h2> -<h3>Version 1.7 Released 2008-04-27</h3> +<h3>Version 1.7 Released 2008-05-14</h3> <h4>Acknowledgements:</h4> Thanks to <ul> <li>Stefan H\xFCbner for supplying a patch for URL-decoding of parameters in ServletUnit</li> @@ -36,6 +36,8 @@ <li>Jord Sonneveld for adding support for onBlur and onFocus events</li> <li>Hugh Winkler for fixing getPathInfo decoding</li> <li>David D. Kilzer for supporting direct invocation ot javascript events</li> + <li>Fabrizio Giustina for enabling html parsing of xml responses</li> + <li>Roger Lindsj\xF6 for adding handling of empty error pages under JDK 1.5</li> </ul> <h4>Notes:</h4> @@ -55,66 +57,64 @@ <li>The build now uses the ant-dependencies task (see http://www.httpunit.org/doc/dependencies.html) rather than keeping the dependent jars in cvs. </li> - <li>made some controls (RadioButton,RadioGroupForm) public to support Radiobutton testing better - </li> - <li>HttpUnitUtils.handleException is now called where a simple printStackTrace was - found in the past. The boolean flag HttpUnitUtil.EXCEPTION_DEBUG now controls whether this happens - </li> - <li>The doScript method has been refactored - it is now deprecated and renamed to doScriptEvent to make clear - that this method expects a full script to work on. A click will now also fire the mousedown and mouseup events. - handleEvent is now the method to call for handling events by name e.g. onchange, onmousedown, onclick, - onmouseup, onblur, onfocus - </li> - <li>When using the nekoHtml parser, tag and attribute names now default to lower case, rather than upper case as - before - </li> + <li>When using the nekoHtml parser, tag and attribute names now default to lower case, rather than upper case as before</li> </ol> <h4>Problems fixed:</h4> <h5>Content and Parsing:</h5> <ol> - <li>bug #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1705925&group_id=6550&atid=106550">1705925</a> - URL-encoded parameter values were not decoded properly if HttpUnitOptions.setDefaultCharacterSet() is set to something different than ISO-8859-1</li> + <li>bug #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1124057&group_id=6550&atid=106550">1124047</a> - selecting a select option by index should now throw RuntimeException rather than IndexOutOfBounds if the index is bad</li> + <li>bug #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1212204&group_id=6550&atid=106550">1212204</a> - WebRquest.getQueryString was ignoring parameters without values</li> + <li>bug #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1277797&group_id=6550&atid=106550">1277797</a> - expired cookies are now removed from the client session</li> + <li>bug #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1283878&group_id=6550&atid=106550">1283878</a> - in JDK 1.5, empty error pages were causing FileNotFoundException to be thrown</li> <li>bug #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1371204&group_id=6550&atid=106550">1371204</a> - there was no way to change or delete a server-supplied cookie from a test</li> + <li>bug #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1672385&group_id=6550&atid=106550">1672385</a> - specifying <code>HttpOnly</code> on a cookie header was causing any specified cookies to be lost</li> + <li>bug #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1705925&group_id=6550&atid=106550">1705925</a> - URL-encoded parameter values were not decoded properly if HttpUnitOptions.setDefaultCharacterSet() is set to something different than ISO-8859-1</li> <li>bug #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1843978&group_id=6550&atid=106550">1843978</a> - the value of a SELECT control could not be set if the web page defined a namespace URI</li> - <li>bug #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1277797&group_id=6550&atid=106550">1277797</a> - expired cookies are now removed from the client session</li> <li>bug #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1895501&group_id=6550&atid=106550">1895501</a> - the applet codebase was defaulting to the root directory, rather than the current directory</li> - <li>bug #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1672385&group_id=6550&atid=106550">1672385</a> - specifying <code>HttpOnly</code> on a cookie header was causing any specified cookies to be lost</li> <li>bug #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1954311&group_id=6550&atid=106550">1954311</a> - WebForm.setParameter no longer throws NullPointerException when the control is a TextArea</li> - <li>bug #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1124057&group_id=6550&atid=106550">1124047</a> - selecting a select option by index should now throw RuntimeException rather than IndexOutOfBounds if the index is bad</li> + <li>patch #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1155415&group_id=6550&atid=306550">1155415</a> - in some cases, automatic redirects could result in an infinite loop</li> <li>patch #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1155792&group_id=6550&atid=306550">1155792</a> - could not set the action for a form if its original action had a parameter named "action" </li> + <li>patch #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1281655&group_id=6550&atid=306550">1281655</a> - attempts to parse xml as html were being rejected</li> <li>patch #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1443333&group_id=6550&atid=306550">1443333</a> - unnamed image buttons now submit positions as "x" and "y"</li> - <li>patch #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1155415&group_id=6550&atid=306550">1155415</a> - in some cases, automatic redirects could result in an infinite loop</li> </ol> +<h5>Javascript</h5> +<ol> + <li>bug #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1289151&group_id=6550&atid=106550">1289151</a> - clicking a button was firing the 'onClick' event for disabled buttons</li> + <li>bug #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=&group_id=6550&atid=106550">1396835</a> - increading the length of a select control was throwing an exception</li> +</ol> <h5>PseudoServer</h5> <ol> <li>PseudoServer was incorrectly parsing chunk lengths as decimal rather than hexadecimal</li> </ol> <h5>ServletUnit</h5> <ol> + <li>The implementation of ServletContext is now public, allowing it to be instantiated via reflection as needed</li> + <li>bug #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1165454&group_id=6550&atid=106550">1165454</a> - HttpServletRequest.getScheme() now returns "https" for secure requests</li> + <li>bug #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1242640&group_id=6550&atid=106550">1242640</a> - Causes of 500 errors are not included in the stack trace</li> <li>bug #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1323031&group_id=6550&atid=106550">1323031</a> - HttpServletRequest.getPathInfo was not properly decoding spaces in URLs</li> </ol> <h4>Additions:</h4> <h5> Content and Parsing:</h5> <ol> - <li>Basic authentication now can support authorization only after challenge and different passwords for - different realms.</li> + <li>Created a custom HttpUnit DOM</li> + <li>Basic authentication now can support authorization only after challenge and different passwords for different realms.</li> <li>Added support for rudimentary (RFC 2109) digest authentication.</li> - <li>Added "overrideContextType" property to ClientProperties to permit handling of files served with the - wrong content type.</li> - <li>patch #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=844084&group_id=6550&atid=306550">844084</a> added "sendReferer" property to ClientProperties to permit testing of sites when the referer header is blocked - by a firewall or proxy server</li> + <li>Added "overrideContextType" property to ClientProperties to permit handling of files served with the wrong content type.</li> <li>Added <a href="api/com/meterware/httpunit/HttpsProtocolSupport.html#useProvider(java.lang.String,%20java.lang.String)">HttpsProtocolSupport.useProvider</a> to override the default selection of the JSSE for SSL support</li> <li>Added <a href="api/com/meterware/httpunit/HttpsProtocolSupport.html#useIBM()">HttpsProtocolSupport.useIBM</a> to select the SSL support provided by IBM WebSphere (which must be in the classpath)</li> - <li>patch #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1531005&group_id=6550&atid=306550">1531005</a> getElementsWithAttribute should now work with most attribute names</li> - <li>27-Mar-2006 Created a custom HttpUnit DOM</li> - <li>patch #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1518901&group_id=6550&atid=306550">1518901</a> added methods to control connection and read timeouts.</li> - <li>patch <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1415415&group_id=6550&atid=306550">1415415</a> added (mime types for tiff and pdf)</li> + <li>patch #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=844084&group_id=6550&atid=306550">844084</a> - added "sendReferer" property to ClientProperties to permit testing of sites when the referer header is blocked + by a firewall or proxy server</li> + <li>patch #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1518901&group_id=6550&atid=306550">1518901</a> - added methods to control connection and read timeouts.</li> + <li>patch #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1415415&group_id=6550&atid=306550">1415415</a> - added (mime types for tiff and pdf)</li> + <li>patch #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1531005&group_id=6550&atid=306550">1531005</a> - getElementsWithAttribute should now work with most attribute names</li> + <li>bug #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1476380&group_id=6550&atid=106550">1476380</a> - cookies are now accepted even if their domain matches exactly</li> </ol> <h5>Javascript support</h5> <ol> - <li>patch <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1653410&group_id=6550&atid=306550">1653410</a> - added support for arbitrary element attributes</li> - <li>patch <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=884146&group_id=6550&atid=306550">884146</a> - added support for the 'onMouseDown" and 'onMouseUp' events</li> - <li>patch <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1030851&group_id=6550&atid=306550">1030851</a> - added support for 'onBlur' and 'onFocus' events</li> - <li>patch <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=796961&group_id=6550&atid=356550">796961</a> - javascript events can now be directly invoked on elements</li> + <li>patch #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=796961&group_id=6550&atid=356550">796961</a> - javascript events can now be directly invoked on elements</li> + <li>patch #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=884146&group_id=6550&atid=306550">884146</a> - added support for the 'onMouseDown" and 'onMouseUp' events</li> + <li>patch #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1030851&group_id=6550&atid=306550">1030851</a> - added support for 'onBlur' and 'onFocus' events</li> + <li>patch #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1653410&group_id=6550&atid=306550">1653410</a> - added support for arbitrary element attributes</li> </ol> <h5>ServletUnit</h5> <ol> @@ -127,102 +127,6 @@ <li>Added WebResource.suppressAutomaticContentTypeHeader to permit generation of responses without the Content-Type header.</li> <li>Improved debugging messages and handle response timeouts.</li> </ol> -<h4>Acknowledgements</h4> -Thanks to the very many people that have supplied bugfixed and patches from 2005 to 2008 - please follow -the links to the sourceforge.net tracker items in the list of problems fixed below to find out the details about each contributor. -<h4>Problems corrected:</h4> -Bug fixes and patches from 2007-12 to 2008-04-19: for a full subversion log you -might want to issue the subversion command:<br /> - - <br /><code> svn log https://httpunit.svn.sourceforge.net/svnroot/httpunit</code><br /><br /> - The following list of changes has been extracted from this subversion log with patch - and subversion repository links being inserted. -<ol> - <li>inspired by e-mail Execute Javascript of span element<br />of 2008-04-01 by Christoph - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=870">r870</a>) - </li> - <li>bug fix for bug [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1289151&group_id=6550&atid=106550">1289151</a> ] Order of events in button.click() is wrong - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=871">r871</a>) - </li> - <li>patch from bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1264704&group_id=6550&atid=306550">1264704</a> ] [patch] add parent exception to HttpException by fabrizio giustina - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=872">r872</a>) - </li> - <li>fixed after comment from Mark - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=873">r873</a>) - </li> - <li>[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1281655&group_id=6550&atid=306550">1281655</a> ] [patch] allow text/xml to be parsed as html<br />by fabrizio giustina <br />made available static accessor for validContentTypes in WebResponse - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=879">r879</a>) - </li> - <li>Bug report by Adam Hardy via developer Mailinglist<br />of 2008-04-02 to avoid java.lang.IllegalAccessException: Class org.apache.tiles.access.TilesAccess can <br />not access a member of class com.meterware.servletunit.ServletUnitServletContext <br />with modifiers "public"<br />when working with Tiles - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=881">r881</a>) - </li> - <li>[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1035949&group_id=6550&atid=106550">1035949</a> ] NullPointerException on Weblink.click<br />by Ute Platzer<br />historic - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=883">r883</a>) - </li> - <li>patch for [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1476380&group_id=6550&atid=306550">1476380</a> ] Cookies incorrectly rejected despite valid domain<br />by Garrick Toubassi - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=884">r884</a>) - </li> - <li>[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1052037&group_id=6550&atid=106550">1052037</a> ] Semicolon not supported as URL param delimiter<br />by Luca<br />no fix yet only comments - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=885">r885</a>) - </li> - <li>fix for bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1165454&group_id=6550&atid=106550">1165454</a> ] ServletUnitHttpRequest.getScheme() returns "http" for secure<br />by Jeff Mills getScheme now returns _protocol (in lowercase) gotten from the URL of the request. Test will throw java.net.MalFormedURLException / unknown protcol for "ftps" which is considered expected at this time - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=887">r887</a>) - </li> - <li>[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1281655&group_id=6550&atid=306550">1281655</a> ] [patch] activated by chaning testTraversal - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=888">r888</a>) - </li> - <li>bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1396835&group_id=6550&atid=306550">1396835</a> ] Javascript : length of a select element cannot be increased<br />by gklopp + patch - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=899">r899</a>) - </li> - <li>bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1119205&group_id=6550&atid=306550">1119205</a> ] EOFExceptions while using a Proxy<br />patch by Ralf Bust<br />set to pending in tracker - the patch does not break any test<br />but there is no unit test for the difference of the two implementations yet - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=901">r901</a>) - </li> - <li>patch for bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1264706&group_id=6550&atid=306550">1264706</a> ] [patch] replace ClasspathEntityResolver<br />put into comment - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=903">r903</a>) - </li> - <li>Id keyword property set where missing - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=908">r908</a>) - </li> - <li>Bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1122186&group_id=6550&atid=106550">1122186</a> ] Duplicate select with same name cause error<br />fixed by changing constructor for IllegalParameterValueException and getting bad value in a separate function - may later also be used to fix the ClasscastException problem when a double is in the list of values - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=909">r909</a>) - </li> - <li>should fix class cast exception for which we are waiting for junit test - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=910">r910</a>) - </li> - <li>test for bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1143757&group_id=6550&atid=106550">1143757</a> ] encoding of Special charcters broken with 1.6<br />by Klaus Halfmann<br />works with no change - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=911">r911</a>) - </li> - <li>bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1156972&group_id=6550&atid=306550">1156972</a> ] isWebLink doesn't recognize all anchor tags<br />by fregienj<br />not patched yet and used warnDisabled until decision whether all <area> and <a> nodes are to be considered WebLinks no matter whether they have hrefs or not - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=912">r912</a>) - </li> - <li>test for bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1159810&group_id=6550&atid=106550">1159810</a> ] URL encoding problem with ServletUnit<br />by Sven Helmberger added<br />is a duplicate of the other encoding bug and works - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=913">r913</a>) - </li> - <li>bug #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1110071&group_id=6550&atid=106550">1110071</a>: javascript cannot increase length of a select control - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=914">r914</a>) - </li> - <li>test for Bug Report <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1937946&group_id=6550&atid=106550">1937946</a> added (but disabled for HttpUnitSuite since it needs index.html on localhost<br />convenience addition to be able to test this bug report on a Mac - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=916">r916</a>) - </li> - <li>bug report (actually a feature request) <br /><a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1942454&group_id=6550&atid=106550">1942454</a> Make ServerInfo a constant<br />by Philip Helger - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=917">r917</a>) - </li> - <li>fix for Bug report <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1212204&group_id=6550&atid=106550">1212204</a> by Brian Bonner - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=918">r918</a>) - </li> - <li>[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1222269&group_id=6550&atid=106550">1222269</a> ] Cannot setEntityResolver on ServletRunner<br />jim - jafergus<br />add another constructor for ServletRunner as requested - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=919">r919</a>) - </li> - <li>formatted extraction of subversion log with links - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=922">r922</a>) - </li> - <li>PATCH proposal [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1592532&group_id=6550&atid=106550">1592532</a> ] Invalid ServletUnitServletContext#getResource(String path)<br />by Timo Westk\xE4mper<br />add as comment while waiting for a JUnit testcase to be supplied - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=927">r927</a>) - </li> - <li>bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1283878&group_id=6550&atid=106550">1283878</a> ] FileNotFoundException using Sun JDK 1.5 on empty error pages by Roger Lindsj\xF6 checked with his - test case and fixed with his patch proposal (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=946">r946</a>) - </li> -</ol> <h3>Version 1.6.2 released 2006-03-27:</h3> <pre> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rus...@us...> - 2008-05-14 18:44:15
|
Revision: 969 http://httpunit.svn.sourceforge.net/httpunit/?rev=969&view=rev Author: russgold Date: 2008-05-14 11:44:13 -0700 (Wed, 14 May 2008) Log Message: ----------- more release note cleanup to prepare for 1.7 release Modified Paths: -------------- trunk/httpunit/doc/release_notes.html Modified: trunk/httpunit/doc/release_notes.html =================================================================== --- trunk/httpunit/doc/release_notes.html 2008-05-14 17:03:25 UTC (rev 968) +++ trunk/httpunit/doc/release_notes.html 2008-05-14 18:44:13 UTC (rev 969) @@ -22,63 +22,76 @@ <h3>Version 1.7 Released 2008-04-27</h3> <h4>Acknowledgements:</h4> -Thanks to Stefan H\xFCbner for supplying a patch for URL-decoding of parameters in ServletUnit -Thanks to Archimedes Trajano for supplying code to support non-JSSE SSL providers -Thanks to Bobby Abraham for adding the capability of deleting a cookie manually -Thanks to Rafal Krzewski for adding special handling for form actions containing a parameter named "action." -Thanks to Michael Rudolf for adding support for connection and read timeouts. -Thanks to Richard Lee for supporting xy parameter submission for unnamed image buttons. -Thanks to Laurent Wozniak for address the handling of expired cookies -Thanks to Matthew O. Smith for adding more sophisticated logging to ServletUnit -Thanks to Mattias Jiderhamn for adding Javascript support for arbitrary attributes -Thanks to Bj\xF6rn Beskow for adding Javascript support for 'onMouseUp' and 'onMouseDown' events -Thanks to Jord Sonneveld for adding support for onBlur and onFocus events +Thanks to <ul> + <li>Stefan H\xFCbner for supplying a patch for URL-decoding of parameters in ServletUnit</li> + <li>Archimedes Trajano for supplying code to support non-JSSE SSL providers</li> + <li>Bobby Abraham for adding the capability of deleting a cookie manually</li> + <li>Rafal Krzewski for adding special handling for form actions containing a parameter named "action."</li> + <li>Michael Rudolf for adding support for connection and read timeouts.</li> + <li>Richard Lee for supporting xy parameter submission for unnamed image buttons.</li> + <li>Laurent Wozniak for address the handling of expired cookies</li> + <li>Matthew O. Smith for adding more sophisticated logging to ServletUnit</li> + <li>Mattias Jiderhamn for adding Javascript support for arbitrary attributes</li> + <li>Bj\xF6rn Beskow for adding Javascript support for 'onMouseUp' and 'onMouseDown' events</li> + <li>Jord Sonneveld for adding support for onBlur and onFocus events</li> + <li>Hugh Winkler for fixing getPathInfo decoding</li> + <li>David D. Kilzer for supporting direct invocation ot javascript events</li> +</ul> <h4>Notes:</h4> <ol> - <li>Upgraded NekoHTML to 1.9.6</li> - <li>Upgraded Xerces to 2.6.1</li> - <li>Upgraded Rhino to 1.6R5</li> - <li>5-Jul-2007: - The PostMethodWebRequest.setMimeEncoded method has been removed. Mime encoding, if desired, should now be - specified when constructing the object.</li> - <li>28-Jun-2007: - WebLink.click() now only returns the contents of the frame containing the link. Previously, if there was no - event involved and the link included a frame reference, it would return the contents of the referenced frame. - </li> - <li>26-Nov-2006: - HttpUnit configuration management has been moved from CVS to subversion at http://httpunit.svn.sourceforge.net/svnroot/httpunit/trunk/httpunit - </li> - <li>28-Mar-2006: - The build now uses the ant-dependencies task (see http://www.httpunit.org/doc/dependencies.html) rather than - keeping the dependent jars in cvs.</li> - <li>made some controls (RadioButton,RadioGroupForm) public to support Radiobutton testing better - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=787">r787</a>) - </li> - <li>some refactoring: HttpUnitUtils.handleException is now called where a simple printStackTrace was - found in the past. The boolean flag HttpUnitUtil.EXCEPTION_DEBUG now controls whether this happens - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=822">r822</a>) - </li> - <li>The doScript method has been refactored - it is now deprecated and renamed to doScriptEvent to make clear - that this method expects a full script to work on. A click will now also fire the mousedown and mouseup events. - handleEvent is now the method to call for handling events by name e.g. onchange, onmousedown, onclick, onmouseup, onblur, onfocus - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=839">r839</a>) - </li> + <li>Upgraded NekoHTML to 1.9.6</li> + <li>Upgraded Xerces to 2.6.1</li> + <li>Upgraded Rhino to 1.6R5</li> + <li>The PostMethodWebRequest.setMimeEncoded method has been removed. Mime encoding, if desired, should now be + specified when constructing the object. + </li> + <li>WebLink.click() now only returns the contents of the frame containing the link. Previously, if there was no + event involved and the link included a frame reference, it would return the contents of the referenced frame. + </li> + <li> HttpUnit configuration management has been moved from CVS to subversion at + http://httpunit.svn.sourceforge.net/svnroot/httpunit/trunk/httpunit + </li> + <li>The build now uses the ant-dependencies task (see http://www.httpunit.org/doc/dependencies.html) rather than + keeping the dependent jars in cvs. + </li> + <li>made some controls (RadioButton,RadioGroupForm) public to support Radiobutton testing better + </li> + <li>HttpUnitUtils.handleException is now called where a simple printStackTrace was + found in the past. The boolean flag HttpUnitUtil.EXCEPTION_DEBUG now controls whether this happens + </li> + <li>The doScript method has been refactored - it is now deprecated and renamed to doScriptEvent to make clear + that this method expects a full script to work on. A click will now also fire the mousedown and mouseup events. + handleEvent is now the method to call for handling events by name e.g. onchange, onmousedown, onclick, + onmouseup, onblur, onfocus + </li> + <li>When using the nekoHtml parser, tag and attribute names now default to lower case, rather than upper case as + before + </li> </ol> <h4>Problems fixed:</h4> <h5>Content and Parsing:</h5> <ol> - <li>bug #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1705925&group_id=6550&atid=106550">1705925</a> URL-encoded parameter values were not decoded properly if HttpUnitOptions.setDefaultCharacterSet() is set to something different than ISO-8859-1</li> - <li>bug #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1371204&group_id=6550&atid=106550">1371204</a> there was no way to change or delete a server-supplied cookie from a test</li> - <li>bug #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1843978&group_id=6550&atid=106550">1843978</a> the value of a SELECT control could not be set if the web page defined a namespace URI</li> - <li>bug #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1277797&group_id=6550&atid=106550">1277797</a> expired cookies are now removed from the client session</li> - <li>patch #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1155792&group_id=6550&atid=306550">1155792</a> could not set the action for a form if its original action had a parameter named "action" </li> - <li>patch #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1443333&group_id=6550&atid=306550">1443333</a> unnamed image buttons now submit positions as "x" and "y"</li> + <li>bug #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1705925&group_id=6550&atid=106550">1705925</a> - URL-encoded parameter values were not decoded properly if HttpUnitOptions.setDefaultCharacterSet() is set to something different than ISO-8859-1</li> + <li>bug #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1371204&group_id=6550&atid=106550">1371204</a> - there was no way to change or delete a server-supplied cookie from a test</li> + <li>bug #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1843978&group_id=6550&atid=106550">1843978</a> - the value of a SELECT control could not be set if the web page defined a namespace URI</li> + <li>bug #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1277797&group_id=6550&atid=106550">1277797</a> - expired cookies are now removed from the client session</li> + <li>bug #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1895501&group_id=6550&atid=106550">1895501</a> - the applet codebase was defaulting to the root directory, rather than the current directory</li> + <li>bug #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1672385&group_id=6550&atid=106550">1672385</a> - specifying <code>HttpOnly</code> on a cookie header was causing any specified cookies to be lost</li> + <li>bug #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1954311&group_id=6550&atid=106550">1954311</a> - WebForm.setParameter no longer throws NullPointerException when the control is a TextArea</li> + <li>bug #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1124057&group_id=6550&atid=106550">1124047</a> - selecting a select option by index should now throw RuntimeException rather than IndexOutOfBounds if the index is bad</li> + <li>patch #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1155792&group_id=6550&atid=306550">1155792</a> - could not set the action for a form if its original action had a parameter named "action" </li> + <li>patch #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1443333&group_id=6550&atid=306550">1443333</a> - unnamed image buttons now submit positions as "x" and "y"</li> + <li>patch #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1155415&group_id=6550&atid=306550">1155415</a> - in some cases, automatic redirects could result in an infinite loop</li> </ol> <h5>PseudoServer</h5> <ol> <li>PseudoServer was incorrectly parsing chunk lengths as decimal rather than hexadecimal</li> </ol> +<h5>ServletUnit</h5> +<ol> + <li>bug #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1323031&group_id=6550&atid=106550">1323031</a> - HttpServletRequest.getPathInfo was not properly decoding spaces in URLs</li> +</ol> <h4>Additions:</h4> <h5> Content and Parsing:</h5> <ol> @@ -98,14 +111,16 @@ </ol> <h5>Javascript support</h5> <ol> - <li>patch <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1653410&group_id=6550&atid=306550">1653410</a> added support for arbitrary element attributes</li> - <li>patch <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=884146&group_id=6550&atid=306550">884146</a> added support for the 'onMouseDown" and 'onMouseUp' events</li> - <li>patch <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1030851&group_id=6550&atid=306550">1030851</a> added support for 'onBlur' and 'onFocus' events</li> + <li>patch <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1653410&group_id=6550&atid=306550">1653410</a> - added support for arbitrary element attributes</li> + <li>patch <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=884146&group_id=6550&atid=306550">884146</a> - added support for the 'onMouseDown" and 'onMouseUp' events</li> + <li>patch <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1030851&group_id=6550&atid=306550">1030851</a> - added support for 'onBlur' and 'onFocus' events</li> + <li>patch <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=796961&group_id=6550&atid=356550">796961</a> - javascript events can now be directly invoked on elements</li> </ol> <h5>ServletUnit</h5> <ol> - <li>ServletUnitHttpRequest.getDateHeader() has been implemented; previously it always returned -1</li> - <li>patch #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1864072&group_id=6550&atid=106550">1864072</a> now log to a user-specified output stream</li> + <li>HttpRequest.getDateHeader() has been implemented; previously it always returned -1</li> + <li>patch #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1246438&group_id=6550&atid=106550">1246438</a> - HttpRequest.getReader is now implemented</li> + <li>patch #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1864072&group_id=6550&atid=106550">1864072</a> - now log to a user-specified output stream</li> </ol> <h5>Pseudoserver:</h5> <ol> @@ -123,69 +138,6 @@ The following list of changes has been extracted from this subversion log with patch and subversion repository links being inserted. <ol> - <li>bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1954311&group_id=6550&atid=106550">1954311</a> ] WebForm.setParameter throws NullPointerException on textarea by Matthew O. Smith fixed - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=956">r956</a>) - </li> - <li>new interface - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=842">r842</a>) - </li> - <li>patch [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1117822&group_id=6550&atid=306550">1117822</a> ] Patch for purgeEmptyCells() problem<br />by Glen Stampoultzis - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=843">r843</a>) - </li> - <li>patch [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1211154&group_id=6550&atid=306550">1211154</a> ] NekoDOMParser default to lowercase by Dan Allen - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=844">r844</a>) - </li> - <li>patch [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1155415&group_id=6550&atid=306550">1155415</a> ] Handle redirect instructions which can lead to a loop by james abley - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=846">r846</a>) - </li> - <li>patch [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1155415&group_id=6550&atid=306550">1155415</a> ] Handle redirect instructions which can lead to a loop by james abley - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=847">r847</a>) - </li> - <li>bug [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1159858&group_id=6550&atid=306550">1159858</a> ] allow parsing intercepted pages into HTMLSegment objects<br />with patch [ 1159858 ] patch for RFE 1159844 (parsing intercepted pages)<br />by Rafal Krzewski - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=848">r848</a>) - </li> - <li>[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1159887&group_id=6550&atid=306550">1159887</a> ] patch for RFE 1159884 by Rafal Krzewski - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=849">r849</a>) - </li> - <li>testcase for https://sourceforge.net/forum/message.php?msg_id=<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=4482660&group_id=6550&atid=106550">4482660</a><br />by kauffmann81 - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=851">r851</a>) - </li> - <li>test for https://sourceforge.net/forum/message.php?msg_id=<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=3485431&group_id=6550&atid=106550">3485431</a> - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=852">r852</a>) - </li> - <li>tried to change the url encoding for spaces - did not succeed - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=853">r853</a>) - </li> - <li>[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1176688&group_id=6550&atid=106550">1176688</a> ] Allow configuration of neko parser properties<br />but feature switched off since the test cases don't work then - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=855">r855</a>) - </li> - <li>patch [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1235132&group_id=6550&atid=306550">1235132</a> ] Getter support for javascript form.name<br />by Peter Phillips + make it work for DOM engine - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=856">r856</a>) - </li> - <li>[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1246438&group_id=6550&atid=106550">1246438</a> ] For issue 1221537; ServletUnitHttpRequest.getReader not impl<br />by Tim - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=857">r857</a>) - </li> - <li>patch [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1323053&group_id=6550&atid=306550">1323053</a> ] Patch for 1323031 by Hugh Winkler - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=858">r858</a>) - </li> - <li>[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1488617&group_id=6550&atid=306550">1488617</a> ] alternate patch for cookie bug #1371204<br />by Richard Lee - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=859">r859</a>) - </li> - <li>tests and start of implementation for [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1870946&group_id=6550&atid=106550">1870946</a> ] getAttribute function support in HTMLElement (not fixed yet so switched off for old scripting engine) - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=860">r860</a>) - </li> - <li>bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1895501&group_id=6550&atid=106550">1895501</a> ] Handling no codebase attribute in APPLET tag<br />change default from "/" to "." meaning from root directory to current directory - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=861">r861</a>) - </li> - <li>[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1672385&group_id=6550&atid=106550">1672385</a> ] HttpOnly cookie looses all cookie info - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=863">r863</a>) - </li> - <li>feature request [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=796961&group_id=6550&atid=106550">796961</a> ] Support indirect invocation of JavaScript events on elements<br />by David D Kilzer<br />test added - works with no change to code - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=867">r867</a>) - </li> - <li>Bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1124057&group_id=6550&atid=106550">1124057</a> ] Out of Bounds Exception should be avoided<br />by Wolfgang Fahl of 2005-02-16 17:25 - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=868">r868</a>) - </li> <li>inspired by e-mail Execute Javascript of span element<br />of 2008-04-01 by Christoph (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=870">r870</a>) </li> @@ -198,15 +150,6 @@ <li>fixed after comment from Mark (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=873">r873</a>) </li> - <li>test for [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1396877&group_id=6550&atid=106550">1396877</a> ] Javascript:properties parentNode,firstChild, .. returns null<br />by gklopp 2006-01-04 15:15 - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=875">r875</a>) - </li> - <li>test for bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1153066&group_id=6550&atid=106550">1153066</a> ] Eternal loop while processing javascript by Serguei Khramtchenko 2005-02-27 - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=876">r876</a>) - </li> - <li>test for bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1295782&group_id=6550&atid=306550">1295782</a> ] Method purgeEmptyCells Truncates Table by ahansen 2005-09-19 22:47<br />no fix necessary anymore - already patched - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=877">r877</a>) - </li> <li>[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1281655&group_id=6550&atid=306550">1281655</a> ] [patch] allow text/xml to be parsed as html<br />by fabrizio giustina <br />made available static accessor for validContentTypes in WebResponse (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=879">r879</a>) </li> @@ -228,18 +171,6 @@ <li>[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1281655&group_id=6550&atid=306550">1281655</a> ] [patch] activated by chaning testTraversal (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=888">r888</a>) </li> - <li>[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1629836&group_id=6550&atid=106550">1629836</a> ] Anchor only form actions are not properly handled<br />by Claude Brisson <br />can not reproduce - testcase runs - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=889">r889</a>) - </li> - <li>[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1055450&group_id=6550&atid=106550">1055450</a> ] Error loading included script aborts entire request<br />by Renaud Waldura<br />works already with 1.6.2 - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=890">r890</a>) - </li> - <li>comment for <br />bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1060291&group_id=6550&atid=106550">1060291</a> ] setting multiple values in selection <br />list <br />by Vladimir<br />that the existing testMultiSelect seems to fit - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=892">r892</a>) - </li> - <li>trying to check <br />[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1113728&group_id=6550&atid=106550">1113728</a> ] getRealPath throws IndexOutOfBoundsException on empty string<br />by Adrian Baker<br />had to comment out again - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=898">r898</a>) - </li> <li>bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1396835&group_id=6550&atid=306550">1396835</a> ] Javascript : length of a select element cannot be increased<br />by gklopp + patch (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=899">r899</a>) </li> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rus...@us...> - 2008-05-14 17:03:27
|
Revision: 968 http://httpunit.svn.sourceforge.net/httpunit/?rev=968&view=rev Author: russgold Date: 2008-05-14 10:03:25 -0700 (Wed, 14 May 2008) Log Message: ----------- more release note cleanup to prepare for 1.7 release Modified Paths: -------------- trunk/httpunit/doc/release_notes.html Modified: trunk/httpunit/doc/release_notes.html =================================================================== --- trunk/httpunit/doc/release_notes.html 2008-05-14 06:07:29 UTC (rev 967) +++ trunk/httpunit/doc/release_notes.html 2008-05-14 17:03:25 UTC (rev 968) @@ -31,6 +31,8 @@ Thanks to Laurent Wozniak for address the handling of expired cookies Thanks to Matthew O. Smith for adding more sophisticated logging to ServletUnit Thanks to Mattias Jiderhamn for adding Javascript support for arbitrary attributes +Thanks to Bj\xF6rn Beskow for adding Javascript support for 'onMouseUp' and 'onMouseDown' events +Thanks to Jord Sonneveld for adding support for onBlur and onFocus events <h4>Notes:</h4> <ol> @@ -73,6 +75,10 @@ <li>patch #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1155792&group_id=6550&atid=306550">1155792</a> could not set the action for a form if its original action had a parameter named "action" </li> <li>patch #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1443333&group_id=6550&atid=306550">1443333</a> unnamed image buttons now submit positions as "x" and "y"</li> </ol> +<h5>PseudoServer</h5> +<ol> + <li>PseudoServer was incorrectly parsing chunk lengths as decimal rather than hexadecimal</li> +</ol> <h4>Additions:</h4> <h5> Content and Parsing:</h5> <ol> @@ -93,7 +99,8 @@ <h5>Javascript support</h5> <ol> <li>patch <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1653410&group_id=6550&atid=306550">1653410</a> added support for arbitrary element attributes</li> - + <li>patch <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=884146&group_id=6550&atid=306550">884146</a> added support for the 'onMouseDown" and 'onMouseUp' events</li> + <li>patch <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1030851&group_id=6550&atid=306550">1030851</a> added support for 'onBlur' and 'onFocus' events</li> </ol> <h5>ServletUnit</h5> <ol> @@ -119,15 +126,6 @@ <li>bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1954311&group_id=6550&atid=106550">1954311</a> ] WebForm.setParameter throws NullPointerException on textarea by Matthew O. Smith fixed (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=956">r956</a>) </li> - <li>patch <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=884146&group_id=6550&atid=306550">884146</a> + refactoring around handling events - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=839">r839</a>) - </li> - <li>patch <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1030851&group_id=6550&atid=306550">1030851</a> by Jord Sonneveld - jsonneve - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=840">r840</a>) - </li> - <li>inspired by Ville Skytt?\195?\164's patch[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1065881&group_id=6550&atid=306550">1065881</a> ] Fix servlettest classpath - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=841">r841</a>) - </li> <li>new interface (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=842">r842</a>) </li> @@ -143,7 +141,7 @@ <li>patch [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1155415&group_id=6550&atid=306550">1155415</a> ] Handle redirect instructions which can lead to a loop by james abley (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=847">r847</a>) </li> - <li>bug [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1159858&group_id=6550&atid=306550>1159858</a> ] allow parsing intercepted pages into HTMLSegment objects<br />with patch [ 1159858 ] patch for RFE 1159844 (parsing intercepted pages)<br />by Rafal Krzewski + <li>bug [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1159858&group_id=6550&atid=306550">1159858</a> ] allow parsing intercepted pages into HTMLSegment objects<br />with patch [ 1159858 ] patch for RFE 1159844 (parsing intercepted pages)<br />by Rafal Krzewski (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=848">r848</a>) </li> <li>[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1159887&group_id=6550&atid=306550">1159887</a> ] patch for RFE 1159884 by Rafal Krzewski @@ -179,30 +177,15 @@ <li>bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1895501&group_id=6550&atid=106550">1895501</a> ] Handling no codebase attribute in APPLET tag<br />change default from "/" to "." meaning from root directory to current directory (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=861">r861</a>) </li> - <li>comment modified - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=862">r862</a>) - </li> <li>[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1672385&group_id=6550&atid=106550">1672385</a> ] HttpOnly cookie looses all cookie info (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=863">r863</a>) </li> - <li>test for bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1533762&group_id=6550&atid=306550">1533762</a> ] Valid cookies are rejected<br />by Alexey Bulat but unfortunately patch does not work - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=864">r864</a>) - </li> - <li>test case for [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1508516&group_id=6550&atid=106550">1508516</a> ] Javascript method: "undefined" is not supported<br />- works ! - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=865">r865</a>) - </li> - <li>test and analysis for javaScript cloneNode feature asked for by Mark Childerson according to<br />http://www.w3.org/TR/REC-DOM-Level-1/java-language-binding.html - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=866">r866</a>) - </li> <li>feature request [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=796961&group_id=6550&atid=106550">796961</a> ] Support indirect invocation of JavaScript events on elements<br />by David D Kilzer<br />test added - works with no change to code (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=867">r867</a>) </li> <li>Bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1124057&group_id=6550&atid=106550">1124057</a> ] Out of Bounds Exception should be avoided<br />by Wolfgang Fahl of 2005-02-16 17:25 (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=868">r868</a>) </li> - <li>Test for bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1124024&group_id=6550&atid=106550">1124024</a> ] Formcontrol and isDisabled should be public<br />by Wolfgang Fahl 2005-02-16 16:39 - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=869">r869</a>) - </li> <li>inspired by e-mail Execute Javascript of span element<br />of 2008-04-01 by Christoph (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=870">r870</a>) </li> @@ -215,9 +198,6 @@ <li>fixed after comment from Mark (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=873">r873</a>) </li> - <li>new NekoHtml 1.9.6 parser - please note one test failing:<br />testJavascriptDetectionTrick - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=874">r874</a>) - </li> <li>test for [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1396877&group_id=6550&atid=106550">1396877</a> ] Javascript:properties parentNode,firstChild, .. returns null<br />by gklopp 2006-01-04 15:15 (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=875">r875</a>) </li> @@ -227,21 +207,12 @@ <li>test for bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1295782&group_id=6550&atid=306550">1295782</a> ] Method purgeEmptyCells Truncates Table by ahansen 2005-09-19 22:47<br />no fix necessary anymore - already patched (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=877">r877</a>) </li> - <li>comments for patch <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1509117&group_id=6550&atid=306550">1509117</a> - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=878">r878</a>) - </li> <li>[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1281655&group_id=6550&atid=306550">1281655</a> ] [patch] allow text/xml to be parsed as html<br />by fabrizio giustina <br />made available static accessor for validContentTypes in WebResponse (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=879">r879</a>) </li> - <li>developers and release notes - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=880">r880</a>) - </li> <li>Bug report by Adam Hardy via developer Mailinglist<br />of 2008-04-02 to avoid java.lang.IllegalAccessException: Class org.apache.tiles.access.TilesAccess can <br />not access a member of class com.meterware.servletunit.ServletUnitServletContext <br />with modifiers "public"<br />when working with Tiles (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=881">r881</a>) </li> - <li>partially disabled noscript detection trick test, pending nekoHTML bugfix - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=882">r882</a>) - </li> <li>[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1035949&group_id=6550&atid=106550">1035949</a> ] NullPointerException on Weblink.click<br />by Ute Platzer<br />historic (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=883">r883</a>) </li> @@ -251,9 +222,6 @@ <li>[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1052037&group_id=6550&atid=106550">1052037</a> ] Semicolon not supported as URL param delimiter<br />by Luca<br />no fix yet only comments (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=885">r885</a>) </li> - <li>test for bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1161922&group_id=6550&atid=106550">1161922</a> ] setting window.onload has no effect<br />by Kent Tong - no fix necessary - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=886">r886</a>) - </li> <li>fix for bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1165454&group_id=6550&atid=106550">1165454</a> ] ServletUnitHttpRequest.getScheme() returns "http" for secure<br />by Jeff Mills getScheme now returns _protocol (in lowercase) gotten from the URL of the request. Test will throw java.net.MalFormedURLException / unknown protcol for "ftps" which is considered expected at this time (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=887">r887</a>) </li> @@ -269,9 +237,6 @@ <li>comment for <br />bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1060291&group_id=6550&atid=106550">1060291</a> ] setting multiple values in selection <br />list <br />by Vladimir<br />that the existing testMultiSelect seems to fit (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=892">r892</a>) </li> - <li>test case for bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1151277&group_id=6550&atid=106550">1151277</a> ] httpunit 1.6 breaks Cookie handling for ServletUnitClient<br />by Michael Corum<br />runs without change - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=896">r896</a>) - </li> <li>trying to check <br />[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1113728&group_id=6550&atid=106550">1113728</a> ] getRealPath throws IndexOutOfBoundsException on empty string<br />by Adrian Baker<br />had to comment out again (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=898">r898</a>) </li> @@ -281,24 +246,9 @@ <li>bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1119205&group_id=6550&atid=306550">1119205</a> ] EOFExceptions while using a Proxy<br />patch by Ralf Bust<br />set to pending in tracker - the patch does not break any test<br />but there is no unit test for the difference of the two implementations yet (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=901">r901</a>) </li> - <li>test for [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1396896&group_id=6550&atid=106550">1396896</a> ] Javascript: length property of a select element not writable<br />by gklopp <br />modified impl to throw "Not implemented exception"<br />Modal test case for new Dom Scripting Engine - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=902">r902</a>) - </li> <li>patch for bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1264706&group_id=6550&atid=306550">1264706</a> ] [patch] replace ClasspathEntityResolver<br />put into comment (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=903">r903</a>) </li> - <li>test for bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1215734&group_id=6550&atid=306550">1215734</a> ] another <select> problem<br />by alex<br />patched the IllegalParameterValueException to but options in quotes to better show the "Kent, Richard" culprit<br />showed that tab and space could also lead to a problem - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=904">r904</a>) - </li> - <li>test for the bug reports <br />[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1216567&group_id=6550&atid=306550">1216567</a> ] Exception for large javascripts<br />by Grzegorz Lukasik <br />and bug report [ 1572117 ] ClassFormatError<br />by Walter Meier<br />set quicktest to false to run the test for scripts from<br />a thousand to a million lines for optimization levels from -2 to 9 (will take approx 30 secs)<br />patch: new function:<br />HttpUnitOptions.setJavaScriptOptimizationLevel(optimizationLevel);<br />with default optimization level of -1 (interpret) - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=905">r905</a>) - </li> - <li>test for open bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1043368&group_id=6550&atid=106550">1043368</a> ] WebTable has wrong number of columns<br />by AutoTest<br />added and disabled (warning only) - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=906">r906</a>) - </li> - <li>Formtable test added and added warnDisabled generalization for some tests - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=907">r907</a>) - </li> <li>Id keyword property set where missing (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=908">r908</a>) </li> @@ -320,9 +270,6 @@ <li>bug #<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1110071&group_id=6550&atid=106550">1110071</a>: javascript cannot increase length of a select control (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=914">r914</a>) </li> - <li>14-Apr-2008 PseudoServer was incorrectly parsing chunk lengths as decimal rather than hexadecimal - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=915">r915</a>) - </li> <li>test for Bug Report <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1937946&group_id=6550&atid=106550">1937946</a> added (but disabled for HttpUnitSuite since it needs index.html on localhost<br />convenience addition to be able to test this bug report on a Mac (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=916">r916</a>) </li> @@ -335,46 +282,13 @@ <li>[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1222269&group_id=6550&atid=106550">1222269</a> ] Cannot setEntityResolver on ServletRunner<br />jim - jafergus<br />add another constructor for ServletRunner as requested (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=919">r919</a>) </li> - <li>improved - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=921">r921</a>) - </li> <li>formatted extraction of subversion log with links (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=922">r922</a>) </li> <li>PATCH proposal [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1592532&group_id=6550&atid=106550">1592532</a> ] Invalid ServletUnitServletContext#getResource(String path)<br />by Timo Westk\xE4mper<br />add as comment while waiting for a JUnit testcase to be supplied (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=927">r927</a>) </li> - <li>test for bug report<br />[ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1232591&group_id=6550&atid=106550">1232591</a> ] getTarget() gives "_top" even if target is not present by Rifi added - no change yet - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=928">r928</a>) - </li> - <li>test case for bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1376739&group_id=6550&atid=306550">1376739</a> ] iframe tag not recognized if Javascript code contains '<'<br />by Nathan Jakubiak added<br />The supplied patch unfortunately does not work and is therefore only added as a comment - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=929">r929</a>) - </li> - <li>test case for bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1390695&group_id=6550&atid=106550">1390695</a> ] bad error message<br />by Martin Olsson<br />added and fixed to FormParameter now to throw a NoSuchParameterException instead of an UnusedUploadFileException: - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=932">r932</a>) - </li> - <li>test case for bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1390695&group_id=6550&atid=106550">1390695</a> ] bad error message<br />by Martin Olsson<br />added and fixed to FormParameter now to throw a NoSuchParameterException instead of an UnusedUploadFileException: - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=933">r933</a>) - </li> - <li>test for bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1393144&group_id=6550&atid=306550">1393144</a> ] URL args in form action are sent for GET forms by Nathan Jakubiak<br />added and disabled while bug is pending and waiting for patch - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=934">r934</a>) - </li> - <li>test for bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1432236&group_id=6550&atid=106550">1432236</a> ] Downloading gif images uses up sockets by Sir Runcible Spoon - with many images httpunit<br />might run out of resources. In the test environment up<br />to 10.000 image accesses where possible (taking some 7 minutes) with no problem - the test for 10 and 100 images is active - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=935">r935</a>) - </li> - <li>Test for bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1510495&group_id=6550&atid=106550">1510495</a> ] getParameterValue on a submit button fails by Julien HENRY added<br />if submit is done before getting the form parameter everything is fine - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=936">r936</a>) - </li> - <li>added test case for bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1510582&group_id=6550&atid=106550">1510582</a> ] setParameter fails with <input type="file"> by Julien Henry <br />and changed the behaviour of setparameter that a more<br />developer friendly exception with a hopefully better understandable message is thrown to point out that file parameters need a parameter of type java.io.File when being set - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=937">r937</a>) - </li> - <li>test for bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1534234&group_id=6550&atid=306550">1534234</a> ] HttpServletResponse.isCommitted() always false? (+ p a t c h)<br />by Olaf Klischat added. Unfortunately p a t c h does <br />break other tests - asking for improved test case and patch - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=938">r938</a>) - </li> - <li>test case for [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1535018&group_id=6550&atid=106550">1535018</a> ] Sub frame recognition - getSubframeContents by Oliver GL<br />there is the almost original version of the testCase xtestSubFrameRecognition and a working version<br />testSubFrameRecognition the difference between the two and the link in the response of today shows that people have a hard time understanding how the getFrameContents and getSubframeContents functions work. - (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=939">r939</a>) - </li> - <li>bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1283878&group_id=6550&atid=106550">1283878</a> ] FileNotFoundException using Sun JDK 1.5 on empty error pages by Roger Lindsj\xF6 checked with his + <li>bug report [ <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=1283878&group_id=6550&atid=106550">1283878</a> ] FileNotFoundException using Sun JDK 1.5 on empty error pages by Roger Lindsj\xF6 checked with his test case and fixed with his patch proposal (<a href="http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=946">r946</a>) </li> </ol> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wol...@us...> - 2008-05-14 06:07:32
|
Revision: 967 http://httpunit.svn.sourceforge.net/httpunit/?rev=967&view=rev Author: wolfgang_fahl Date: 2008-05-13 23:07:29 -0700 (Tue, 13 May 2008) Log Message: ----------- not for release notes header Modified Paths: -------------- trunk/httpunit/httpunit.pom Modified: trunk/httpunit/httpunit.pom =================================================================== --- trunk/httpunit/httpunit.pom 2008-05-14 06:07:07 UTC (rev 966) +++ trunk/httpunit/httpunit.pom 2008-05-14 06:07:29 UTC (rev 967) @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!--- - $Header$ + $Id$ This file is a contribution by Matt Smith as of 2008-05-14: I have created and attached a POM for building httpunit using Maven2. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wol...@us...> - 2008-05-14 06:07:09
|
Revision: 966 http://httpunit.svn.sourceforge.net/httpunit/?rev=966&view=rev Author: wolfgang_fahl Date: 2008-05-13 23:07:07 -0700 (Tue, 13 May 2008) Log Message: ----------- not for release notes header Property Changed: ---------------- trunk/httpunit/httpunit.pom Property changes on: trunk/httpunit/httpunit.pom ___________________________________________________________________ Name: svn:keywords - Id,Header + Author Date Id Revision This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wol...@us...> - 2008-05-14 06:06:03
|
Revision: 965 http://httpunit.svn.sourceforge.net/httpunit/?rev=965&view=rev Author: wolfgang_fahl Date: 2008-05-13 23:06:01 -0700 (Tue, 13 May 2008) Log Message: ----------- not for release notes header Property Changed: ---------------- trunk/httpunit/httpunit.pom Property changes on: trunk/httpunit/httpunit.pom ___________________________________________________________________ Name: svn:keywords - + Id,Header This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <wol...@us...> - 2008-05-14 06:04:11
|
Revision: 964 http://httpunit.svn.sourceforge.net/httpunit/?rev=964&view=rev Author: wolfgang_fahl Date: 2008-05-13 23:04:08 -0700 (Tue, 13 May 2008) Log Message: ----------- Maven pom file contribution by Matt Smith Added Paths: ----------- trunk/httpunit/httpunit.pom Added: trunk/httpunit/httpunit.pom =================================================================== --- trunk/httpunit/httpunit.pom (rev 0) +++ trunk/httpunit/httpunit.pom 2008-05-14 06:04:08 UTC (rev 964) @@ -0,0 +1,186 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!--- + $Header$ + This file is a contribution by Matt Smith as of 2008-05-14: + + I have created and attached a POM for building httpunit using Maven2. + It also runs FindBugs and cobertura, a code coverage tool, as well. + It uses the current project structure. It excludes the following tests: + EventAwareTestCase + WebClientTest + WebPageTest + +Also, if you run out of memory on the FindBugs, try upping the memory thusly +export MAVEN_OPTS=-Xmx384M +--> +<project> + <modelVersion>4.0.0</modelVersion> + <groupId>httpunit</groupId> + <artifactId>httpunit</artifactId> + <version>1.7-SNAPSHOT</version> + <description></description> + <build> + <sourceDirectory>src</sourceDirectory> + <testSourceDirectory>test</testSourceDirectory> + <testResources> + <testResource> + <directory>META-INF</directory> + </testResource> + </testResources> + <resources> + <resource> + <directory>META-INF</directory> + </resource> + </resources> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>cobertura-maven-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-source-plugin</artifactId> + <executions> + <execution> + <id>attach-sources</id> + <phase>package</phase> + <goals> + <goal>jar</goal> + <goal>test-jar</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <version>1.0</version> + <executions> + <execution> + <id>add-source</id> + <phase>generate-sources</phase> + <goals> + <goal>add-source</goal> + </goals> + <configuration> + <sources> + <source>src-1.4</source> + </sources> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <forkMode>never</forkMode> + <!-- Assertions diasabled due to a bug in xmlbeans + https://issues.apache.org/jira/browse/XMLBEANS-317 --> + <enableAssertions>false</enableAssertions> + <excludes> + <exclude>**/TestSuite$1.class</exclude> + <exclude>**/EventAwareTestCase.class</exclude> + <exclude>**/WebClientTest.class</exclude> + <exclude>**/WebPageTest.class</exclude> + </excludes> + </configuration> + </plugin> + </plugins> + + </build> + <reporting> + <plugins> + <plugin> + <artifactId>maven-javadoc-plugin</artifactId> + </plugin> + <plugin> + <artifactId>maven-surefire-report-plugin</artifactId> + <configuration> + <additionalClasspathElements> + <additionalClasspathElement> + META-INF + </additionalClasspathElement> + </additionalClasspathElements> + </configuration> + </plugin> + <plugin> + <artifactId>maven-jxr-plugin</artifactId> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>findbugs-maven-plugin</artifactId> + <configuration> + <threshold>Normal</threshold> + </configuration> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>cobertura-maven-plugin</artifactId> + </plugin> + </plugins> + + </reporting> + + <dependencies> + <dependency> + <groupId>rhino</groupId> + <artifactId>js</artifactId> + <version>1.6R5</version> + </dependency> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>3.8.1</version> + </dependency> + <dependency> + <groupId>nekohtml</groupId> + <artifactId>nekohtml</artifactId> + <version>1.9.6</version> + </dependency> + <dependency> + <groupId>javax.servlet</groupId> + <artifactId>servlet-api</artifactId> + <version>2.4</version> + </dependency> + <dependency> + <groupId>jtidy</groupId> + <artifactId>jtidy</artifactId> + <version>4aug2000r7-dev</version> + </dependency> + <dependency> + <groupId>xerces</groupId> + <artifactId>xercesImpl</artifactId> + <version>2.6.1</version> + </dependency> + <dependency> + <groupId>xerces</groupId> + <artifactId>xmlParserAPIs</artifactId> + <version>2.6.1</version> + </dependency> + <dependency> + <groupId>javax.mail</groupId> + <artifactId>mail</artifactId> + <version>1.4</version> + <scope>test</scope> + </dependency> + </dependencies> + + <pluginRepositories> + <pluginRepository> + <id>repo1</id> + <url>http://repo1.maven.org/maven2/</url> + <snapshots> + <enabled>true</enabled> + </snapshots> + <releases> + <enabled>true</enabled> + </releases> + </pluginRepository> + </pluginRepositories> +</project> Property changes on: trunk/httpunit/httpunit.pom ___________________________________________________________________ Name: svn:keywords + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |