aboutsummaryrefslogtreecommitdiffstats
path: root/build/test/data/testrunner.js
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2006-10-03 10:54:55 +0000
committerJörn Zaefferer <joern.zaefferer@gmail.com>2006-10-03 10:54:55 +0000
commit374dbbe80a3df30f52505a9c3ebd31efef711ec0 (patch)
tree3dc8812c68e9fa369d919a98a94e66f293c5ed7e /build/test/data/testrunner.js
parent3527e8f6745786e65dc209f1518372f3270a9920 (diff)
downloadjquery-374dbbe80a3df30f52505a9c3ebd31efef711ec0.tar.gz
jquery-374dbbe80a3df30f52505a9c3ebd31efef711ec0.zip
I had to put the check for 'typeof console != "undefined"' back in, otherwise IE complains about console not being defined.
Diffstat (limited to 'build/test/data/testrunner.js')
-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 0b6e08d1a..ea731274f 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());