X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=tests%2Fqunit%2Fdata%2Ftestrunner.js;h=743660a7753942f1b0f4667155bb0a8a138f6659;hb=d87022e544995507f0791f0fee77a48d4e182109;hp=d8972ab389b2ff24eecda681c75ea84c624f6639;hpb=f459a71f75941a83335d6d63ee12079a4b586793;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/qunit/data/testrunner.js b/tests/qunit/data/testrunner.js index d8972ab389..743660a775 100644 --- a/tests/qunit/data/testrunner.js +++ b/tests/qunit/data/testrunner.js @@ -1,5 +1,5 @@ /* global sinon */ -( function ( $, mw, QUnit ) { +( function () { 'use strict'; var addons, nested; @@ -258,6 +258,7 @@ // Check for incomplete animations/requests/etc and throw if there are any. if ( $.timers && $.timers.length !== 0 ) { timers = $.timers.length; + // eslint-disable-next-line jquery/no-each-util $.each( $.timers, function ( i, timer ) { var node = timer.elem; mw.log.warn( 'Unfinished animation #' + i + ' in ' + timer.queue + ' queue on ' + @@ -305,6 +306,8 @@ QUnit.whenPromisesComplete = function () { var altPromises = []; + // When we have ES6 support we'll be able to use Array.from here + // eslint-disable-next-line jquery/no-each-util $.each( arguments, function ( i, arg ) { var alt = $.Deferred(); altPromises.push( alt ); @@ -651,4 +654,4 @@ } ); } ); -}( jQuery, mediaWiki, QUnit ) ); +}() );