[Webtest] Info: upgraded htmlunit & html parser messages catched again

Colin O'Brien webtest@lists.canoo.com
Thu, 14 Apr 2005 15:16:06 +0100


Hi Marc,

Will that version be 1.7 R_764...?

Regards,
Colin.

-----Original Message-----
From: webtest-admin@lists.canoo.com
[mailto:webtest-admin@lists.canoo.com]On Behalf Of Marc Guillemot
Sent: 14 April 2005 14:28
To: WebTest@lists.canoo.com
Subject: [Webtest] Info: upgraded htmlunit & html parser messages
catched again


Hi,

I've upgraded the htmlunit jar provided with webtest to have the last
changes in htmlunit's CVS available (this makes
the htmlunit version contained in webtest newer than htmlunit 1.5).

Thanks to this change is one feature of webtest now available again: webtest
can now capture the messages generated by
the html parser and write them in its report file. This worked previously in
the httpunit based versioin of webtest and
was lost during the migration. Caution: from my own experience, I can
already say that some of the messages are
erroneous (like an error for <br/>, but not for <br>).

These changes should be available in next build... if the server accepts to
work ;-)

Marc.


 From htmlunit's change log:
(not all changes are of interest when htmlunit is used through webtest)

- Javascript: implemented property contentDocument for frames and iframes on
Mozilla.
- Javascript: fixed error occuring in NodeImpl insertBefore() with null
reference child object.
- Now load the mapping of html classes to their respective JS classes from
the configuration file.
- Javascript: when simulating IE, window.open("") handles empty string as
"about:blank".
- Reworked the processing of the JavaScript functions and properties.  Names
have all changed to start with jsxXXX and
now the functions and properties are registered with the prototypes when
they are defined.
- INCOMPATIBLE CHANGE: replaced WebClient.setValidateHtml(boolean) with
WebClient.setHTMLParserListener(HTMLParserListener) allowing to
programmatically catch parser messages.
- Javascript: fixed infinite loop caused by onblur.
- The url of a page resulting of a form submission with the GET method now
contains the query parameters (which are
encoded when needed according to the page's encoding).
- Javascript: added navigator.language for Mozilla.
- Javascript: added dummy implementation of Mozilla's window properties
innerHeight, innerWidth, outerHeight, outerWidth.
- Added to the JavaScript configuration page a column showing if a function
is not implemented.
- Reworked the JavaScript configuration.  Configuration file is now used and
supports the browser constraints on the
properties and functions.
- Javascript: navigator properties now depend from used BrowserVersion.
- Javascript: added dummy implementation for read only properties
offsetHeight, offsetLeft, offsetTop and offsetWidth.
- Javascript: added support for multiple arguments for document.write and
document.writeln.
- Added WebResponse.getResponseHeaders().
- Fixed NPE in loadWebResponse for responses with status code 204 (No
Content).
- Javascript: form's onsubmit property is now a function and can be
assigned.
- Javascript: added support for new Image() and changing src attribute.
- Determine content-type of uploaded files.
- Javascript: implemented method removeAttribute for DOM nodes.
- Javascript: Added support for document.scripts
- Javascript: fixed getAttribute() to return null if the requested attribute
is not defined.
- Javascript: implemented property childNodes.
- Fixed bug where document.write-ing a frame was causing an attempt to load
an invalid URL starting with http://first
_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest