aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--maintenance/parserTests.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt
index 0b4b29b1016b..9c660c7bb26f 100644
--- a/maintenance/parserTests.txt
+++ b/maintenance/parserTests.txt
@@ -6212,6 +6212,24 @@ Width + Height sized image (using px) (height is ignored)
!!end
!! test
+Width-sized image (using px, no following whitespace)
+!! 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
+Width-sized image (using px, with following 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
''' ''x'