aboutsummaryrefslogtreecommitdiffstats
path: root/build/test
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2006-10-03 08:45:16 +0000
committerJohn Resig <jeresig@gmail.com>2006-10-03 08:45:16 +0000
commit215f785de699015ba7221f3414807f9e7474ef4d (patch)
tree9ab387f6a4e027b8787921fc9a8f34897b6d3760 /build/test
parent301e2b64937cf1b03899f0583a9c6de1086820a5 (diff)
downloadjquery-215f785de699015ba7221f3414807f9e7474ef4d.tar.gz
jquery-215f785de699015ba7221f3414807f9e7474ef4d.zip
Fixed minor bug with Safari and the test suite.
Diffstat (limited to 'build/test')
-rw-r--r--build/test/data/testrunner.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/test/data/testrunner.js b/build/test/data/testrunner.js
index 11921f9c7..0b6e08d1a 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());