-( function ( $, mw ) {
+( function () {
/**
* This module tests the input/output capabilities of the parsers of tablesorter.
* It does not test actual sorting.
}
parser = $.tablesorter.getParser( parserId );
- $.each( data, function ( index, testcase ) {
+ data.forEach( function ( testcase ) {
extractedR = parser.is( testcase[ 0 ] );
extractedF = parser.format( testcase[ 0 ] );
[ '1', false, 1, 'A super malformed IP Address' ],
[ 'Just text', false, -Infinity, 'A line with just text' ],
[ '45.238.27.109Postfix', false, 45238027109, 'An IP address with a connected postfix' ],
- [ '45.238.27.109 postfix', false, 45238027109, 'An IP address with a seperated postfix' ]
+ [ '45.238.27.109 postfix', false, 45238027109, 'An IP address with a separated postfix' ]
];
parserTest( 'IPv4', 'IPAddress', ipv4 );
// TODO add numbers sorting tests for T10115 with a different language
-}( jQuery, mediaWiki ) );
+}() );