}
function test(name, callback) {
- Test = [];
synchronize(function() {
+ Test = [];
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());