],
'mediawiki.special.recentchanges' => [
'scripts' => 'resources/src/mediawiki.special/mediawiki.special.recentchanges.js',
- 'dependencies' => 'mediawiki.special',
'position' => 'top',
],
'mediawiki.special.search' => [
// TODO: verify checkboxes == [ 'nsassociated', 'nsinvert' ]
QUnit.test( '"all" namespace disable checkboxes', 8, function ( assert ) {
- var selectHtml, $env, $options;
+ var selectHtml, $env, $options,
+ rc = require( 'mediawiki.special.recentchanges' );
// from Special:Recentchanges
selectHtml = '<select id="namespace" name="namespace" class="namespaceselector">'
assert.strictEqual( $( '#nsassociated' ).prop( 'disabled' ), false );
// Initiate the recentchanges module
- mw.special.recentchanges.init();
+ rc.init();
// By default
assert.strictEqual( $( '#nsinvert' ).prop( 'disabled' ), true );