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:
parent
e2d3c43419
commit
00e6e81f94
2 changed files with 44 additions and 0 deletions
|
@ -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 ] );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue