Add more test cases for bug 289
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 11 Oct 2004 18:12:14 +0000 (18:12 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 11 Oct 2004 18:12:14 +0000 (18:12 +0000)
maintenance/parserTests.txt

index 00d1ef8..d47603f 100644 (file)
@@ -516,6 +516,33 @@ http://www.example.com/<hello>
 </p>
 !!end
 
+!! test
+BUG 289: literal ">"-token in URL-tail
+!! input
+http://www.example.com/<b>html</b>
+!! result
+<p><a href="http://www.example.com/" class='external'>http://www.example.com/</a><b >html</b >
+</p>
+!!end
+
+!! test
+BUG 289: ">"-token in bracketed URL
+!! input
+[http://www.example.com/<hello> stuff]
+!! result
+<p>[http://www.example.com/&lt;hello&gt; stuff]
+</p>
+!!end
+
+!! test
+BUG 289: literal ">"-token in bracketed URL
+!! input
+[http://www.example.com/<b>html</b> stuff]
+!! result
+<p>[http://www.example.com/<b >html</b > stuff]
+</p>
+!!end
+
 ###
 ### Quotes
 ###