mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-30 19:14:22 +00:00
c9de00aeff
Core strip markers were changed in T110143 to include characters that are normally encoded in attributes, however we want to pass them through here so they can be unstripped correctly in the output wikitext. This fix makes "Strip markers in CSS" parser test pass again. Bug: T110143 Bug: T135961 Change-Id: I1353931a53c668d8a453dfa2300a99f59fdb01c5
27 lines
718 B
PHP
27 lines
718 B
PHP
<?php
|
|
|
|
// @codingStandardsIgnoreLine Squiz.Classes.ValidClassName.NotCamelCaps
|
|
class Scribunto_LuaHtmlLibraryTests extends Scribunto_LuaEngineTestBase {
|
|
protected static $moduleName = 'HtmlLibraryTests';
|
|
|
|
protected function setUp() {
|
|
parent::setUp();
|
|
|
|
// For strip marker test
|
|
$markers = array(
|
|
'nowiki' => Parser::MARKER_PREFIX . '-test-nowiki-' . Parser::MARKER_SUFFIX,
|
|
);
|
|
$interpreter = $this->getEngine()->getInterpreter();
|
|
$interpreter->callFunction(
|
|
$interpreter->loadString( 'mw.html.stripMarkers = ...', 'fortest' ),
|
|
$markers
|
|
);
|
|
}
|
|
|
|
protected function getTestModules() {
|
|
return parent::getTestModules() + array(
|
|
'HtmlLibraryTests' => __DIR__ . '/HtmlLibraryTests.lua',
|
|
);
|
|
}
|
|
}
|