You may be capturing with different browsers now (or different browser setups like console open in IE or strict mode), which are throwing different exceptions now, or probably your codebase has changed since then.
JsTestDriver hasn't changed the behavior for defined/undefined variables treatment for 1.3.5, as it just captures the browser's exceptions.
Anyway, jsTestDriver does not cause a test fail but causes a test error when an undefined variable is referenced.
For example, for this snippet of code in the codebase (asuming undef
is an undefined var):
if(undef) alert("foo");
The jsTestdriver output when running the tests from command line is:
Total 2 tests (Passed: 1; Fails: 0; Errors: 1) (1,00 ms)
Chrome 23.0.1271.64 Windows: Run 2 tests (Passed: 1; Fails: 0; Errors 1) (1,00 ms)
PersonTest.testWhoAreYou error (0,00 ms): ReferenceError: undef is not defined
As you can see, there was 1 error in the test suite but 0 fails.
EDIT: For your case, it would be possible that jsTestDriver is adding a closure around your name space definition. Try this
Instead of:
var Program = {};
Use:
window.Program = {};
for Program.Dialog
you shouldn't have to change anything
Please try that to know if it's the cause.