@@ -336,8 +336,38 @@ grunt.initConfig({
336
336
} ) ;
337
337
338
338
grunt . registerTask ( "testswarm" , function ( commit , authToken ) {
339
- var testswarm = require ( "testswarm" ) ;
340
- var testBase = "http://swarm.jquery.org/git/jquery-ui/" + commit + "/" ;
339
+ var test ,
340
+ testswarm = require ( "testswarm" ) ,
341
+ testBase = "http://swarm.jquery.org/git/jquery-ui/" + commit + "/" ,
342
+ testUrls = [ ] ,
343
+ tests = {
344
+ "Accordion" : "accordion/accordion.html" ,
345
+ "Accordion_deprecated" : "accordion/accordion_deprecated.html" ,
346
+ "Autocomplete" : "autocomplete/autocomplete.html" ,
347
+ "Button" : "button/button.html" ,
348
+ "Core" : "core/core.html" ,
349
+ //"datepicker/datepicker.html",
350
+ //"dialog/dialog.html",
351
+ //"draggable/draggable.html",
352
+ //"droppable/droppable.html",
353
+ "Effects" : "effects/effects.html" ,
354
+ "Menu" : "menu/menu.html" ,
355
+ "Position" : "position/position.html" ,
356
+ "Position_deprecated" : "position/position_deprecated.html" ,
357
+ "Progressbar" : "progressbar/progressbar.html" ,
358
+ //"resizable/resizable.html",
359
+ //"selectable/selectable.html",
360
+ //"slider/slider.html",
361
+ //"sortable/sortable.html",
362
+ "Spinner" : "spinner/spinner.html" ,
363
+ "Tabs" : "tabs/tabs.html" ,
364
+ "Tabs_deprecated" : "tabs/tabs_deprecated.html" ,
365
+ "Tooltip" : "tooltip/tooltip.html" ,
366
+ "Widget" : "widget/widget.html"
367
+ } ;
368
+ for ( test in tests ) {
369
+ testUrls . push ( testBase + tests [ test ] ) ;
370
+ }
341
371
testswarm ( {
342
372
url : "http://swarm.jquery.org/api.php?" ,
343
373
pollInterval : 2000 ,
@@ -347,8 +377,8 @@ grunt.registerTask( "testswarm", function( commit, authToken ) {
347
377
authToken : authToken ,
348
378
jobName : 'jQuery UI commit #<a href="https://github.com/jquery/jquery-ui/commit/' + commit + '">' + commit + '</a>' ,
349
379
runMax : 1 ,
350
- "runNames[]" : [ "Accordion" , "Autocomplete" ] ,
351
- "runUrls[]" : [ testBase + "tests/unit/accordion/accordion.html" , testBase + "tests/unit/autocomplete/autocomplete.html" ] ,
380
+ "runNames[]" : Object . keys ( tests ) ,
381
+ "runUrls[]" : testUrls ,
352
382
browserSets : "popular"
353
383
} ) ;
354
384
} ) ;
0 commit comments