git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Modified onexxx handlers to unbind themselve when executed; Reintroduced event fixes...
[jquery.git]
/
build
/
test
/
data
/
testrunner.js
diff --git
a/build/test/data/testrunner.js
b/build/test/data/testrunner.js
index
11921f9
..
398ef3d
100644
(file)
--- a/
build/test/data/testrunner.js
+++ b/
build/test/data/testrunner.js
@@
-55,7
+55,7
@@
function test(name, callback) {
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());
@@
-129,9
+129,10
@@
function isSet(a, b, msg) {
ret = false;
} else
ret = false;
ret = false;
} else
ret = false;
- if ( !ret && console )
- console.log( msg, a, b );
- Test.push( [ ret, msg ] );
+ if ( !ret )
+ Test.push( [ ret, msg + " expected: " + b + " result: " + a ] );
+ else
+ Test.push( [ ret, msg ] );
}
/**
}
/**