New JS Body attributes

Mark Childerson <[email protected]>
Newsgroups gmane.comp.web.httpunit.devel
Message-ID <[email protected]>
Hi,

I am working on getting FormScriptingTest to run with the new DOM. 
Currently, I am working on testGetAttributeForBody(). Firstly, lines 
112-114 should read:

      String expected[]={
       "#FFFFCC","#E00000","#0000E0","#000080","#000000"
       };

The test values that are there now do not match the attributes.

Secondly, I find that in ScriptFilter.startElement( QName element, 
XMLAttributes attrs, Augmentations augs ), for the body element, 
attrs contains no actual data, just a bunch of nulls. For the form 
element in FormScriptingTest.testFormNameProperty(), attrs contains 
the name, as one would expect. If I modify the show() javascript 
function in testGetAttributeForBody() to explicitly set the body 
attributes (eg, body.bgcolor='#FFFFCC'), then the test passes correctly.

I conclude that the body attributes are not being set correctly when 
the element is initialized. This problem is occurring in either 
Xerces or Neko. The jars which come with the httpUnit-1.6.2 
distribution don't have line number references or attached source, so 
debugging is impractical.

Does anybody know of a set of Neko and Xerces jars which a) work with 
the current build of httpUnit, and b) come with source and compiled 
line numbers?

Thanks,

Mark

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