Op 14-12-2009 0:25, Gilles Lenfant:
Have a look at kss.core testings. JS is tested with ecmaunit.js powered
by a rhino JS engine.
Thanks for the suggestion (others as well).
I gave this a try and unfortunately it's not so simple. TinyMCE expects
a browser context with the document, window and navigator globals, which
Rhino doesn't provide. This would require an extra product to simulate a
browser context on top of Rhino.
I had a look at upstream TinyMCE and they have unit tests and functional
tests in HTML/Javascript that are run through a browser. I'm using that
right now, I've added test cases and I'll contribute the tests and fix
to them.
I'm not sure at this point if I'll be able to add automated tests for
this to Products.TinyMCE as well. When the fix is accepted in TinyMCE I
think I'll ping the Products.TinyMCE maintainers and see what they think.
--
René
http://www.applinet.nl
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers