From: John Resig Date: Tue, 3 Oct 2006 08:45:16 +0000 (+0000) Subject: Fixed minor bug with Safari and the test suite. X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=commitdiff_plain;h=215f785de699015ba7221f3414807f9e7474ef4d Fixed minor bug with Safari and the test suite. --- diff --git a/build/test/data/testrunner.js b/build/test/data/testrunner.js index 11921f9..0b6e08d 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( console && console.error ) { console.error("Test " + name + " died, exception and test follows"); console.error(e); console.warn(callback.toString());