'resources/src/jquery.ui-themes/vector/jquery.ui.theme.css',
),
),
- 'dependencies' => 'jquery',
'group' => 'jquery.ui',
),
'jquery.ui.widget' => array(
// Effects
'jquery.effects.core' => array(
'scripts' => 'resources/lib/jquery.effects/jquery.effects.core.js',
- 'dependencies' => 'jquery',
'group' => 'jquery.ui',
),
'jquery.effects.blind' => array(
$this->assertTrue( strpos( $cssText, '@media' ) === false, 'Stylesheets should not both specify "media" and contain @media' );
}
+ public function testDependencies() {
+ $data = self::getAllModules();
+ $illegalDeps = array( 'jquery', 'mediawiki' );
+
+ foreach ( $data['modules'] as $moduleName => $module ) {
+ foreach ( $illegalDeps as $illegalDep ) {
+ $this->assertNotContains(
+ $illegalDep,
+ $module->getDependencies(),
+ "Module '$moduleName' must not depend on '$illegalDep'"
+ );
+ }
+ }
+ }
+
/**
* Get all registered modules from ResouceLoader.
*/