diff options
Diffstat (limited to 'tests/unit/subsuite.js')
-rw-r--r-- | tests/unit/subsuite.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/unit/subsuite.js b/tests/unit/subsuite.js new file mode 100644 index 000000000..90dc550f1 --- /dev/null +++ b/tests/unit/subsuite.js @@ -0,0 +1,21 @@ +(function() { + +var versions = [ "1.6", "1.6.1", "1.6.2", "git" ]; + +var additionalTests = { + accordion: [ "accordion_deprecated.html" ], + position: [ "position_deprecated.html" ], + tabs: [ "tabs_deprecated.html" ] +}; + +window.testAllVersions = function( widget ) { + QUnit.testSuites( $.map( + [ widget + ".html" ].concat( additionalTests[ widget ] || [] ), + function( test ) { + return $.map( versions, function( version ) { + return test + "?jquery=" + version; + }); + })); +}; + +}()); |