Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -1579,9 +1579,9 @@ |
1580 | 1580 | loader request or generating HTML output. |
1581 | 1581 | &$resourceLoader: ResourceLoader object |
1582 | 1582 | |
1583 | | -'ResourceLoaderTestModules': let you add new javascript testing modules. This is called after the addition of 'qunit' and MediaWiki testing ressources. |
1584 | | -&testModules: array of javascript testing modules. 'qunit' is feed using tests/qunit/QUnitTestResources.php. |
1585 | | -&RessourceLoader object |
| 1583 | +'ResourceLoaderTestModules': let you add new JavaScript testing modules. This is called after the addition of 'qunit' and MediaWiki testing resources. |
| 1584 | +&testModules: array of JavaScript testing modules. 'qunit' is feed using tests/qunit/QUnitTestResources.php. |
| 1585 | +&ResourceLoader object |
1586 | 1586 | To add a new qunit module named 'myext.tests': |
1587 | 1587 | testModules['qunit']['myext.tests'] = array( |
1588 | 1588 | 'script' => 'extension/myext/tests.js', |