Last modified: 2014-09-07 20:20:03 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T70644, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68644 - phpunit failure: Pages::testParserTest: Failed asserting that two strings are equal.
phpunit failure: Pages::testParserTest: Failed asserting that two strings are...
Status: PATCH_TO_REVIEW
Product: MediaWiki extensions
Classification: Unclassified
ProofreadPage (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 67216
  Show dependency treegraph
 
Reported: 2014-07-27 00:06 UTC by Nemo
Modified: 2014-09-07 20:20 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Nemo 2014-07-27 00:06:42 UTC
Apparently they all have some unexpected "pagequality" class, at least when run with other extensions (http://paste.debian.net/111811/).

137) Pages::testParserTest with data set #2 ('pages: without file: Simple transclusion', '<pages index="Test" from="Test 1.jpg" to="Test 3.png" />', '<div>
<p><span><a href="/wiki/Page:Test_1.jpg" title="Page:Test 1.jpg">TOC</a></span>Test 1&#32;<span><a href="/wiki/Page:Test_2.tiff" title="Page:Test 2.tiff">1</a></span>Test 2&#32;<span><a href="/wiki/Page:Test_3.png" title="Page:Test 3.png">2</a></span>
</p><p>Test 3&#32;
</p>
</div>
', '', '')
pages: without file: Simple transclusion
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
 '<div>
-<p><span><a href="/wiki/Page:Test_1.jpg" title="Page:Test 1.jpg">TOC</a></span>Test 1&#32;<span><a href="/wiki/Page:Test_2.tiff" title="Page:Test 2.tiff">1</a></span>Test 2&#32;<span><a href="/wiki/Page:Test_3.png" title="Page:Test 3.png">2</a></span>
+<p><span><a href="/wiki/Page:Test_1.jpg" title="Page:Test 1.jpg" class="prp-pagequality-1">TOC</a></span>Test 1&#32;<span><a href="/wiki/Page:Test_2.tiff" title="Page:Test 2.tiff" class="prp-pagequality-1">1</a></span>Test 2&#32;<span><a href="/wiki/Page:Test_3.png" title="Page:Test 3.png" class="prp-pagequality-1">2</a></span>
 </p><p>Test 3&#32;
 </p>
 </div>
 '

/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

138) Pages::testParserTest with data set #3 ('pages: without file: Simple transclusion without from', '<pages index="Test" to="Test 2.tiff" />', '<div>
<p><span><a href="/wiki/Page:Test_1.jpg" title="Page:Test 1.jpg">TOC</a></span>Test 1&#32;<span><a href="/wiki/Page:Test_2.tiff" title="Page:Test 2.tiff">1</a></span>Test 2&#32;
</p>
</div>
', '', '')
pages: without file: Simple transclusion without from
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
 '<div>
-<p><span><a href="/wiki/Page:Test_1.jpg" title="Page:Test 1.jpg">TOC</a></span>Test 1&#32;<span><a href="/wiki/Page:Test_2.tiff" title="Page:Test 2.tiff">1</a></span>Test 2&#32;
+<p><span><a href="/wiki/Page:Test_1.jpg" title="Page:Test 1.jpg" class="prp-pagequality-1">TOC</a></span>Test 1&#32;<span><a href="/wiki/Page:Test_2.tiff" title="Page:Test 2.tiff" class="prp-pagequality-1">1</a></span>Test 2&#32;
 </p>
 </div>
 '

/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

139) Pages::testParserTest with data set #4 ('pages: without file: Simple transclusion without to', '<pages index="Test" from="Test 2.tiff" />', '<div>
<p><span><a href="/wiki/Page:Test_2.tiff" title="Page:Test 2.tiff">1</a></span>Test 2&#32;<span><a href="/wiki/Page:Test_3.png" title="Page:Test 3.png">2</a></span>
</p><p>Test 3&#32;
</p>
</div>
', '', '')
pages: without file: Simple transclusion without to
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
 '<div>
-<p><span><a href="/wiki/Page:Test_2.tiff" title="Page:Test 2.tiff">1</a></span>Test 2&#32;<span><a href="/wiki/Page:Test_3.png" title="Page:Test 3.png">2</a></span>
+<p><span><a href="/wiki/Page:Test_2.tiff" title="Page:Test 2.tiff" class="prp-pagequality-1">1</a></span>Test 2&#32;<span><a href="/wiki/Page:Test_3.png" title="Page:Test 3.png" class="prp-pagequality-1">2</a></span>
 </p><p>Test 3&#32;
 </p>
 </div>
 '

/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

140) Pages::testParserTest with data set #5 ('pages: without file: Header', '<pages index="Test" from="Test 1.jpg" to="Test 2.tiff" header=1 />', '<div>
<p>Title -- <a href="/wiki/Author:Me" title="Author:Me">Author:Me</a>
TOC -- 1
<a href="/wiki/Test/Chapter_1" title="Test/Chapter 1">Test/Chapter 1</a> -- <a href="/wiki/Test/Chapter_3" title="Test/Chapter 3">Chapter 3</a><span><a href="/wiki/Page:Test_1.jpg" title="Page:Test 1.jpg">TOC</a></span>Test 1&#32;<span><a href="/wiki/Page:Test_2.tiff" title="Page:Test 2.tiff">1</a></span>Test 2&#32;
</p>
</div>
', 'title="Test/Chapter 2"', '')
pages: without file: Header
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
 '<div>
 <p>Title -- <a href="/wiki/Author:Me" title="Author:Me">Author:Me</a>
 TOC -- 1
-<a href="/wiki/Test/Chapter_1" title="Test/Chapter 1">Test/Chapter 1</a> -- <a href="/wiki/Test/Chapter_3" title="Test/Chapter 3">Chapter 3</a><span><a href="/wiki/Page:Test_1.jpg" title="Page:Test 1.jpg">TOC</a></span>Test 1&#32;<span><a href="/wiki/Page:Test_2.tiff" title="Page:Test 2.tiff">1</a></span>Test 2&#32;
+<a href="/wiki/Test/Chapter_1" title="Test/Chapter 1">Test/Chapter 1</a> -- <a href="/wiki/Test/Chapter_3" title="Test/Chapter 3">Chapter 3</a><span><a href="/wiki/Page:Test_1.jpg" title="Page:Test 1.jpg" class="prp-pagequality-1">TOC</a></span>Test 1&#32;<span><a href="/wiki/Page:Test_2.tiff" title="Page:Test 2.tiff" class="prp-pagequality-1">1</a></span>Test 2&#32;
 </p>
 </div>
 '

/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

141) Pages::testParserTest with data set #21 ('pages: fromsection', '<pages index="TestSection" from="TestSection 1" fromsection="Foo" to="TestSection 3" />', '<div>
<p><span><a href="/wiki/Page:TestSection_1" title="Page:TestSection 1">TOC</a></span>
Test 11
</p><p>Test 12&#32;<span><a href="/wiki/Page:TestSection_2" title="Page:TestSection 2">1</a></span>Test 20
</p><p>Test 21
</p><p>Test 22&#32;<span><a href="/wiki/Page:TestSection_3" title="Page:TestSection 3">2</a></span>Test 30
</p><p>Test 31
</p><p>Test 32&#32;
</p>
</div>
', '', '')
pages: fromsection
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
 '<div>
-<p><span><a href="/wiki/Page:TestSection_1" title="Page:TestSection 1">TOC</a></span>
+<p><span><a href="/wiki/Page:TestSection_1" title="Page:TestSection 1" class="prp-pagequality-1">TOC</a></span>
 Test 11
-</p><p>Test 12&#32;<span><a href="/wiki/Page:TestSection_2" title="Page:TestSection 2">1</a></span>Test 20
+</p><p>Test 12&#32;<span><a href="/wiki/Page:TestSection_2" title="Page:TestSection 2" class="prp-pagequality-1">1</a></span>Test 20
 </p><p>Test 21
-</p><p>Test 22&#32;<span><a href="/wiki/Page:TestSection_3" title="Page:TestSection 3">2</a></span>Test 30
+</p><p>Test 22&#32;<span><a href="/wiki/Page:TestSection_3" title="Page:TestSection 3" class="prp-pagequality-1">2</a></span>Test 30
 </p><p>Test 31
 </p><p>Test 32&#32;
 </p>
 </div>
 '

/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

142) Pages::testParserTest with data set #22 ('pages: tosection', '<pages index="TestSection" from="TestSection 2" to="TestSection 3" tosection="Bar" />', '<div>
<p><span><a href="/wiki/Page:TestSection_2" title="Page:TestSection 2">1</a></span>Test 20
</p><p>Test 21
</p><p>Test 22&#32;<span><a href="/wiki/Page:TestSection_3" title="Page:TestSection 3">2</a></span>Test 30
</p><p>Test 31
&#32;
</p>
</div>
', '', '')
pages: tosection
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
 '<div>
-<p><span><a href="/wiki/Page:TestSection_2" title="Page:TestSection 2">1</a></span>Test 20
+<p><span><a href="/wiki/Page:TestSection_2" title="Page:TestSection 2" class="prp-pagequality-1">1</a></span>Test 20
 </p><p>Test 21
-</p><p>Test 22&#32;<span><a href="/wiki/Page:TestSection_3" title="Page:TestSection 3">2</a></span>Test 30
+</p><p>Test 22&#32;<span><a href="/wiki/Page:TestSection_3" title="Page:TestSection 3" class="prp-pagequality-1">2</a></span>Test 30
 </p><p>Test 31
 &#32;
 </p>
 </div>
 '

/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

143) Pages::testParserTest with data set #23 ('pages: onlysection', '<pages index="TestSection" from="TestSection 1" to="TestSection 3" onlysection="Foo" />', '<div>
<p><span><a href="/wiki/Page:TestSection_1" title="Page:TestSection 1">TOC</a></span>
Test 11
&#32;<span><a href="/wiki/Page:TestSection_2" title="Page:TestSection 2">1</a></span>
Test 21
&#32;<span><a href="/wiki/Page:TestSection_3" title="Page:TestSection 3">2</a></span>&#32;
</p>
</div>
', '', '')
pages: onlysection
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
 '<div>
-<p><span><a href="/wiki/Page:TestSection_1" title="Page:TestSection 1">TOC</a></span>
+<p><span><a href="/wiki/Page:TestSection_1" title="Page:TestSection 1" class="prp-pagequality-1">TOC</a></span>
 Test 11
-&#32;<span><a href="/wiki/Page:TestSection_2" title="Page:TestSection 2">1</a></span>
+&#32;<span><a href="/wiki/Page:TestSection_2" title="Page:TestSection 2" class="prp-pagequality-1">1</a></span>
 Test 21
-&#32;<span><a href="/wiki/Page:TestSection_3" title="Page:TestSection 3">2</a></span>&#32;
+&#32;<span><a href="/wiki/Page:TestSection_3" title="Page:TestSection 3" class="prp-pagequality-1">2</a></span>&#32;
 </p>
 </div>
 '

/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
Comment 1 Gerrit Notification Bot 2014-07-29 15:09:29 UTC
Change 150226 had a related patch set uploaded by Hashar:
Always set prquality even if $wgTitle does not exist

https://gerrit.wikimedia.org/r/150226
Comment 2 Gerrit Notification Bot 2014-08-20 11:01:53 UTC
Change 150226 abandoned by Hashar:
Always set prquality even if $wgTitle does not exist

https://gerrit.wikimedia.org/r/150226

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links