wiki.techinc.nl/tests/phpunit/includes/resourceloader
jdlrobson bc4e07b6f6 resourceloader: Implement modern module loading (2/2)
* Send 'module' and 'require' parameters to module closures.
  This depends on Ia925844cc22f143 being deployed one cycle earlier.
* Patch Moment and OOjs to ensure these libraries continue to expose
  their module as globals as well. AMD/UMD-compatible libraries
  only expose a global *OR* an export, not both. We need both
  for back-compat.
* Update pluralRuleParser to make use of module export to allow
  usage via require().

To test, check out the patch and run:
> mw.loader.load('moment');
> mw.loader.require('moment')()
> mw.loader.require('moment')('2011-04-01').fromNow()

Bug: T108655
Change-Id: Idbd054880ee70d659ec760aef8fcb38d0704a394
2016-04-13 15:43:41 +00:00
..
templates resourceloader: Add support for delivering templates 2014-10-29 19:31:16 +00:00
DerivativeResourceLoaderContextTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
MessageBlobStoreTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
ResourceLoaderFileModuleTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
ResourceLoaderImageModuleTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
ResourceLoaderImageTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
ResourceLoaderModuleTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
ResourceLoaderStartUpModuleTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
ResourceLoaderTest.php resourceloader: Implement modern module loading (2/2) 2016-04-13 15:43:41 +00:00
ResourceLoaderWikiModuleTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00