Getting closer to a 1.7 release

"Wolfgang Fahl" <[email protected]>
Newsgroups gmane.comp.web.httpunit.devel
Organization BITPlan GmbH
Message-ID <[email protected]>
Dear httpunit developers,

three more patches have now been added to the svn 
repository so we are getting closer to the 1.7 release 
if the goal is that there should be no old open patches 
any more and maybe we get the new DomScripting engine 
working at this time (or would we call the release 2.0 
then?)

Currently 718 test cases run for the old scripting 
engine and for the new engine we have 26/18 non working 
tests.

Björn Beskow's patch 884146 for onMouseDown javascript 
support was especially important and a  bit tricky to 
get going.

Jord Sonneveld's patch 1030851 for onblur and onfocus 
support goes along the same lines - I've added it 
although there are no testcases for this yet - Jord 
could you please supply these ...

The third patch 1415415 by an anonymous author was for 
adding mime types for tiff and pdf files.

I have refactored the doScript method - it is now 
deprecated and renamed to doScriptEvent to make clear 
that this method expects a full script to work on.

handleEvent will work on an event by name e.g. 
"onclick", "onmouseup" and the like.

Later the HTMLEventHandler class should be integrated 
into this - it currently is only used for the "onload" 
event and does not quite fit in the picture yet. It's 
also an issue whether handlers should be cached in their 
compiled state as is the case for the "onload" event at 
this time. 

Patch [ 1055474 ] Adding document.createElement() and 
element.appendChild() is now getting more interesting - 
Russel - this one is still assigned to you - shall I 
reassign it to me? I'm intending to start at least 
adding the test cases from that patch.

Here is the new handleEvent implementation - it 
currently is redundtantly implemented for both Script 
engines:
    /**
     * 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
     */
    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;
    }




Yours

Wolfgang

BITPlan - smart solutions
Pater-Delp-Str. 1, D-47877 Willich Schiefbahn
Tel. +49 1805 - BITPLAN / +49 1805 248 752, Fax +49 2154 811-481
Web: http://www.bitplan.de
bitplan GmbH, Willich - HRB 6820 Krefeld, VAT-ID: 10258040548, 
Geschäftsführer: Wolfgang Fahl

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace

_______________________________________________
Httpunit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/httpunit-develop
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.