diff --git a/build/tasks/testswarm.js b/build/tasks/testswarm.js index c0a5f351f..118887ca6 100644 --- a/build/tasks/testswarm.js +++ b/build/tasks/testswarm.js @@ -62,14 +62,12 @@ grunt.registerTask( "testswarm", function( commit, configFile ) { }); grunt.registerTask( "testswarm-multi-jquery", function( commit, configFile ) { - var test, - allTests = {}; - for ( test in tests ) { - allTests[ test + "-1.6.3" ] = tests[ test ] + "?nojshint=true&jquery=1.6.3"; - } - for ( test in tests ) { - allTests[ test + "-1.7.2" ] = tests[ test ] + "?nojshint=true&jquery=1.7.2"; - } + var allTests = {}; + "1.6 1.6.1 1.6.3 1.6.4 1.7 1.7.1 1.7.2 git".split(" ").forEach(function( version ) { + for ( var test in tests ) { + allTests[ test + "-" + version ] = tests[ test ] + "?nojshint=true&jquery=" + version; + } + }); submit( commit, allTests, configFile, this.async() ); });