X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=build%2Ftest%2Fdata%2Ftestrunner.js;h=ea731274f0fd5a8748e3b0cd7f0253d2e4069ad4;hb=374dbbe80a3df30f52505a9c3ebd31efef711ec0;hp=db97215bee2e50d4915ed1cdb932ed5136315690;hpb=b5a33456e3feaafd50f41c201a714f9525e1d889;p=jquery.git diff --git a/build/test/data/testrunner.js b/build/test/data/testrunner.js index db97215..ea73127 100644 --- a/build/test/data/testrunner.js +++ b/build/test/data/testrunner.js @@ -50,12 +50,12 @@ function runTest(tests) { } function test(name, callback) { - Test = []; synchronize(function() { + Test = []; try { callback(); } catch(e) { - if(typeof console != "undefined") { + if( typeof console != "undefined" && console.error && console.warn ) { console.error("Test " + name + " died, exception and test follows"); console.error(e); console.warn(callback.toString());