mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-30 02:54:26 +00:00
98f25aa9a1
Add more information to error messages in mw.html. This includes the error level, the function name, and the position of the argument in the argument list. Where possible, use the functions in libraryUtil.lua to do this. Some functions in mw.html accept multiple types, so add a checkTypeMulti function to libraryUtil.lua to make these kinds of functions easy to check. And while we're at it, add test cases for libraryUtil.lua as well. Change-Id: If9cf9a52bd4b1bb42cc7f9f1f1096828710cbc52
12 lines
276 B
PHP
12 lines
276 B
PHP
<?php
|
|
|
|
class Scribunto_LuaLibraryUtilTests extends Scribunto_LuaEngineTestBase {
|
|
protected static $moduleName = 'LibraryUtilTests';
|
|
|
|
function getTestModules() {
|
|
return parent::getTestModules() + array(
|
|
'LibraryUtilTests' => __DIR__ . '/LibraryUtilTests.lua',
|
|
);
|
|
}
|
|
}
|