From bea74f2ae733f0c092a88038c7d054712fbf88ee Mon Sep 17 00:00:00 2001 From: Scott González Date: Tue, 2 Aug 2011 20:41:50 -0400 Subject: Tests: Added test suites to run individual widget tests against all supported jQuery versions. --- tests/unit/subsuite.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/unit/subsuite.js (limited to 'tests/unit/subsuite.js') 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; + }); + })); +}; + +}()); -- cgit v1.2.3