Debug
From How to debug your code with JsTestDriver:
Start server and capture the browser which you would like to debug
Run the failing test using:
java -jar JsTestDriver.jar --tests MyTestCase.testIWantToDebug
This should load all of your JavaScript source files into the Browser
Open your debugger and you should see all of your source files present in your debugger.
Open the source file and place a breakpoint anywhere you wish.
Rerun the test using the previous command. The debugger should stop at your breakpoint where you should have full access all of your code, variables, and DOM.