diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-08-02 20:41:50 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-08-02 20:41:50 -0400 |
commit | bea74f2ae733f0c092a88038c7d054712fbf88ee (patch) | |
tree | 0dbc2db5c9337b3e927d1f9f7a20a2c16de18a91 /tests/unit/subsuite.js | |
parent | e15c32d06763afd2376c61642397e7fc98338958 (diff) | |
download | jquery-ui-bea74f2ae733f0c092a88038c7d054712fbf88ee.tar.gz jquery-ui-bea74f2ae733f0c092a88038c7d054712fbf88ee.zip |
Tests: Added test suites to run individual widget tests against all supported jQuery versions.
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; + }); + })); +}; + +}()); |