An simple example of doing javascript unit test - http://jroller.com/page/aalmiray?entry=testing_javascript_with_groovy However this approach is too fake for me and easy to miss many thing, IMHO putting test a real environment is better A site for javascript testing http://www.testdrivenjavascript.com Test time in javascript - http://googletesting.blogspot.com/2007/03/javascript-simulating-time-in-jsunit.html And this is an example of using JDK6 scripting framework for testing javascript, pretty interesting , but probably not reflecting IE/MOZ behaviour - http://technology.amis.nl/blog/?p=1869 Use a scripting engine to test javascript - http://labnotes.org/2010/12/30/zombie-js-insanely-fast-full-stack-headless-testing