Add another parser test for whitespace before the number-px, just for good measure...
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 19 Aug 2008 21:24:47 +0000 (21:24 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 19 Aug 2008 21:24:47 +0000 (21:24 +0000)
maintenance/parserTests.txt

index 9c660c7..edd3ea9 100644 (file)
@@ -6229,6 +6229,15 @@ Width-sized image (using px, with following whitespace - test regression from r3
 </p>
 !!end
 
+!! test
+Width-sized image (using px, with preceding whitespace - test regression from r39467)
+!! input
+[[Image:foobar.jpg| 640px]]
+!! result
+<p><a href="/wiki/Image:Foobar.jpg" class="image" title="Foobar.jpg"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg" width="640" height="73" border="0" /></a>
+</p>
+!!end
+
 !! test
 Another italics / bold test
 !! input