Index: branches/JSTesting/includes/resourceloader/ResourceLoader.php |
— | — | @@ -200,6 +200,11 @@ |
201 | 201 | // Register core modules |
202 | 202 | $this->register( include( "$IP/resources/Resources.php" ) ); |
203 | 203 | |
| 204 | + // Register test Modules |
| 205 | + // TODO: figures out how to register them conditionally and not |
| 206 | + // for every page requests. |
| 207 | + $this->registerTestModules(); |
| 208 | + |
204 | 209 | // Register extension modules |
205 | 210 | wfRunHooks( 'ResourceLoaderRegisterModules', array( &$this ) ); |
206 | 211 | $this->register( $wgResourceModules ); |
Index: branches/JSTesting/includes/specials/SpecialJavaScriptTest.php |
— | — | @@ -29,8 +29,6 @@ |
30 | 30 | return; |
31 | 31 | } |
32 | 32 | |
33 | | - $out->getResourceLoader()->registerTestModules(); |
34 | | - |
35 | 33 | $out->addModules( 'mediawiki.special.javaScriptTest' ); |
36 | 34 | |
37 | 35 | // Determine framework |