From c159f504890e4abf0bf27790718031e706095f51 Mon Sep 17 00:00:00 2001 From: Leo Koppelkamm Date: Fri, 15 Jul 2011 18:34:09 +0000 Subject: [PATCH] Fix r92253 --- .../mediawiki.page.ajaxCategories.js | 74 ------------------- 1 file changed, 74 deletions(-) delete mode 100644 tests/qunit/suites/resources/mediawiki.page/mediawiki.page.ajaxCategories.js diff --git a/tests/qunit/suites/resources/mediawiki.page/mediawiki.page.ajaxCategories.js b/tests/qunit/suites/resources/mediawiki.page/mediawiki.page.ajaxCategories.js deleted file mode 100644 index 7e26300136..0000000000 --- a/tests/qunit/suites/resources/mediawiki.page/mediawiki.page.ajaxCategories.js +++ /dev/null @@ -1,74 +0,0 @@ -(function( mw ) { - -module( 'mediawiki.page.ajaxCategories.js' ); -mw.config.set( 'wgNamespaceIds', {'category' : 14} ); -test( '-- Initial check', function() { - expect(1); - ok( mw.ajaxCategories, 'mw.ajaxCategories defined' ); -}); - -/** - * Create a category list like the one found below articles. - * @param {String[]} categories - * @return jQuery - */ -var listCreate = function( categories ) { - var $container = $(''), - $ul = $container.find('ul'); - $.each( categories, function(i, str) { - var $li = $('
  • '); - $li.text(str).appendTo($ul); - }); - - return $container; -}; -catList1 = ['Earth satellites', 'Space stations', 'astronauts']; - -test( 'Testing containsCat', function() { - expect(1); - $( 'body' ).append( listCreate(catList1) ); - mw.ajaxCategories.setup(); - var ret = mw.ajaxCategories.containsCat('Earth satellites') - - equal(ret, true); -}); - -})( mediaWiki ); -console.log('wtf0'); -(function( mw ) { - -console.log('wtf1'); -module( 'mediawiki.page.ajaxCategories.js' ); -mw.config.set( 'wgNamespaceIds', {'category' : 14} ); -test( '-- Initial check', function() { - expect(1); - ok( mw.ajaxCategories, 'mw.ajaxCategories defined' ); -}); - -/** - * Create a category list like the one found below articles. - * @param {String[]} categories - * @return jQuery - */ -var listCreate = function( categories ) { - var $container = $(''), - $ul = $container.find('ul'); - $.each( categories, function(i, str) { - var $li = $('
  • '); - $li.text(str).appendTo($ul); - }); - - return $container; -}; -catList1 = ['Earth satellites', 'Space stations', 'astronauts']; - -test( 'Testing containsCat', function() { - expect(1); - $( 'body' ).append( listCreate(catList1) ); - mw.ajaxCategories.setup(); - var ret = mw.ajaxCategories.containsCat('Earth satellites') - - equal(ret, true); -}); - -})( mediaWiki ); \ No newline at end of file -- 2.20.1