Ok Matthias, i have basic document and node apis as well as the OpenAjax
part which takes over the namespacing,
partially implemented on the stage where I need it to cover
the first APIs.
Feel free to add code, the affected file is under:
/api/src/test/javascript/org/apache/myfaces/mockups/BrowserMockups.js
If anyone is willing a neat Selenium integration with jsUnit to do more
complicated
tests would be nice, for now I can live with my mockups they are faster
to run anyway :-)
Werner
Matthias Wessendorf schrieb:
On Thu, Dec 4, 2008 at 11:23 PM, Werner Punz <[EMAIL PROTECTED]> wrote:
Hello everyone
today I started to work on the ajax parts of jsf2
for now I am still up to the tasks of setting up the entire
infrastructure.
So far I have found a decent unit test environment which integrates
into maven (Berlios JsUnit) which gives about the same functionality as
junit.
cool. I want something similar for Trinidad as well
(at least for those bits that are easy to test and don't need
(too much) mocks)
The main issue I face is, while the javascript interpreter is up to the
task, it simply is Mozillas Rhino engine, the entire environment is not.
The biggest issue is I miss some kind of dom simulation giving me the entire
dom infrastructure a browser has.
I have started to implement a subset of dom mock objects with their
functions, but after rethinking, I dont want to reinvent the wheel here.
Does anyone know of a browser mockup library or something similar
(an environment which allows to run a browser in headless mode?)
To get the dom environment?
we do (internally) something with selenium, where we fire up browsers
in an automated test scenario.
Werner