Hi all,
I'm creating a Web app which uses jQuery, and am unit testing it with
HttpUnit which uses Rhino (the Mozilla JavaScript implementation).
I'm having trouble with $(document).ready(...) causing the tests to crash
with this message:
> alert("hi");
> });' failed: TypeError: undefined is not a function. (httpunit; line
> 1456))
The whole statement is this:
> $(document).ready(function() {
> alert("hi");
> });
>
Other basic checks are ok, e.g. $("#foo").focus() works perfectly.
Even if I only try to use .ready() after checking that is is defined, I
still get the same result:
> if (typeof $(document).ready === 'function')
>
I know this is likely to be a Rhino/HttpUnit problem but as I know several
people on this list are familiar with Rhino I wanted to know if anyone's
seen this or has any ideas?
I'm on:
jQuery 1.1.4
HttpUnit 1.6.2
TIA,
--rob
--
Rob Desbois
Eml: [EMAIL PROTECTED]