Testcase now logs exceptions if a console is avaiable, makes it easier to find bugs; Added test for all base events

This commit is contained in:
Jörn Zaefferer 2006-09-05 15:05:56 +00:00
parent e2d3c43419
commit 00e6e81f94
2 changed files with 44 additions and 0 deletions

View file

@ -51,6 +51,8 @@ function runTest( files, num ) {
try {
eval(js);
} catch(e) {
if(typeof console != "undefined")
console.error(e);
Test.push( [ false, "Died on test #" + (Test.length+1) + ": " + e ] );
}