X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=build%2Ftest%2Fdata%2Ftestrunner.js;h=ea731274f0fd5a8748e3b0cd7f0253d2e4069ad4;hb=374dbbe80a3df30f52505a9c3ebd31efef711ec0;hp=11921f9c783eb9e10bb109c9246562db438557b4;hpb=308d771dd1973015166f0ac3b6cc7d538f7911c4;p=jquery.git diff --git a/build/test/data/testrunner.js b/build/test/data/testrunner.js index 11921f9..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(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());