|
1 | 1 | /*jshint node: true */ |
2 | 2 | module.exports = function( grunt ) { |
3 | 3 |
|
4 | | -var tests = { |
5 | | - "Accordion": "accordion/accordion.html", |
6 | | - "Accordion_deprecated": "accordion/accordion_deprecated.html", |
7 | | - "Autocomplete": "autocomplete/autocomplete.html", |
8 | | - "Button": "button/button.html", |
9 | | - "Core": "core/core.html", |
10 | | - //"datepicker/datepicker.html", |
11 | | - //"dialog/dialog.html", |
12 | | - //"draggable/draggable.html", |
13 | | - //"droppable/droppable.html", |
14 | | - "Effects": "effects/effects.html", |
15 | | - "Menu": "menu/menu.html", |
16 | | - "Position": "position/position.html", |
17 | | - "Position_deprecated": "position/position_deprecated.html", |
18 | | - "Progressbar": "progressbar/progressbar.html", |
19 | | - //"resizable/resizable.html", |
20 | | - //"selectable/selectable.html", |
21 | | - //"slider/slider.html", |
22 | | - //"sortable/sortable.html", |
23 | | - "Spinner": "spinner/spinner.html", |
24 | | - "Tabs": "tabs/tabs.html", |
25 | | - "Tabs_deprecated": "tabs/tabs_deprecated.html", |
26 | | - "Tooltip": "tooltip/tooltip.html", |
27 | | - "Widget": "widget/widget.html" |
28 | | -}; |
| 4 | +var versions = { |
| 5 | + "git": "git", |
| 6 | + "1.7": "1.7 1.7.1 1.7.2", |
| 7 | + "1.6": "1.6 1.6.1 1.6.2 1.6.3 1.6.4" |
| 8 | + }, |
| 9 | + tests = { |
| 10 | + "Accordion": "accordion/accordion.html", |
| 11 | + "Accordion_deprecated": "accordion/accordion_deprecated.html", |
| 12 | + "Autocomplete": "autocomplete/autocomplete.html", |
| 13 | + "Button": "button/button.html", |
| 14 | + "Core": "core/core.html", |
| 15 | + //"datepicker/datepicker.html", |
| 16 | + //"dialog/dialog.html", |
| 17 | + //"draggable/draggable.html", |
| 18 | + //"droppable/droppable.html", |
| 19 | + "Effects": "effects/effects.html", |
| 20 | + "Menu": "menu/menu.html", |
| 21 | + "Position": "position/position.html", |
| 22 | + "Position_deprecated": "position/position_deprecated.html", |
| 23 | + "Progressbar": "progressbar/progressbar.html", |
| 24 | + //"resizable/resizable.html", |
| 25 | + //"selectable/selectable.html", |
| 26 | + //"slider/slider.html", |
| 27 | + //"sortable/sortable.html", |
| 28 | + "Spinner": "spinner/spinner.html", |
| 29 | + "Tabs": "tabs/tabs.html", |
| 30 | + "Tabs_deprecated": "tabs/tabs_deprecated.html", |
| 31 | + "Tooltip": "tooltip/tooltip.html", |
| 32 | + "Widget": "widget/widget.html" |
| 33 | + }; |
29 | 34 |
|
30 | 35 | function submit( commit, tests, configFile, done ) { |
31 | 36 | var test, |
@@ -61,9 +66,9 @@ grunt.registerTask( "testswarm", function( commit, configFile ) { |
61 | 66 | submit( commit, latestTests, configFile, this.async() ); |
62 | 67 | }); |
63 | 68 |
|
64 | | -grunt.registerTask( "testswarm-multi-jquery", function( commit, configFile ) { |
| 69 | +grunt.registerTask( "testswarm-multi-jquery", function( commit, configFile, minor ) { |
65 | 70 | var allTests = {}; |
66 | | - "1.6 1.6.1 1.6.2 1.6.3 1.6.4 1.7 1.7.1 1.7.2 git".split(" ").forEach(function( version ) { |
| 71 | + versions[ minor ].split(" ").forEach(function( version ) { |
67 | 72 | for ( var test in tests ) { |
68 | 73 | allTests[ test + "-" + version ] = tests[ test ] + "?nojshint=true&jquery=" + version; |
69 | 74 | } |
|
0 commit comments