From 902f1192e062f384856dd529d49bb9fb2288557f Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Mon, 27 Sep 2010 15:45:08 -0400 Subject: [PATCH] fixing test that tried to load nonexistent images in a template. --- test/utility.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/utility.js b/test/utility.js index b7f742e0e..a38eb1a98 100644 --- a/test/utility.js +++ b/test/utility.js @@ -58,8 +58,8 @@ $(document).ready(function() { var fancyTemplate = _.template(""); result = fancyTemplate({people : {moe : "Moe", larry : "Larry", curly : "Curly"}}); equals(result, "", 'can run arbitrary javascript in templates'); - - var namespaceCollisionTemplate = _.template("<%= pageCount %> <%= thumbnails[pageCount] %> <% _.each(thumbnails, function(p) { %>
\" />
<% }); %>"); + + var namespaceCollisionTemplate = _.template("<%= pageCount %> <%= thumbnails[pageCount] %> <% _.each(thumbnails, function(p) { %>
\">
<% }); %>"); result = namespaceCollisionTemplate({ pageCount: 3, thumbnails: { @@ -68,7 +68,7 @@ $(document).ready(function() { 3: "p3-thumbnail.gif" } }); - equals(result, "3 p3-thumbnail.gif
"); + equals(result, "3 p3-thumbnail.gif
"); var noInterpolateTemplate = _.template("

Just some text. Hey, I know this is silly but it aids consistency.

"); result = noInterpolateTemplate();