Fixes Bug 31865 - Tag <dws> for discarding whitespaces.
[lhc/web/wiklou.git] / tests / parser / parserTests.txt
index 9a7fd40..c331dd3 100644 (file)
@@ -8930,6 +8930,97 @@ title=[[MediaWiki:bug32450.css]]
 </p>
 !! end
 
+!! test
+Bug 31865: HTML-style tag <dws> is recognized and discarded.
+!! input
+one<dws>two
+!! result
+<p>onetwo
+</p>
+!! end
+
+!! test
+Bug 31865: XML-style tag <dws/> is recognized and discarded.
+!! input
+one<dws/>two
+!! result
+<p>onetwo
+</p>
+!! end
+
+!! test
+Bug 31865: Spaces after <dws> tag are discarded.
+!! input
+one<dws>   two
+!! result
+<p>onetwo
+</p>
+!! end
+
+!! test
+Bug 31865: Tabs after <dws> tag are discarded too.
+!! input
+one<dws>                       two
+!! result
+<p>onetwo
+</p>
+!! end
+
+!! test
+Bug 31865: Newlines after <dws> tag are discarded too.
+!! input
+one<dws>
+
+
+two
+!! result
+<p>onetwo
+</p>
+!! end
+
+!! test
+Bug 31865: Spaces before <dws> tag are not discarded.
+!! input
+one   <dws>two
+!! result
+<p>one   two
+</p>
+!! end
+
+!! test
+Bug 31865: <dws> Continuation is indented.
+!! input
+one<dws>
+       two
+!! result
+<p>onetwo
+</p>
+!! end
+
+!! test
+Bug 31865: <dws> List item continuation.
+!! input
+* one<dws>
+       two
+* three
+!! result
+<ul><li> onetwo
+</li><li> three
+</li></ul>
+
+!! end
+
+!! test
+Bug 31865: <dws/> XML-style; asterisk after the tag does not start list item. 
+!! input
+* one <dws/>
+* two
+!! result
+<ul><li> one * two
+</li></ul>
+
+!! end
+
 TODO:
 more images
 more tables