mediawiki-extensions-Scribunto/tests/engines/LuaCommon
Jackmcbarn d1030989bc Allow passing nils to mw.html
Rather than calling error() when nils get passed to mw.html methods,
either remove whatever it was that the nil would go to (if that makes
sense), or just do nothing. The seemingly inconsistent use of "not x" and
"x ~= nil" is to allow any falsey value where it wouldn't be ambiguous
(such as class names), but not where it could be (such as attribute values).

Bug: 62982
Change-Id: I76773abbb4394aa9bb8c8a08445e019cade3b2bf
2014-06-19 11:40:39 -04:00
..
CommonTest.php Keep modules' export tables inside Lua 2014-05-26 20:01:18 -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 Allow passing nils to mw.html 2014-06-19 11:40:39 -04: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 Keep modules' export tables inside Lua 2014-05-26 20:01:18 -04:00
LuaEngineTestBase.php Make LuaEngineTestBase compatible with phpunit 4.1 2014-05-08 07:11:14 +02: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 Keep modules' export tables inside Lua 2014-05-26 20:01:18 -04: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