Index: trunk/phase3/tests/qunit/suites/resources/jquery/jquery.tablesorter.test.js |
— | — | @@ -3,9 +3,9 @@ |
4 | 4 | module( 'jquery.tablesorter' ); |
5 | 5 | |
6 | 6 | // setup hack |
7 | | -mw.config.set( 'wgMonthNames', window.wgMonthNames = ['', 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']); |
8 | | -mw.config.set( 'wgMonthNamesShort', window.wgMonthNamesShort = ['', 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']); |
9 | | -mw.config.set( 'wgDefaultDateFormat', window.wgDefaultDateFormat = 'dmy' ); |
| 7 | +mw.config.set( 'wgMonthNames', ['', 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']); |
| 8 | +mw.config.set( 'wgMonthNamesShort', ['', 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']); |
| 9 | +mw.config.set( 'wgDefaultDateFormat', 'dmy' ); |
10 | 10 | |
11 | 11 | test( '-- Initial check', function() { |
12 | 12 | expect(1); |
— | — | @@ -181,7 +181,7 @@ |
182 | 182 | ], |
183 | 183 | function( $table ) { |
184 | 184 | // @fixme reset it at end or change module to allow us to override it |
185 | | - mw.config.set( 'wgDefaultDateFormat', window.wgDefaultDateFormat = 'dmy' ); |
| 185 | + mw.config.set( 'wgDefaultDateFormat', 'dmy' ); |
186 | 186 | $table.tablesorter(); |
187 | 187 | $table.find( '.headerSort:eq(0)' ).click(); |
188 | 188 | } |
— | — | @@ -207,7 +207,7 @@ |
208 | 208 | ], |
209 | 209 | function( $table ) { |
210 | 210 | // @fixme reset it at end or change module to allow us to override it |
211 | | - mw.config.set( 'wgDefaultDateFormat', window.wgDefaultDateFormat = 'mdy' ); |
| 211 | + mw.config.set( 'wgDefaultDateFormat', 'mdy' ); |
212 | 212 | $table.tablesorter(); |
213 | 213 | $table.find( '.headerSort:eq(0)' ).click(); |
214 | 214 | } |
— | — | @@ -346,7 +346,7 @@ |
347 | 347 | complexMDYDates, |
348 | 348 | complexMDYSorted, |
349 | 349 | function( $table ) { |
350 | | - mw.config.set( 'wgDefaultDateFormat', window.wgDefaultDateFormat = 'mdy' ); |
| 350 | + mw.config.set( 'wgDefaultDateFormat', 'mdy' ); |
351 | 351 | $table.tablesorter(); |
352 | 352 | $table.find( '.headerSort:eq(0)' ).click(); |
353 | 353 | } |