From: Derk-Jan Hartman Date: Thu, 23 Jun 2011 17:20:54 +0000 (+0000) Subject: Set window.wgMonthNamesShort before we start the tests, to be able to pass added... X-Git-Tag: 1.31.0-rc.0~29329 X-Git-Url: http://git.cyclocoop.org/%27.parametre_url%28%20%20%20generer_action_auteur%28%27charger_plugin%27%2C%20%27update_flux%27%29%2C%27update_flux%27%2C%20%27oui%27%29.%27?a=commitdiff_plain;h=aeb4ac304dca13dfa92d0cd484f30f535fd156e8;p=lhc%2Fweb%2Fwiklou.git Set window.wgMonthNamesShort before we start the tests, to be able to pass added-globals detection. Follow up to r90655 --- diff --git a/tests/qunit/suites/resources/jquery/jquery.tablesorter.test.js b/tests/qunit/suites/resources/jquery/jquery.tablesorter.test.js index e96898ca2a..29a94b5612 100644 --- a/tests/qunit/suites/resources/jquery/jquery.tablesorter.test.js +++ b/tests/qunit/suites/resources/jquery/jquery.tablesorter.test.js @@ -5,6 +5,7 @@ module( 'jquery.tablesorter.test.js' ); // setup hack mw.config.set('wgMonthNames', window.wgMonthNames = ['', 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']); mw.config.set('wgMonthNamesShort', window.wgMonthNamesShort = ['', 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']); +mw.config.set('wgDefaultDateFormat', window.wgDefaultDateFormat = 'dmy'); test( '-- Initial check', function() { expect(1);