From c204cf489fe947d6fdc9b5094beae3a556ee01ae Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sat, 24 Aug 2013 16:30:42 -0400 Subject: [PATCH] Add some tests for tag edge cases. --- tests/tokenizer/tags.mwtest | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tests/tokenizer/tags.mwtest b/tests/tokenizer/tags.mwtest index a4ce8d8..a0d7f18 100644 --- a/tests/tokenizer/tags.mwtest +++ b/tests/tokenizer/tags.mwtest @@ -355,6 +355,20 @@ output: [Text(text="junk bar")] --- +name: incomplete_unclosed_close +label: incomplete tags: an unclosed close tag +input: "junk " @@ -551,6 +565,13 @@ output: [Text(text="foo"), TagOpenOpen(invalid=True), Text(text="br"), TagCloseS --- +name: single_only_close_attribute +label: a tag that can only be single; presented as a close tag with an attribute +input: "
" +output: [TagOpenOpen(invalid=True), Text(text="br"), TagAttrStart(pad_first=" ", pad_after_eq="", pad_before_eq=""), Text(text="id"), TagAttrEquals(), TagAttrQuote(), Text(text="break"), TagCloseSelfclose(padding="", implicit=True)] + +--- + name: capitalization label: caps should be ignored within tag names input: "{{test}}"