mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-25 00:26:44 +00:00
b6ea64f132
It would be helpful for debugging if a frame object could be gotten in the console. To that end, add an empty frame when running in the console and allow it to be returned by mw.getCurrentFrame(). It would also be helpful to be able to create frames with arbitrary arguments, again for testing. Fortunately support for creating child frames with arbitrary arguments already exists in core, so we can just use it. And for good measure, be sure to restore the $engine->currentFrames array even if the Lua code throws an exception. Change-Id: I1dc8602d63af75424f267c42a3743fabbc1827f7 |
||
---|---|---|
.. | ||
CommonTest.php | ||
CommonTests-data-fail1.lua | ||
CommonTests-data-fail2.lua | ||
CommonTests-data-fail3.lua | ||
CommonTests-data-fail4.lua | ||
CommonTests-data-fail5.lua | ||
CommonTests-data.lua | ||
CommonTests.lua | ||
LuaDataProvider.php | ||
LuaEngineTestBase.php | ||
LuaEnvironmentComparisonTest.php | ||
LuaInterpreterTest.php | ||
luaParserTests.txt | ||
MessageLibraryTest.php | ||
MessageLibraryTests.lua | ||
SiteLibraryTest.php | ||
SiteLibraryTests.lua | ||
TestFramework.lua | ||
TitleLibraryTest.php | ||
TitleLibraryTests.lua | ||
UriLibraryTest.php | ||
UriLibraryTests.lua | ||
UstringLibraryNormalizationTests.lua | ||
UstringLibraryTest.php | ||
UstringLibraryTests.lua |