Fixed minor bug with Safari and the test suite.
This commit is contained in:
parent
301e2b6493
commit
215f785de6
|
@ -55,7 +55,7 @@ function test(name, callback) {
|
||||||
try {
|
try {
|
||||||
callback();
|
callback();
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
if(typeof console != "undefined") {
|
if( console && console.error ) {
|
||||||
console.error("Test " + name + " died, exception and test follows");
|
console.error("Test " + name + " died, exception and test follows");
|
||||||
console.error(e);
|
console.error(e);
|
||||||
console.warn(callback.toString());
|
console.warn(callback.toString());
|
||||||
|
|
Loading…
Reference in a new issue