@@ -34,12 +34,14 @@ var versions = {
34
34
"Widget" : "widget/widget.html"
35
35
} ;
36
36
37
- function submit ( commit , runs , configFile , extra , done ) {
37
+ function submit ( commit , runs , configFile , extra , browserSets , done ) {
38
38
var testName ,
39
39
testswarm = require ( "testswarm" ) ,
40
40
config = grunt . file . readJSON ( configFile ) . jqueryui ,
41
41
commitUrl = "https://github.com/jquery/jquery-ui/commit/" + commit ;
42
42
43
+ browserSets = browserSets || config . browserSets ;
44
+
43
45
if ( extra ) {
44
46
extra = " (" + extra + ")" ;
45
47
}
@@ -60,7 +62,7 @@ function submit( commit, runs, configFile, extra, done ) {
60
62
name : "Commit <a href='" + commitUrl + "'>" + commit . substr ( 0 , 10 ) + "</a>" + extra ,
61
63
runs : runs ,
62
64
runMax : config . runMax ,
63
- browserSets : config . browserSets ,
65
+ browserSets : browserSets ,
64
66
timeout : 1000 * 60 * 30
65
67
} , function ( error , passed ) {
66
68
if ( error ) {
@@ -70,23 +72,23 @@ function submit( commit, runs, configFile, extra, done ) {
70
72
} ) ;
71
73
}
72
74
73
- grunt . registerTask ( "testswarm" , function ( commit , configFile ) {
75
+ grunt . registerTask ( "testswarm" , function ( commit , configFile , browserSets ) {
74
76
var test ,
75
77
latestTests = { } ;
76
78
for ( test in tests ) {
77
79
latestTests [ test ] = tests [ test ] + "?nojshint=true" ;
78
80
}
79
- submit ( commit , latestTests , configFile , "" , this . async ( ) ) ;
81
+ submit ( commit , latestTests , configFile , "" , browserSets , this . async ( ) ) ;
80
82
} ) ;
81
83
82
- grunt . registerTask ( "testswarm-multi-jquery" , function ( commit , configFile , minor ) {
84
+ grunt . registerTask ( "testswarm-multi-jquery" , function ( commit , configFile , minor , browserSets ) {
83
85
var allTests = { } ;
84
86
versions [ minor ] . split ( " " ) . forEach ( function ( version ) {
85
87
for ( var test in tests ) {
86
88
allTests [ test + "-" + version ] = tests [ test ] + "?nojshint=true&jquery=" + version ;
87
89
}
88
90
} ) ;
89
- submit ( commit , allTests , configFile , "core " + minor , this . async ( ) ) ;
91
+ submit ( commit , allTests , configFile , "core " + minor , browserSets , this . async ( ) ) ;
90
92
} ) ;
91
93
92
94
} ;
0 commit comments