From f8e939d30ac53ba672e0f94a20f680d2b6badcfa Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Wed, 18 Nov 2009 21:54:50 -0500 Subject: [PATCH] fixing template test validation for IE --- test/utility.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/utility.js b/test/utility.js index ed6ee120b..16cb01013 100644 --- a/test/utility.js +++ b/test/utility.js @@ -46,9 +46,9 @@ $(document).ready(function() { var basicTemplate = _.template("<%= thing %> is gettin' on my noives!"); var result = basicTemplate({thing : 'This'}); equals(result, "This is gettin' on my noives!", 'can do basic attribute interpolation'); - var fancyTemplate = _.template("<% for (key in people) { %>
  • <%= people[key] %>
  • <% } %>"); + var fancyTemplate = _.template(""); result = fancyTemplate({people : {moe : "Moe", larry : "Larry", curly : "Curly"}}); - equals(result, "
  • Moe
  • Larry
  • Curly
  • ", 'can run arbitrary javascript in templates'); + equals(result, "", 'can run arbitrary javascript in templates'); }); });