diff options
Diffstat (limited to 'tests/phpunit/includes/resourceloader/ResourceLoaderStartUpModuleTest.php')
-rw-r--r-- | tests/phpunit/includes/resourceloader/ResourceLoaderStartUpModuleTest.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/phpunit/includes/resourceloader/ResourceLoaderStartUpModuleTest.php b/tests/phpunit/includes/resourceloader/ResourceLoaderStartUpModuleTest.php index 927020e68782..c36fbae3ccbc 100644 --- a/tests/phpunit/includes/resourceloader/ResourceLoaderStartUpModuleTest.php +++ b/tests/phpunit/includes/resourceloader/ResourceLoaderStartUpModuleTest.php @@ -468,6 +468,32 @@ mw.loader.register([ ]);', ] ], [ [ + 'msg' => 'noscript group omitted (T291735)', + 'modules' => [ + 'test.not-noscript' => [ + 'class' => ResourceLoaderTestModule::class, + ], + 'test.noscript' => [ + 'class' => ResourceLoaderTestModule::class, + 'group' => 'noscript', + ], + 'test.also-noscript' => [ + 'class' => ResourceLoaderTestModule::class, + 'group' => 'noscript', + ], + ], + 'out' => ' +mw.loader.addSource({ + "local": "/w/load.php" +}); +mw.loader.register([ + [ + "test.not-noscript", + "" + ] +]);', + ] ], + [ [ // This may seem like an edge case, but a plain MediaWiki core install // with a few extensions installed is likely far more complex than this // even, not to mention an install like Wikipedia. |