From: Subramanya Sastry
Date: Tue, 3 Jul 2012 16:16:53 +0000 (-0500)
Subject: Added wikitext parsertests for dashes
X-Git-Tag: 1.31.0-rc.0~23148
X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=5008a6bcaed8d21e703887c0ad828287631d25b5;p=lhc%2Fweb%2Fwiklou.git
Added wikitext parsertests for dashes
Change-Id: I0f595f05057068e6459062fc8e8f9fad23021dec
---
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
###