From 2e44b49a2db3026050b136de9b00f749dd3ff939 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Fri, 25 Apr 2014 06:26:49 +0200 Subject: Update to MediaWiki 1.22.6 --- .../mediawiki.special.recentchanges.test.js | 63 ---------------------- 1 file changed, 63 deletions(-) delete mode 100644 tests/qunit/suites/resources/mediawiki.special/mediawiki.special.recentchanges.test.js (limited to 'tests/qunit/suites/resources/mediawiki.special/mediawiki.special.recentchanges.test.js') diff --git a/tests/qunit/suites/resources/mediawiki.special/mediawiki.special.recentchanges.test.js b/tests/qunit/suites/resources/mediawiki.special/mediawiki.special.recentchanges.test.js deleted file mode 100644 index ee854aef..00000000 --- a/tests/qunit/suites/resources/mediawiki.special/mediawiki.special.recentchanges.test.js +++ /dev/null @@ -1,63 +0,0 @@ -( function ( mw, $ ) { - QUnit.module( 'mediawiki.special.recentchanges', QUnit.newMwEnvironment() ); - - // TODO: verify checkboxes == [ 'nsassociated', 'nsinvert' ] - - QUnit.test( '"all" namespace disable checkboxes', 8, function ( assert ) { - var selectHtml, $env, $options; - - // from Special:Recentchanges - selectHtml = '' - + '' - + '' - + '' - + '' - + '' - + ''; - - $env = $( '
' ).html( selectHtml ).appendTo( 'body' ); - - // TODO abstract the double strictEquals - - // At first checkboxes are enabled - assert.strictEqual( $( '#nsinvert' ).prop( 'disabled' ), false ); - assert.strictEqual( $( '#nsassociated' ).prop( 'disabled' ), false ); - - // Initiate the recentchanges module - mw.special.recentchanges.init(); - - // By default - assert.strictEqual( $( '#nsinvert' ).prop( 'disabled' ), true ); - assert.strictEqual( $( '#nsassociated' ).prop( 'disabled' ), true ); - - // select second option... - $options = $( '#namespace' ).find( 'option' ); - $options.eq( 0 ).removeProp( 'selected' ); - $options.eq( 1 ).prop( 'selected', true ); - $( '#namespace' ).change(); - - // ... and checkboxes should be enabled again - assert.strictEqual( $( '#nsinvert' ).prop( 'disabled' ), false ); - assert.strictEqual( $( '#nsassociated' ).prop( 'disabled' ), false ); - - // select first option ( 'all' namespace)... - $options.eq( 1 ).removeProp( 'selected' ); - $options.eq( 0 ).prop( 'selected', true ); - $( '#namespace' ).change(); - - // ... and checkboxes should now be disabled - assert.strictEqual( $( '#nsinvert' ).prop( 'disabled' ), true ); - assert.strictEqual( $( '#nsassociated' ).prop( 'disabled' ), true ); - - // DOM cleanup - $env.remove(); - } ); -}( mediaWiki, jQuery ) ); -- cgit v1.2.2