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