diff --git a/test/public/app.js b/test/public/app.js index b0361c7..252270b 100644 --- a/test/public/app.js +++ b/test/public/app.js @@ -1,5 +1,6 @@ -function LOG() { - if (window.console) console.log(LOG.arguments); + +function log() { + if (window.console) console.log.apply(this, arguments); } window.onload = function(){ @@ -55,7 +56,7 @@ function runTest(name, canvas, dest) { try { fn(canvas.getContext('2d'), function(){}); } catch (err) { - LOG(err); + log(err); } canvas.title += ' (rendered in ' + (new Date - start) + 'ms)'; renderOnServer(name, canvas, function(res){