Skip to content

Commit

Permalink
Fix whitespace in incorrect-nesting test.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaefferer committed Dec 30, 2010
1 parent 6a353f4 commit 9fc472b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ function test_handler( test_name, res, exp ) {
}

// these are used throughout to test if tag blocks suppress them
// TODO fixme
jQuery.tmpl.tag.syntax_error = { open: "throw SyntaxError('test syntax error');" };
jQuery.tmpl.tag.reference_error = { open: "throw ReferenceError('test reference error');" };
jQuery.tmpl.tag.type_error = { open: "throw TypeError('test type error');" };
Expand Down Expand Up @@ -81,10 +80,9 @@ module("Basics");
});

test("Incorrect Nesting", function() {
// TODO fixme
//test_handler( 'default', R("{{ if 1 }}{{ if 1 }}{{ /if }}", testData), SyntaxError );
//test_handler( 'extra /if', R("{{ if 1 }}{{ /if }}{{ /if }}", testData), SyntaxError );
//test_handler( 'but terminated', R("{{ if 1 }}{{ each arr }}{{ /if }}{{ /each }}", testData), SyntaxError );
test_handler( 'default', R("{{if 1}}{{if 1}}{{/if}}", testData), SyntaxError );
test_handler( 'extra /if', R("{{if 1}}{{/if}}{{/if}}", testData), SyntaxError );
test_handler( 'but terminated', R("{{if 1}}{{each arr}}{{/if}}{{/each}}", testData), SyntaxError );
});

test("Ignore Malformed Tags", function() {
Expand Down

0 comments on commit 9fc472b

Please sign in to comment.