Use QUnitTestModule instead of deprecated ResourceLoaderTestModules
This increases the compatibility requirement of this extension to MediaWiki 1.33+ Bug: T232875 Change-Id: I50e652697c9d6e2886d457885b1d7b04a45f376f
This commit is contained in:
committed by
Reedy
parent
3e1b29588a
commit
18552a7142
@@ -165,21 +165,6 @@ class UniversalLanguageSelectorHooks {
|
||||
$out->addModules( 'ext.uls.setlang' );
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array &$testModules array of javascript testing modules. 'qunit' is fed
|
||||
* using tests/qunit/QUnitTestResources.php.
|
||||
* @param ResourceLoader $resourceLoader
|
||||
* Hook: ResourceLoaderTestModules
|
||||
*/
|
||||
public static function addTestModules( array &$testModules, ResourceLoader $resourceLoader ) {
|
||||
$testModules['qunit']['ext.uls.tests'] = [
|
||||
'scripts' => [ 'tests/qunit/ext.uls.tests.js' ],
|
||||
'dependencies' => [ 'jquery.uls', 'ext.uls.init', 'ext.uls.preferences' ],
|
||||
'localBasePath' => dirname( __DIR__ ),
|
||||
'remoteExtPath' => 'UniversalLanguageSelector',
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Add some tabs for navigation for users who do not use Ajax interface.
|
||||
* Hook: PersonalUrls
|
||||
|
||||
Reference in New Issue
Block a user