From 57455e23fd11accb24824d4328afd0c157208361 Mon Sep 17 00:00:00 2001 From: Alan Johnson Date: Sun, 5 Sep 2010 03:44:04 -0400 Subject: [PATCH] Added basic performance test. --- lib/handlebars.js | 2 +- test/handlebars.js | 1 - test/perf.html | 2 +- test/perf.js | 67 +++++++++++++++++++++++++++++++++++++--------- 4 files changed, 57 insertions(+), 15 deletions(-) diff --git a/lib/handlebars.js b/lib/handlebars.js index ea9d6a06..7768570b 100644 --- a/lib/handlebars.js +++ b/lib/handlebars.js @@ -131,7 +131,7 @@ Handlebars = { } else { return value; } - }, + } } Handlebars.Compiler = function(string) { diff --git a/test/handlebars.js b/test/handlebars.js index d514041f..eeaa692e 100644 --- a/test/handlebars.js +++ b/test/handlebars.js @@ -2,7 +2,6 @@ module("basic context"); var shouldCompileTo = function(string, hash, result, message) { var template = Handlebars.compile(string); - console.log(template); var params = toString.call(hash) === "[object Array]" ? hash : [hash, undefined]; equal(template.apply(this, params), result, message); } diff --git a/test/perf.html b/test/perf.html index e74fd19c..8c0ece48 100644 --- a/test/perf.html +++ b/test/perf.html @@ -12,7 +12,7 @@

    -