I think there is a DOM extension available for Rhino, written by the
JQuery team, that might give HTMLUnit and JSUnit DOM ability.
Ian
On 11 Feb 2009, at 00:34, Lev Epshteyn wrote:
We're trying to figure out a good testing strategy with client-side
templates, and are running up against the fact that the JsUnit
version that
maven works with doesn't seem to support DOM. This is a problem,
given how
heavily templates relies on the DOM for its functionality -
virtually no
actual tests can run, and we have been forced to put them into the
EndToEnd
test harness instead (where HTMLUnit is available, which can be
"adapted" to
behave like normal JsUnit).
Other features may need to be tested int he context of the DOM as
well, so
the problem is not necessarily unique to Templates.
Is there any way to run build-time JS tests that will excercise
javascript
code in the context of a DOM implementation? (I know that either
JsUnit or
HTMLUnit can do this, but there may be others)