19) ParserTests::testParserTest with data set #462 ('Template with thumb image (with link in description)', '{{paramtest|
param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}', 'This is a test template with parameter <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/index.php?title=Special:Upload&wpDestFile=Noimage.png" class="new" title="File:Noimage.png">File:Noimage.png</a> <div class="thumbcaption"><a href="/index.php?title=No_link&action=edit&redlink=1" class="new" title="No link (page does not exist)">link</a> <a href="/index.php?title=No_link&action=edit&redlink=1" class="new" title="No link (page does not exist)">caption</a></div></div></div>
', '', '')
Template with thumb image (with link in description)
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'This is a test template with parameter <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/index.php?title=Special:Upload&wpDestFile=Noimage.png" class="new" title="File:Noimage.png">File:Noimage.png</a> <div class="thumbcaption"><a href="/index.php?title=No_link&action=edit&redlink=1" class="new" title="No link (page does not exist)">link</a> <a href="/index.php?title=No_link&action=edit&redlink=1" class="new" title="No link (page does not exist)">caption</a></div></div></div>
+'This is a test template with parameter <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/Special:UploadWizard?wpDestFile=Noimage.png" class="new" title="File:Noimage.png">File:Noimage.png</a> <div class="thumbcaption"><a href="/index.php?title=No_link&action=edit&redlink=1" class="new" title="No link (page does not exist)">link</a> <a href="/index.php?title=No_link&action=edit&redlink=1" class="new" title="No link (page does not exist)">caption</a></div></div></div>
32) ParserTests::testParserTest with data set #606 ('Image with multiple attributes from the same template', '[[File:Foobar.jpg|{{image_attribs}}]]', '<div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption text"><img alt="Caption text" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
', '', '')
Image with multiple attributes from the same template
34) ParserTests::testParserTest with data set #608 ('Image with multiple captions -- only last one is accepted', '[[File:Foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]', '<div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption3 - accepted"><img alt="Caption3 - accepted" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
', '', '')
Image with multiple captions -- only last one is accepted
36) ParserTests::testParserTest with data set #610 ('Image with multiple alignments -- use first (bug 48664)', '[[File:Foobar.jpg|thumb|left|right|center|caption]]
39) ParserTests::testParserTest with data set #613 ('Image with link parameter, wiki target', '[[File:Foobar.jpg|link=Main Page]]', '<p><a href="/wiki/Main_Page" title="Main Page"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
40) ParserTests::testParserTest with data set #614 ('Image with link parameter, URL target', '[[File:Foobar.jpg|link=http://example.com/]]', '<p><a href="http://example.com/" rel="nofollow"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
41) ParserTests::testParserTest with data set #615 ('Image with link parameter, protocol-less URL target', '[[File:Foobar.jpg|link=//example.com/]]', '<p><a href="//example.com/" rel="nofollow"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
</p>', '', '')
Image with link parameter, protocol-less URL target
42) ParserTests::testParserTest with data set #616 ('Image with link parameter, wgExternalLinkTarget', '[[Image:foobar.jpg|link=http://example.com/]]', '<p><a href="http://example.com/" target="foobar" rel="nofollow"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
43) ParserTests::testParserTest with data set #617 ('Image with link parameter, wgNoFollowLinks set to false', '[[Image:foobar.jpg|link=http://example.com/]]', '<p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
</p>', '', 'wgNoFollowLinks=false')
Image with link parameter, wgNoFollowLinks set to false
44) ParserTests::testParserTest with data set #618 ('Image with link parameter, wgNoFollowDomainExceptions', '[[Image:foobar.jpg|link=http://example.com/]]', '<p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
45) ParserTests::testParserTest with data set #619 ('Image with link parameter, wgExternalLinkTarget, unnamed parameter', '[[Image:foobar.jpg|link=http://example.com/|Title]]', '<p><a href="http://example.com/" title="Title" target="foobar" rel="nofollow"><img alt="Title" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
</p>', '', 'wgExternalLinkTarget=\'foobar\'')
Image with link parameter, wgExternalLinkTarget, unnamed parameter
46) ParserTests::testParserTest with data set #620 ('Image with empty link parameter', '[[File:Foobar.jpg|link=]]', '<p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
47) ParserTests::testParserTest with data set #621 ('Image with link parameter (wiki target) and unnamed parameter', '[[File:Foobar.jpg|link=Main_Page|Title]]', '<p><a href="/wiki/Main_Page" title="Title"><img alt="Title" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
</p>', '', '')
Image with link parameter (wiki target) and unnamed parameter
48) ParserTests::testParserTest with data set #622 ('Image with link parameter (URL target) and unnamed parameter', '[[File:Foobar.jpg|link=http://example.com/|Title]]', '<p><a href="http://example.com/" title="Title" rel="nofollow"><img alt="Title" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
</p>', '', '')
Image with link parameter (URL target) and unnamed parameter
55) ParserTests::testParserTest with data set #629 ('Image with frame and link', '[[File:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]', '<div class="thumb tleft"><div class="thumbinner" style="width:1943px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" class="thumbimage" /></a> <div class="thumbcaption">This is a test image <a href="/wiki/Main_Page" title="Main Page">Main Page</a></div></div></div>
', 'parsoid=wt2html,wt2wt,html2html', '')
Image with frame and link
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<div class="thumb tleft"><div class="thumbinner" style="width:1943px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" class="thumbimage" /></a> <div class="thumbcaption">This is a test image <a href="/wiki/Main_Page" title="Main Page">Main Page</a></div></div></div>
+'<div class="thumb tleft"><div class="thumbinner" style="width:1943px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" class="thumbimage" data-file-width="1941" data-file-height="220" /></a> <div class="thumbcaption">This is a test image <a href="/wiki/Main_Page" title="Main Page">Main Page</a></div></div></div>
56) ParserTests::testParserTest with data set #630 ('Image with frame and link and explicit alt', '[[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]', '<div class="thumb tleft"><div class="thumbinner" style="width:1943px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Altitude" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" class="thumbimage" /></a> <div class="thumbcaption">This is a test image <a href="/wiki/Main_Page" title="Main Page">Main Page</a></div></div></div>
', 'parsoid=wt2html,wt2wt,html2html', '')
Image with frame and link and explicit alt
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<div class="thumb tleft"><div class="thumbinner" style="width:1943px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Altitude" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" class="thumbimage" /></a> <div class="thumbcaption">This is a test image <a href="/wiki/Main_Page" title="Main Page">Main Page</a></div></div></div>
+'<div class="thumb tleft"><div class="thumbinner" style="width:1943px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Altitude" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" class="thumbimage" data-file-width="1941" data-file-height="220" /></a> <div class="thumbcaption">This is a test image <a href="/wiki/Main_Page" title="Main Page">Main Page</a></div></div></div>
64) ParserTests::testParserTest with data set #638 ('Image: bitmap thumbs can\'t be enlarged past original size, but vector can.', '[[File:Foobar.jpg|thumb|2000px]]
65) ParserTests::testParserTest with data set #639 ('Image: frameless can reduce in size', '[[File:Foobar.jpg|frameless|50px]]', '<p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" width="50" height="6" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/75px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/100px-Foobar.jpg 2x" /></a>
66) ParserTests::testParserTest with data set #640 ('Image: bitmap frameless can\'t be enlarged past original size, but vector can', '[[File:Foobar.jpg|frameless|2000px]]
68) ParserTests::testParserTest with data set #644 ('Frameless image caption with a free URL', '[[File:Foobar.jpg|http://example.com]]', '<p><a href="/wiki/File:Foobar.jpg" class="image" title="http://example.com"><img alt="http://example.com" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
77) ParserTests::testParserTest with data set #653 ('BUG 648: Frameless image caption with a link', '[[File:Foobar.jpg|text with a [[link]] in it]]', '<p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a link in it"><img alt="text with a link in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
</p>', '', '')
BUG 648: Frameless image caption with a link
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a link in it"><img alt="text with a link in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
+'<p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a link in it"><img alt="text with a link in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" data-file-width="1941" data-file-height="220" /></a>
78) ParserTests::testParserTest with data set #654 ('BUG 648: Frameless image caption with a link (suffix)', '[[File:Foobar.jpg|text with a [[link]]foo in it]]', '<p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a linkfoo in it"><img alt="text with a linkfoo in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
</p>', '', '')
BUG 648: Frameless image caption with a link (suffix)
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a linkfoo in it"><img alt="text with a linkfoo in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
+'<p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a linkfoo in it"><img alt="text with a linkfoo in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" data-file-width="1941" data-file-height="220" /></a>
79) ParserTests::testParserTest with data set #655 ('BUG 648: Frameless image caption with an interwiki link', '[[File:Foobar.jpg|text with a [[MeatBall:Link]] in it]]', '<p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a MeatBall:Link in it"><img alt="text with a MeatBall:Link in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
</p>', '', '')
BUG 648: Frameless image caption with an interwiki link
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a MeatBall:Link in it"><img alt="text with a MeatBall:Link in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
+'<p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a MeatBall:Link in it"><img alt="text with a MeatBall:Link in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" data-file-width="1941" data-file-height="220" /></a>
80) ParserTests::testParserTest with data set #656 ('BUG 648: Frameless image caption with a piped interwiki link', '[[File:Foobar.jpg|text with a [[MeatBall:Link|link]] in it]]', '<p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a link in it"><img alt="text with a link in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
</p>', '', '')
BUG 648: Frameless image caption with a piped interwiki link
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a link in it"><img alt="text with a link in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
+'<p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a link in it"><img alt="text with a link in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" data-file-width="1941" data-file-height="220" /></a>
81) ParserTests::testParserTest with data set #657 ('Escape HTML special chars in image alt text', '[[File:Foobar.jpg|& < > "]]', '<p><a href="/wiki/File:Foobar.jpg" class="image" title="& < > ""><img alt="& < > "" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
82) ParserTests::testParserTest with data set #658 ('BUG 499: Alt text should have Ӓ, not &1234;', '[[File:Foobar.jpg|♀]]', '<p><a href="/wiki/File:Foobar.jpg" class="image" title="♀"><img alt="♀" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
</p>', '', '')
BUG 499: Alt text should have Ӓ, not &1234;
86) ParserTests::testParserTest with data set #663 ('Image: caption containing a table', '[[Image:Foobar.jpg|thumb|200px|This is an example image thumbnail caption with a table
{|
! Foo !! Bar
|-
| Foo1 || Bar1
|}
and some more text.]]', '<div class="thumb tright"><div class="thumbinner" style="width:202px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" width="200" height="23" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/400px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This is an example image thumbnail caption with a table <table> <tr> <th> Foo </th> <th> Bar </th></tr> <tr> <td> Foo1 </td> <td> Bar1 </td></tr></table> and some more text.</div></div></div>
', 'parsoid=wt2html,wt2wt,html2html', '')
Image: caption containing a table
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<div class="thumb tright"><div class="thumbinner" style="width:202px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" width="200" height="23" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/400px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This is an example image thumbnail caption with a table <table> <tr> <th> Foo </th> <th> Bar </th></tr> <tr> <td> Foo1 </td> <td> Bar1 </td></tr></table> and some more text.</div></div></div>
+'<div class="thumb tright"><div class="thumbinner" style="width:202px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" width="200" height="23" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/400px-Foobar.jpg 2x" data-file-width="1941" data-file-height="220" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This is an example image thumbnail caption with a table <table> <tr> <th> Foo </th> <th> Bar </th></tr> <tr> <td> Foo1 </td> <td> Bar1 </td></tr></table> and some more text.</div></div></div>
91) ParserTests::testParserTest with data set #668 ('"border", "frameless" and "class" attributes on an image.', '[[File:Foobar.jpg|frameless|border|class=extra|caption]]', '<p><a href="/wiki/File:Foobar.jpg" class="image" title="caption"><img alt="caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="extra thumbborder" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-Foobar.jpg 2x" /></a>
</p>', 'thumbsize=220
parsoid=wt2html,wt2wt,html2html', '')
"border", "frameless" and "class" attributes on an image.
93) ParserTests::testParserTest with data set #671 ('Missing image with uploads disabled', '[[Image:Foobaz.jpg]]', '<p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
96) ParserTests::testParserTest with data set #738 ('Media link to nonexistent file (bug 1702)', '[[Media:No such.jpg]]', '<p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
97) ParserTests::testParserTest with data set #739 ('Image link to nonexistent file (bug 1850 - good)', '[[Image:No such.jpg]]', '<p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
107) ParserTests::testParserTest with data set #911 ('Width-sized image (using px, with following whitespace - test regression from r39467)', '[[Image:foobar.jpg|640px ]]', '<p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg" width="640" height="73" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/960px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/1280px-Foobar.jpg 2x" /></a>
</p>', '', '')
Width-sized image (using px, with following whitespace - test regression from r39467)
111) ParserTests::testParserTest with data set #1039 ('percent-encoding and + signs in internal links (Bug 26410)', '[[User:+%]] [[Page+title%]]
[[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
[[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
[[%33%45]] [[%33%45+]]', '<p><a href="/index.php?title=User:%2B%25&action=edit&redlink=1" class="new" title="User:+% (page does not exist)">User:+%</a> <a href="/index.php?title=Page%2Btitle%25&action=edit&redlink=1" class="new" title="Page+title% (page does not exist)">Page+title%</a>
<a href="/index.php?title=%25%2B&action=edit&redlink=1" class="new" title="%+ (page does not exist)">%+</a> <a href="/index.php?title=%25%2B&action=edit&redlink=1" class="new" title="%+ (page does not exist)">%20</a> <a href="/index.php?title=%25%2B&action=edit&redlink=1" class="new" title="%+ (page does not exist)">%+ </a> <a href="/index.php?title=%25%2Br&action=edit&redlink=1" class="new" title="%+r (page does not exist)">%+r</a>
<a href="/index.php?title=%25&action=edit&redlink=1" class="new" title="% (page does not exist)">%</a> <a href="/index.php?title=%2B&action=edit&redlink=1" class="new" title="+ (page does not exist)">+</a> <a href="/index.php?title=Special:Upload&wpDestFile=%25%2Babc9" class="new" title="File:%+abc9">bar</a>
<a href="/index.php?title=3E&action=edit&redlink=1" class="new" title="3E (page does not exist)">3E</a> <a href="/index.php?title=3E%2B&action=edit&redlink=1" class="new" title="3E+ (page does not exist)">3E+</a>
</p>', '', '')
percent-encoding and + signs in internal links (Bug 26410)
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
'<p><a href="/index.php?title=User:%2B%25&action=edit&redlink=1" class="new" title="User:+% (page does not exist)">User:+%</a> <a href="/index.php?title=Page%2Btitle%25&action=edit&redlink=1" class="new" title="Page+title% (page does not exist)">Page+title%</a>
<a href="/index.php?title=%25%2B&action=edit&redlink=1" class="new" title="%+ (page does not exist)">%+</a> <a href="/index.php?title=%25%2B&action=edit&redlink=1" class="new" title="%+ (page does not exist)">%20</a> <a href="/index.php?title=%25%2B&action=edit&redlink=1" class="new" title="%+ (page does not exist)">%+ </a> <a href="/index.php?title=%25%2Br&action=edit&redlink=1" class="new" title="%+r (page does not exist)">%+r</a>
-<a href="/index.php?title=%25&action=edit&redlink=1" class="new" title="% (page does not exist)">%</a> <a href="/index.php?title=%2B&action=edit&redlink=1" class="new" title="+ (page does not exist)">+</a> <a href="/index.php?title=Special:Upload&wpDestFile=%25%2Babc9" class="new" title="File:%+abc9">bar</a>
+<a href="/index.php?title=%25&action=edit&redlink=1" class="new" title="% (page does not exist)">%</a> <a href="/index.php?title=%2B&action=edit&redlink=1" class="new" title="+ (page does not exist)">+</a> <a href="/wiki/Special:UploadWizard?wpDestFile=%25%2Babc9" class="new" title="File:%+abc9">bar</a>
<a href="/index.php?title=3E&action=edit&redlink=1" class="new" title="3E (page does not exist)">3E</a> <a href="/index.php?title=3E%2B&action=edit&redlink=1" class="new" title="3E+ (page does not exist)">3E+</a>
112) ParserTests::testParserTest with data set #1040 ('Special characters in embedded file links (bug 27679)', '[[File:Contains & ampersand.jpg]]
[[File:Does not exist.jpg|Title with & ampersand]]', '<p><a href="/index.php?title=Special:Upload&wpDestFile=Contains_%26_ampersand.jpg" class="new" title="File:Contains & ampersand.jpg">File:Contains & ampersand.jpg</a>
<a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
</p>', '', '')
Special characters in embedded file links (bug 27679)
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<p><a href="/index.php?title=Special:Upload&wpDestFile=Contains_%26_ampersand.jpg" class="new" title="File:Contains & ampersand.jpg">File:Contains & ampersand.jpg</a>
-<a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
+'<p><a href="/wiki/Special:UploadWizard?wpDestFile=Contains_%26_ampersand.jpg" class="new" title="File:Contains & ampersand.jpg">File:Contains & ampersand.jpg</a>
+<a href="/wiki/Special:UploadWizard?wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>