2013-12-16 15:00:37 +00:00
|
|
|
<?php
|
|
|
|
|
2016-05-17 14:52:05 +00:00
|
|
|
// @codingStandardsIgnoreLine Squiz.Classes.ValidClassName.NotCamelCaps
|
2013-12-16 15:00:37 +00:00
|
|
|
class Scribunto_LuaHtmlLibraryTests extends Scribunto_LuaEngineTestBase {
|
|
|
|
protected static $moduleName = 'HtmlLibraryTests';
|
|
|
|
|
2016-03-14 15:48:20 +00:00
|
|
|
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
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2014-11-12 11:21:38 +00:00
|
|
|
protected function getTestModules() {
|
2013-12-16 15:00:37 +00:00
|
|
|
return parent::getTestModules() + array(
|
|
|
|
'HtmlLibraryTests' => __DIR__ . '/HtmlLibraryTests.lua',
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|