Update of /cvsroot/jwebunit/jWebUnit/testcases/JavaScriptEventsTest
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4694/testcases/JavaScriptEventsTest

Modified Files:
        FormOnSubmit.html 
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: FormOnSubmit.html
===================================================================
RCS file: 
/cvsroot/jwebunit/jWebUnit/testcases/JavaScriptEventsTest/FormOnSubmit.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** FormOnSubmit.html   26 Dec 2005 12:19:14 -0000      1.2
--- FormOnSubmit.html   26 Dec 2005 14:27:06 -0000      1.3
***************
*** 2,9 ****
  <body>
  <form method="GET" action="javascript:void(0)" 
!       onSubmit="javascript:window.open('../params.jsp', 'child');"
!       onReset="javascript:window.open('../params.jsp', 'child');">
  <input name="b1" id="b1" type="button" value="click me" 
!       onClick="javascript:window.open('../params.jsp', 'child');" />
  <input type="reset" />
  <input type="submit" />
--- 2,9 ----
  <body>
  <form method="GET" action="javascript:void(0)" 
!       onsubmit="javascript:window.open('../params.jsp?on=submit', 'child');"
!       onreset="javascript:window.open('../params.jsp?on=reset', 'child');">
  <input name="b1" id="b1" type="button" value="click me" 
!       onclick="javascript:window.open('../params.jsp?on=click', 'child');" />
  <input type="reset" />
  <input type="submit" />



-------------------------------------------------------
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

Reply via email to