Testcase now logs exceptions if a console is avaiable, makes it easier to find bugs...
[jquery.git] / build / test / js / test.js
index 82469f7..1a47519 100644 (file)
@@ -51,6 +51,8 @@ function runTest( files, num ) {
                        try {
                                eval(js);
                        } catch(e) {
+                               if(typeof console != "undefined") 
+                                       console.error(e);
                                Test.push( [ false, "Died on test #" + (Test.length+1) + ": " + e ] );
                        }