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: wikibugs-l@lists.wikimedia.org
          Reporter: federicol...@tiscali.it
                CC: has...@free.fr, krinklem...@gmail.com,
                    m...@everybody.org
            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&amp;wpDestFile=Denys_Savchenko_%27%27Pentecoste%27%27.jpg"
class="new" title="File:Denys Savchenko
&#39;&#39;Pentecoste&#39;&#39;.jpg">File:Denys Savchenko
<i>Pentecoste</i>.jpg</a>
</p><p><a
href="/index.php?title=%27%27Pentecoste%27%27&amp;action=edit&amp;redlink=1"
class="new" title="\'\'Pentecoste\'\' (page does not
exist)">\'\'Pentecoste\'\'</a>
</p><p><a
href="/index.php?title=%27%27Pentecoste%27%27&amp;action=edit&amp;redlink=1"
class="new" title="\'\'Pentecoste\'\' (page does not exist)">Pentecoste</a>
</p><p><a
href="/index.php?title=%27%27Pentecoste%27%27&amp;action=edit&amp;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&amp;wpDestFile=Denys_Savchenko_%27%27Pentecoste%27%27.jpg"
class="new" title="File:Denys Savchenko
&#39;&#39;Pentecoste&#39;&#39;.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
&#39;&#39;Pentecoste&#39;&#39;.jpg">File:Denys Savchenko
<i>Pentecoste</i>.jpg</a>
 </p><p><a
href="/index.php?title=%27%27Pentecoste%27%27&amp;action=edit&amp;redlink=1"
class="new" title="''Pentecoste'' (page does not exist)">''Pentecoste''</a>
 </p><p><a
href="/index.php?title=%27%27Pentecoste%27%27&amp;action=edit&amp;redlink=1"
class="new" title="''Pentecoste'' (page does not exist)">Pentecoste</a>
 </p><p><a
href="/index.php?title=%27%27Pentecoste%27%27&amp;action=edit&amp;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|&lt;]]
[[File:Nonexistent|a<i>b</i>c]]', '<p><a
href="/index.php?title=Special:Upload&amp;wpDestFile=Nonexistent" class="new"
title="File:Nonexistent">&lt;script&gt;&lt;/script&gt;</a>
<a href="/index.php?title=Special:Upload&amp;wpDestFile=Nonexistent"
class="new" title="File:Nonexistent">&lt;script&gt;&lt;/script&gt;</a>
<a href="/index.php?title=Special:Upload&amp;wpDestFile=Nonexistent"
class="new" title="File:Nonexistent">&lt;</a>
<a href="/index.php?title=Special:Upload&amp;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&amp;wpDestFile=Nonexistent"
class="new" title="File:Nonexistent">&lt;script&gt;&lt;/script&gt;</a>
-<a href="/index.php?title=Special:Upload&amp;wpDestFile=Nonexistent"
class="new" title="File:Nonexistent">&lt;script&gt;&lt;/script&gt;</a>
-<a href="/index.php?title=Special:Upload&amp;wpDestFile=Nonexistent"
class="new" title="File:Nonexistent">&lt;</a>
-<a href="/index.php?title=Special:Upload&amp;wpDestFile=Nonexistent"
class="new" title="File:Nonexistent">abc</a>
+'<p><a href="/wiki/Special:UploadWizard?wpDestFile=Nonexistent" class="new"
title="File:Nonexistent">&lt;script&gt;&lt;/script&gt;</a>
+<a href="/wiki/Special:UploadWizard?wpDestFile=Nonexistent" class="new"
title="File:Nonexistent">&lt;script&gt;&lt;/script&gt;</a>
+<a href="/wiki/Special:UploadWizard?wpDestFile=Nonexistent" class="new"
title="File:Nonexistent">&lt;</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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to