X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=build%2Ftest%2Fdata%2Ftestrunner.js;h=0b6e08d1a1d7de23c88c04d881e3a606cf5d5fbd;hb=215f785de699015ba7221f3414807f9e7474ef4d;hp=db97215bee2e50d4915ed1cdb932ed5136315690;hpb=b5a33456e3feaafd50f41c201a714f9525e1d889;p=jquery.git diff --git a/build/test/data/testrunner.js b/build/test/data/testrunner.js index db97215..0b6e08d 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( console && console.error ) { console.error("Test " + name + " died, exception and test follows"); console.error(e); console.warn(callback.toString());