From 0ac3491de690dd436814e1c98687564259ee8bf1 Mon Sep 17 00:00:00 2001 From: David da Silva Date: Sat, 9 May 2015 17:03:45 +0200 Subject: [PATCH 1/3] move BOM test to correct dir --- {spec => test}/_files/bom_as_whitespace.js | 0 {spec => test}/_files/bom_as_whitespace.mustache | 0 {spec => test}/_files/bom_as_whitespace.txt | 0 3 files changed, 0 insertions(+), 0 deletions(-) rename {spec => test}/_files/bom_as_whitespace.js (100%) rename {spec => test}/_files/bom_as_whitespace.mustache (100%) rename {spec => test}/_files/bom_as_whitespace.txt (100%) diff --git a/spec/_files/bom_as_whitespace.js b/test/_files/bom_as_whitespace.js similarity index 100% rename from spec/_files/bom_as_whitespace.js rename to test/_files/bom_as_whitespace.js diff --git a/spec/_files/bom_as_whitespace.mustache b/test/_files/bom_as_whitespace.mustache similarity index 100% rename from spec/_files/bom_as_whitespace.mustache rename to test/_files/bom_as_whitespace.mustache diff --git a/spec/_files/bom_as_whitespace.txt b/test/_files/bom_as_whitespace.txt similarity index 100% rename from spec/_files/bom_as_whitespace.txt rename to test/_files/bom_as_whitespace.txt From 81093ee8e26aabf1a0d74c4c0c4dbd57a0d962fb Mon Sep 17 00:00:00 2001 From: David da Silva Date: Sat, 9 May 2015 20:08:55 +0200 Subject: [PATCH 2/3] bom render test was expecting unescaped output --- test/_files/bom_as_whitespace.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/_files/bom_as_whitespace.mustache b/test/_files/bom_as_whitespace.mustache index 5189a1900..90c9e3b88 100644 --- a/test/_files/bom_as_whitespace.mustache +++ b/test/_files/bom_as_whitespace.mustache @@ -1 +1 @@ -{{tag}} \ No newline at end of file +{{{tag}}} \ No newline at end of file From 40f902dea4e61174292c5dc3b1f0f7d85c022dd2 Mon Sep 17 00:00:00 2001 From: David da Silva Date: Sat, 9 May 2015 20:09:19 +0200 Subject: [PATCH 3/3] fix bom render test expected js syntax --- test/_files/bom_as_whitespace.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/_files/bom_as_whitespace.js b/test/_files/bom_as_whitespace.js index 4bce3e105..0a8dad44d 100644 --- a/test/_files/bom_as_whitespace.js +++ b/test/_files/bom_as_whitespace.js @@ -1 +1,4 @@ -var bom_as_whitespace = {'tag': 'Tag name w/o BOM', '\uFEFFtag': 'Tag name with BOM'}; \ No newline at end of file +({ + 'tag': 'Tag name w/o BOM', + '\uFEFFtag': 'Tag name with BOM' +})