From 5008a6bcaed8d21e703887c0ad828287631d25b5 Mon Sep 17 00:00:00 2001 From: Subramanya Sastry Date: Tue, 3 Jul 2012 11:16:53 -0500 Subject: [PATCH] Added wikitext parsertests for dashes Change-Id: I0f595f05057068e6459062fc8e8f9fad23021dec --- tests/parser/parserTests.txt | 44 +++++++++++++++++++++++++++++++++--- 1 file changed, 41 insertions(+), 3 deletions(-) diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index f0ec2e5d4c..6d324e4d92 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -2716,20 +2716,58 @@ Failing to transform badly formed HTML into correct XHTML

!!end -!! test +!! test Horizontal ruler (should it add that extra space?) -!! input +!! input

foo
bar -!! result +!! result

foo
bar !! end +!! test +Horizontal ruler -- 4+ dashes render hr +!! input +---- +!! result +
+ +!! end + +!! test +Horizontal ruler -- eats additional dashes on the same line +!! input +--------- +!! result +
+ +!! end + +!! test +Horizontal ruler -- does not collaps dashes on consecutive lines +!! input +---- +---- +!! result +
+
+ +!! end + +!! test +Horizontal ruler -- <4 dashes render as plain text +!! input +--- +!! result +

--- +

+!! end + ### ### Block-level elements ### -- 2.20.1