X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=build%2Ftest%2Fdata%2Ftestrunner.js;h=398ef3dcd4fe5f192eec71644b15a183f8106f2f;hb=6f7cd669597cbcf026886074fb31963fe767e2b3;hp=11921f9c783eb9e10bb109c9246562db438557b4;hpb=308d771dd1973015166f0ac3b6cc7d538f7911c4;p=jquery.git diff --git a/build/test/data/testrunner.js b/build/test/data/testrunner.js index 11921f9..398ef3d 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( typeof console != "undefined" && console.error && console.warn ) { 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; - 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 ] ); } /**