Re: patch for 2407470
Jose Marino Albernas <[email protected]> Thu, 19 Mar 2009 10:17:42 -0700
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Message-ID | <[email protected]> |
Hum... Why did you need to change to 1.7? Do we have a set of JUnit test cases for HttpUnit to run for a build? Should we run that set of tests cases instead? I am returning to HttpUnit after a couple of years. Maybe I should read "What is new in 1,7" first besides bug fixes. Do we have that doc somewhere? Thanks! Pepe ----- Original Message ----- From: Adam Heath <[email protected]> Date: Thursday, March 19, 2009 1:33 am Subject: [Httpunit-develop] patch for 2407470 To: [email protected] > In httpunit 1.6.2, I had a document with a <form> that had an > id. My > test case then looked that up, with getFormWithID, and all was right > in the world. > > This fails with httpunit 1.7. > > I'm thinking this failure is the same one as 2407470. From my > debugging of the issue, when the document is being parsed, any/all > script tags are run, and/or the scripting engine(s) are > started. The > javascript engine tries to get a list of forms. Since this > happens'early', there are no proxies around the raw dom, so > those get > created. However, now once javascript is loaded, the dom walking > continues processing. When it gets to the form element, it > is already > in the ElementRegistry, so never gets added to the map/list internal > look variables. > > Anyways, the attached patch fixes my problem for me, and seems rather > small. It also makes the public getFoo functions more similiar. > > http://sourceforge.net/tracker/index.php?func=detail&aid=2407470&group_id=6550&atid=106550 > > ps: I am not subscribed, please cc me > ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Httpunit-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/httpunit-develop