X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fqunit%2Fsuites%2Fresources%2Fjquery%2Fjquery.tablesorter.parsers.test.js;h=148197726a418c3548bf05a6705ee828552f06f4;hb=fe94275c8fcfc248a5eae857dde7c5772d993ab5;hp=01589c3360b1c788b8a003b52c75d85743f276e0;hpb=587d08c5a626f8195def9f82ee83e17c85824db8;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/qunit/suites/resources/jquery/jquery.tablesorter.parsers.test.js b/tests/qunit/suites/resources/jquery/jquery.tablesorter.parsers.test.js index 01589c3360..148197726a 100644 --- a/tests/qunit/suites/resources/jquery/jquery.tablesorter.parsers.test.js +++ b/tests/qunit/suites/resources/jquery/jquery.tablesorter.parsers.test.js @@ -1,4 +1,4 @@ -( function ( $, mw ) { +( function () { /** * This module tests the input/output capabilities of the parsers of tablesorter. * It does not test actual sorting. @@ -62,7 +62,7 @@ } parser = $.tablesorter.getParser( parserId ); - $.each( data, function ( index, testcase ) { + data.forEach( function ( testcase ) { extractedR = parser.is( testcase[ 0 ] ); extractedF = parser.format( testcase[ 0 ] ); @@ -90,7 +90,7 @@ [ '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 ); @@ -264,4 +264,4 @@ // TODO add numbers sorting tests for T10115 with a different language -}( jQuery, mediaWiki ) ); +}() );