https://bugzilla.wikimedia.org/show_bug.cgi?id=68649
Bug ID: 68649
Summary: phpunit failure: ParserTests::testParserTest for
gallery with UploadWizard and data-file-*
Product: MediaWiki
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Unit tests
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Blocks: 67216
Web browser: ---
Mobile Platform: ---
These gallery tests don't like Special:Upload being replaced by
Special:UploadWizard and data-file-* attributes being added. I thought there
was some discussion already about this, but no bug was found for this test.
15) ParserTests::testParserTest with data set #121 ('4. Indent-Pre and
extension tags', ' a <gallery>
File:foobar.jpg
</gallery>', ' a <ul class="gallery mw-gallery-traditional">
<li class="gallerybox" style="width: 155px"><div style="width:
155px">
<div class="thumb" style="width: 150px;"><div
style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img
alt="Foobar.jpg"
src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
width="120" height="14" /></a></div></div>
<div class="gallerytext">
</div>
</div></li>
</ul>
', '', '')
4. Indent-Pre and extension tags
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
' a <ul class="gallery mw-gallery-traditional">
<li class="gallerybox" style="width: 155px"><div style="width:
155px">
- <div class="thumb" style="width: 150px;"><div
style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img
alt="Foobar.jpg"
src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
width="120" height="14" /></a></div></div>
+ <div class="thumb" style="width: 150px;"><div
style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img
alt="Foobar.jpg"
src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
width="120" height="14" data-file-width="1941" data-file-height="220"
/></a></div></div>
<div class="gallerytext">
</div>
</div></li>
</ul>
'
/srv/vagrant/mediawiki/tests/phpunit/includes/parser/NewParserTest.php:767
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160
16) ParserTests::testParserTest with data set #305 ('Link with double quotes in
title part (literal) and alternate part (interpreted)', '[[File:Denys Savchenko
\'\'Pentecoste\'\'.jpg]]
[[\'\'Pentecoste\'\']]
[[\'\'Pentecoste\'\'|Pentecoste]]
[[\'\'Pentecoste\'\'|\'\'Pentecoste\'\']]', '<p><a
href="/index.php?title=Special:Upload&wpDestFile=Denys_Savchenko_%27%27Pentecoste%27%27.jpg"
class="new" title="File:Denys Savchenko
''Pentecoste''.jpg">File:Denys Savchenko
<i>Pentecoste</i>.jpg</a>
</p><p><a
href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1"
class="new" title="\'\'Pentecoste\'\' (page does not
exist)">\'\'Pentecoste\'\'</a>
</p><p><a
href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1"
class="new" title="\'\'Pentecoste\'\' (page does not exist)">Pentecoste</a>
</p><p><a
href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1"
class="new" title="\'\'Pentecoste\'\' (page does not
exist)"><i>Pentecoste</i></a>
</p>', '', '')
Link with double quotes in title part (literal) and alternate part
(interpreted)
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<p><a
href="/index.php?title=Special:Upload&wpDestFile=Denys_Savchenko_%27%27Pentecoste%27%27.jpg"
class="new" title="File:Denys Savchenko
''Pentecoste''.jpg">File:Denys Savchenko
<i>Pentecoste</i>.jpg</a>
+'<p><a
href="/wiki/Special:UploadWizard?wpDestFile=Denys_Savchenko_%27%27Pentecoste%27%27.jpg"
class="new" title="File:Denys Savchenko
''Pentecoste''.jpg">File:Denys Savchenko
<i>Pentecoste</i>.jpg</a>
</p><p><a
href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1"
class="new" title="''Pentecoste'' (page does not exist)">''Pentecoste''</a>
</p><p><a
href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1"
class="new" title="''Pentecoste'' (page does not exist)">Pentecoste</a>
</p><p><a
href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1"
class="new" title="''Pentecoste'' (page does not exist)"><i>Pentecoste</i></a>
</p>'
/srv/vagrant/mediawiki/tests/phpunit/includes/parser/NewParserTest.php:767
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160
17) ParserTests::testParserTest with data set #306 ('Broken image links with
HTML captions (bug 39700)', '[[File:Nonexistent|<script></script>]]
[[File:Nonexistent|100px|<script></script>]]
[[File:Nonexistent|<]]
[[File:Nonexistent|a<i>b</i>c]]', '<p><a
href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new"
title="File:Nonexistent"><script></script></a>
<a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent"
class="new" title="File:Nonexistent"><script></script></a>
<a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent"
class="new" title="File:Nonexistent"><</a>
<a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent"
class="new" title="File:Nonexistent">abc</a>
</p>', '', '')
Broken image links with HTML captions (bug 39700)
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent"
class="new" title="File:Nonexistent"><script></script></a>
-<a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent"
class="new" title="File:Nonexistent"><script></script></a>
-<a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent"
class="new" title="File:Nonexistent"><</a>
-<a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent"
class="new" title="File:Nonexistent">abc</a>
+'<p><a href="/wiki/Special:UploadWizard?wpDestFile=Nonexistent" class="new"
title="File:Nonexistent"><script></script></a>
+<a href="/wiki/Special:UploadWizard?wpDestFile=Nonexistent" class="new"
title="File:Nonexistent"><script></script></a>
+<a href="/wiki/Special:UploadWizard?wpDestFile=Nonexistent" class="new"
title="File:Nonexistent"><</a>
+<a href="/wiki/Special:UploadWizard?wpDestFile=Nonexistent" class="new"
title="File:Nonexistent">abc</a>
</p>'
/srv/vagrant/mediawiki/tests/phpunit/includes/parser/NewParserTest.php:767
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l