* These tests were going a bit too well, so here are some more that fail.
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Mon, 2 May 2005 09:32:53 +0000 (09:32 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Mon, 2 May 2005 09:32:53 +0000 (09:32 +0000)
maintenance/parserTests.txt

index dc851e0..f6a2fc5 100644 (file)
@@ -349,8 +349,12 @@ Non-bracketed: http://example.com
 External links: numbered
 !! input
 Numbered: [http://example.com]
+Numbered: [http://example.net]
+Numbered: [http://example.org]
 !! result
 <p>Numbered: <a href="http://example.com" class='external autonumber' title="http://example.com" rel="nofollow">[1]</a>
+Numbered: <a href="http://example.net" class='external autonumber' title="http://example.net" rel="nofollow">[2]</a>
+Numbered: <a href="http://example.org" class='external autonumber' title="http://example.org" rel="nofollow">[3]</a>
 </p>
 !!end
 
@@ -1041,6 +1045,41 @@ Interwiki link encoding conversion (bug 1636)
 </p>
 !! end
 
+!! test
+Incorrecly removing closing slashes from correctly formed XHTML
+!! input
+<br style="clear:both;" />
+!! result
+<p><br style="clear:both;" />
+</p>
+!! end
+
+!! test 
+Failing to transform badly formed HTML into correct XHTML
+!! input
+<br clear=left>
+<br clear=right>
+<br clear=all>
+!! result
+<p><br style="clear:left;" />
+<br style="clear:right;" />
+<br style="clear:both;" />
+</p>
+!!end
+
+!! test 
+Horizontal ruler (should it add that extra space?)
+!! input 
+<hr>
+<hr >
+foo <hr
+> bar
+!! result 
+<hr />
+<hr />
+foo <hr /> bar
+!! end
+
 ###
 ### Block-level elements
 ###