mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-12-20 03:43:01 +00:00
a091b46d65
`mw.loadJsonData` in mw.lua throws an error if the input argument is not a string. The error message should refer to the type of the input argument `module`, not that of the variable `arg` (which is usually undeclared, giving the type `nil`). This also necessitates updating test `mw.loadJsonData, bad title (1)` in CommonTests.lua, which checks for the error message if the input is the number 0; the correct message should say "got number", not "got nil". Bug: T364987 Change-Id: I8362e91489a8ddc4c890e2799892f692c497c9b9 |
||
---|---|---|
.. | ||
CommonTests-data-fail1.lua | ||
CommonTests-data-fail2.lua | ||
CommonTests-data-fail3.lua | ||
CommonTests-data-fail4.lua | ||
CommonTests-data-fail5.lua | ||
CommonTests-data.json | ||
CommonTests-data.lua | ||
CommonTests-lib.lua | ||
CommonTests.lua | ||
HashLibraryTest.php | ||
HashLibraryTests.lua | ||
HtmlLibraryTest.php | ||
HtmlLibraryTests.lua | ||
LanguageLibraryTest.php | ||
LanguageLibraryTests.lua | ||
LibraryUtilTest.php | ||
LibraryUtilTests.lua | ||
LuaCommonTest.php | ||
LuaCommonTestsFailLibrary.php | ||
LuaCommonTestsLibrary.php | ||
LuaDataProvider.php | ||
LuaEngineTestBase.php | ||
LuaEngineTestHelper.php | ||
LuaEngineTestSkip.php | ||
LuaEngineUnitTestBase.php | ||
LuaEnvironmentComparisonTest.php | ||
LuaInterpreterTestBase.php | ||
MessageLibraryTest.php | ||
MessageLibraryTests.lua | ||
SiteLibraryTest.php | ||
SiteLibraryTests.lua | ||
TestFramework.lua | ||
TextLibraryTest.php | ||
TextLibraryTests.lua | ||
TitleLibraryTest.php | ||
TitleLibraryTests.lua | ||
UriLibraryTest.php | ||
UriLibraryTests.lua | ||
UstringLibraryNormalizationTestProvider.php | ||
UstringLibraryNormalizationTests.lua | ||
UstringLibraryPureLuaTest.php | ||
UstringLibraryTest.php | ||
UstringLibraryTests.lua |