git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
I had to put the check for 'typeof console != "undefined"' back in, otherwise IE...
[jquery.git]
/
build
/
test
/
data
/
testrunner.js
diff --git
a/build/test/data/testrunner.js
b/build/test/data/testrunner.js
index
db97215
..
ea73127
100644
(file)
--- a/
build/test/data/testrunner.js
+++ b/
build/test/data/testrunner.js
@@
-50,12
+50,12
@@
function runTest(tests) {
}
function test(name, callback) {
}
function test(name, callback) {
- Test = [];
synchronize(function() {
synchronize(function() {
+ Test = [];
try {
callback();
} catch(e) {
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());
console.error("Test " + name + " died, exception and test follows");
console.error(e);
console.warn(callback.toString());