mw.loader: Minor documentation and test improvements
authorTimo Tijhof <krinklemail@gmail.com>
Thu, 28 Jan 2016 22:23:36 +0000 (23:23 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Thu, 28 Jan 2016 22:29:16 +0000 (23:29 +0100)
commita133085828d78ea716bcd19aa792e2e8fb7a0e32
tree76226b749157f989bb0d8a5aaeb96c3ad66daab5
parentdf30bae316cdfdb8f9786fe9cc7dd77516c84f2d
mw.loader: Minor documentation and test improvements

Update outdated mw.loader.implement documentation

* Not all arguments are required.
* Even 'script' is no longer required. Defaults to 'null' in the registry.
  And supported by execute().
* Add a test for implement() with a name only and no resources.

Bug: T112455
Change-Id: I5ebd8542ae1a4b2f14ffaff560b98b4c1c2adb23
resources/src/mediawiki/mediawiki.js
tests/qunit/suites/resources/mediawiki/mediawiki.test.js