mediawiki-extensions-Scribunto/tests/engines/LuaCommon
Brad Jorsch b6ea64f132 Make mw.getCurrentFrame() work in console, add frame:newChild()
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
2013-03-12 14:42:36 +11:00
..
CommonTest.php Make mw.getCurrentFrame() work in console, add frame:newChild() 2013-03-12 14:42:36 +11:00
CommonTests-data-fail1.lua Add mw.loadData, for static data loading 2013-02-21 23:03:53 +00:00
CommonTests-data-fail2.lua Add mw.loadData, for static data loading 2013-02-21 23:03:53 +00:00
CommonTests-data-fail3.lua Add mw.loadData, for static data loading 2013-02-21 23:03:53 +00:00
CommonTests-data-fail4.lua Add mw.loadData, for static data loading 2013-02-21 23:03:53 +00:00
CommonTests-data-fail5.lua Add mw.loadData, for static data loading 2013-02-21 23:03:53 +00:00
CommonTests-data.lua Add mw.loadData, for static data loading 2013-02-21 23:03:53 +00:00
CommonTests.lua Add mw.loadData, for static data loading 2013-02-21 23:03:53 +00:00
LuaDataProvider.php Make Lua engine tests modular 2013-02-06 09:10:57 -05:00
LuaEngineTestBase.php Fix unit test engine↔parser assignment 2013-03-07 01:42:19 +00:00
LuaEnvironmentComparisonTest.php Fix unit test engine↔parser assignment 2013-03-07 01:42:19 +00:00
LuaInterpreterTest.php Fix NaN unit test in phpunit 3.7.14 2013-02-25 16:56:15 -08:00
luaParserTests.txt Clean up lualibs 2013-02-28 18:39:16 -08:00
MessageLibraryTest.php Add mw.message library 2013-02-26 22:20:04 -08:00
MessageLibraryTests.lua Add mw.message library 2013-02-26 22:20:04 -08:00
SiteLibraryTest.php Add mw.site library 2013-02-06 09:20:59 -05:00
SiteLibraryTests.lua Add mw.site library 2013-02-06 09:20:59 -05:00
TestFramework.lua Add mw.title library 2013-02-28 11:57:11 -08:00
TitleLibraryTest.php mw.title:getContent() should record in templatelinks 2013-03-07 13:02:41 -05:00
TitleLibraryTests.lua Fix Title library breaking other unit tests 2013-03-06 20:39:08 -05:00
UriLibraryTest.php Add mw.uri library 2013-02-07 13:31:24 -05:00
UriLibraryTests.lua Fix mw.uri error with empty fragment or query string 2013-03-05 01:44:10 +00:00
UstringLibraryNormalizationTests.lua Lua ustring implementation 2013-02-12 14:26:29 -05:00
UstringLibraryTest.php Lua ustring implementation 2013-02-12 14:26:29 -05:00
UstringLibraryTests.lua Fix ustring errors 2013-03-05 12:22:15 -05:00