mediawiki-extensions-Scribunto/tests/engines/LuaCommon
Brad Jorsch 29452c9bef mw.language: Fix exceptions and add tests
Various methods are throwing exceptions when passed invalid language
codes. Those need to be caught.

And we should really add unit tests for the mw.language library, too.
Doing so exposed another bug (in lang:gender), which is also fixed here.

Bug: 62242
Change-Id: Ib7d257cbb1ce179c510273526910d6ac5f3cac5d
2014-03-09 02:56:06 +00:00
..
CommonTest.php (bug 41769) Add frame:callParserFunction() and frame::extensionTag() 2013-03-18 13:46:26 -04: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
HtmlLibraryTest.php Add mw.html to Scribunto 2014-01-03 00:04:34 +01:00
HtmlLibraryTests.lua Validate the type of the tagName given to mw.html.create 2014-01-31 02:08:11 +01:00
LanguageLibraryTest.php mw.language: Fix exceptions and add tests 2014-03-09 02:56:06 +00:00
LanguageLibraryTests.lua mw.language: Fix exceptions and add tests 2014-03-09 02:56:06 +00:00
LuaDataProvider.php Make Lua engine tests modular 2013-02-06 09:10:57 -05:00
LuaEngineTestBase.php Allow changing the title used by Scribunto_LuaEngineTestBase 2014-01-16 17:00:30 +01:00
LuaEnvironmentComparisonTest.php Update phpunit @group annotations 2013-11-01 11:56:24 -04:00
LuaInterpreterTest.php Fix NaN unit test in phpunit 3.7.14 2013-02-25 16:56:15 -08:00
luaParserTests.txt Use a child frame in frame:expandTemplate 2014-01-30 22:47:31 +00:00
MessageLibraryTest.php Add mw.message library 2013-02-26 22:20:04 -08:00
MessageLibraryTests.lua Remove message formats other than plain 2014-02-03 15:29:39 -05:00
SiteLibraryTest.php Add mw.site library 2013-02-06 09:20:59 -05:00
SiteLibraryTests.lua Properly handle spaces/underscores in mw.site.namespaces 2013-10-31 11:09:16 -04:00
TestFramework.lua Add mw.title library 2013-02-28 11:57:11 -08:00
TextLibraryTest.php Add text module 2013-03-20 10:10:15 -04:00
TextLibraryTests.lua Add text module 2013-03-20 10:10:15 -04:00
TitleLibraryTest.php Add protectionLevels variable to mw.title output 2014-01-15 14:53:18 -05:00
TitleLibraryTests.lua Add protectionLevels variable to mw.title output 2014-01-15 14:53:18 -05:00
UriLibraryTest.php Add mw.uri library 2013-02-07 13:31:24 -05:00
UriLibraryTests.lua Make pairs() work with various library objects 2013-04-02 17:23:42 +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 PHP implementation of mw.ustring %W 2014-02-10 00:45:46 +00:00