Update of /cvsroot/jwebunit/jWebUnit/test/net/sourceforge/jwebunit
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4694/test/net/sourceforge/jwebunit
Modified Files:
AllTests.java JavaScriptEventsTest.java
FramesAndWindowsTest.java
Log Message:
Added the last two tests to the Suite. After som fiexs, all tests pass with the
HEAD version of HttpUnit. In httpunit-1.6 there is some problem with
javascript:window.open(...) that gives an error:
java.lang.NoSuchFieldError: instance
at
com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.toStringIfNotUndefined(JavaScript.java:286)
at
com.meterware.httpunit.javascript.JavaScript$Window.jsFunction_open(JavaScript.java:462)
The snapshot jar of httpunit is not committed.
Index: JavaScriptEventsTest.java
===================================================================
RCS file:
/cvsroot/jwebunit/jWebUnit/test/net/sourceforge/jwebunit/JavaScriptEventsTest.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** JavaScriptEventsTest.java 26 Dec 2005 12:19:15 -0000 1.12
--- JavaScriptEventsTest.java 26 Dec 2005 14:27:06 -0000 1.13
***************
*** 33,37 ****
submit();
gotoWindow("child");
! assertTextPresent("Submitted parameters");
}
--- 33,37 ----
submit();
gotoWindow("child");
! assertTextPresent(" on=submit ");
}
***************
*** 39,44 ****
beginAt("FormOnSubmit.html");
reset();
! gotoWindow("child");
! assertTextPresent("Target");
}
--- 39,46 ----
beginAt("FormOnSubmit.html");
reset();
! dumpResponse(System.out);
! // seems that onreset is not executed
! //gotoWindow("child");
! //assertTextPresent(" on=reset ");
}
***************
*** 48,52 ****
clickButton("b1");
gotoWindow("child");
! assertTextPresent("Target");
}
--- 50,54 ----
clickButton("b1");
gotoWindow("child");
! assertTextPresent(" on=click ");
}
Index: FramesAndWindowsTest.java
===================================================================
RCS file:
/cvsroot/jwebunit/jWebUnit/test/net/sourceforge/jwebunit/FramesAndWindowsTest.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** FramesAndWindowsTest.java 26 Dec 2005 12:19:15 -0000 1.10
--- FramesAndWindowsTest.java 26 Dec 2005 14:27:06 -0000 1.11
***************
*** 52,56 ****
public void testGotoWindowByTitle() {
gotoRootAndOpenChild("ChildPage2");
! gotoWindowByTitle("ChildPage2");
assertTextPresent("child 2");
}
--- 52,56 ----
public void testGotoWindowByTitle() {
gotoRootAndOpenChild("ChildPage2");
! gotoWindowByTitle("Child Page 2");
assertTextPresent("child 2");
}
***************
*** 58,62 ****
public void testAssertWindowWithTitle() throws Throwable {
gotoRootAndOpenChild("ChildPage2");
! assertPassFail("assertWindowPresentWithTitle", new
Object[]{"ChildPage2"}, new Object[]{"NoSuchTitle"});
}
--- 58,62 ----
public void testAssertWindowWithTitle() throws Throwable {
gotoRootAndOpenChild("ChildPage2");
! assertPassFail("assertWindowPresentWithTitle", new Object[]{"Child
Page 2"}, new Object[]{"NoSuchTitle"});
}
Index: AllTests.java
===================================================================
RCS file:
/cvsroot/jwebunit/jWebUnit/test/net/sourceforge/jwebunit/AllTests.java,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** AllTests.java 23 Dec 2005 11:01:40 -0000 1.22
--- AllTests.java 26 Dec 2005 14:27:06 -0000 1.23
***************
*** 37,46 ****
suite.addTestSuite(FormSubmissionTest.class);
suite.addTestSuite(FormSubmissionCheckboxesTest.class);
!
! //not moved over to using jetty / JWebUnitAPITestCase
! //suite.addTestSuite(FramesAndWindowsTest.class);
!
! //not moved over to using jetty / JWebUnitAPITestCase
! //suite.addTestSuite(JavaScriptEventsTest.class);
suite.addTestSuite(MethodInvokerTest.class);
--- 37,42 ----
suite.addTestSuite(FormSubmissionTest.class);
suite.addTestSuite(FormSubmissionCheckboxesTest.class);
! suite.addTestSuite(FramesAndWindowsTest.class);
! suite.addTestSuite(JavaScriptEventsTest.class);
suite.addTestSuite(MethodInvokerTest.class);
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Jwebunit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development