Umherirrender has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/389264 )

Change subject: Remove mw-parser-output wrapper class
......................................................................

Remove mw-parser-output wrapper class

This extensions parse small pieces of text,
which gets part of a bigger parsed text.
Remove the <div class="mw-parser-output"></div> around each small piece.

Found by failing unit tests:
2) StorageWikiPageTest::test_template_StorageTag
Page 'Test template DumpTags'
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<div class="mw-parser-output"><p>TAGS: one, two, three.
-</p></div>'

Change-Id: If74760c4d4c7f949a53b10af54c9e995440883dd
---
M tests/phpunit/StorageWikiPage_Test.php
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PhpTagsStorage 
refs/changes/64/389264/1

diff --git a/tests/phpunit/StorageWikiPage_Test.php 
b/tests/phpunit/StorageWikiPage_Test.php
index a2567e5..6bb4f25 100644
--- a/tests/phpunit/StorageWikiPage_Test.php
+++ b/tests/phpunit/StorageWikiPage_Test.php
@@ -154,6 +154,9 @@
 
                $options = new ParserOptions();
                $options->enableLimitReport( false );
+               if ( is_callable( [ $options, 'setWrapOutputClass' ] ) ) { // 
since 1.30
+                       $options->setWrapOutputClass( false );
+               }
 
                $output = $page->getContent()-> getParserOutput( 
$page->getTitle(), null, $options );
                $this->assertEquals($output->getText(), "<p>TAGS: one, two, 
three.\n</p>", "Page 'Test template DumpTags'" );

-- 
To view, visit https://gerrit.wikimedia.org/r/389264
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If74760c4d4c7f949a53b10af54c9e995440883dd
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PhpTagsStorage
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <umherirrender_de...@web.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to