aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/all.html
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-07-28 07:34:31 -0400
committerScott González <scott.gonzalez@gmail.com>2011-07-28 07:34:31 -0400
commitd92b61e865df5d21360ff26a34ddf793f116393c (patch)
tree4a37320d71b6cc767931c1771f04686bbe73b725 /tests/unit/all.html
parent0ba493d3b4f9d6da35cadc499e9f7ebb6adb31b3 (diff)
downloadjquery-ui-d92b61e865df5d21360ff26a34ddf793f116393c.tar.gz
jquery-ui-d92b61e865df5d21360ff26a34ddf793f116393c.zip
Tests: Added ability to run tests suites against different versions of jQuery core.
Diffstat (limited to 'tests/unit/all.html')
-rw-r--r--tests/unit/all.html64
1 files changed, 40 insertions, 24 deletions
diff --git a/tests/unit/all.html b/tests/unit/all.html
index a36c9e004..cf8820c5e 100644
--- a/tests/unit/all.html
+++ b/tests/unit/all.html
@@ -11,30 +11,46 @@
<script src="testsuites.js"></script>
<script>
- QUnit.testSuites([
- "accordion/accordion.html",
- "accordion/accordion_deprecated.html",
- "autocomplete/autocomplete.html",
- "button/button.html",
- "core/core.html",
- "datepicker/datepicker.html",
- "dialog/dialog.html",
- //"draggable/draggable.html",
- //"droppable/droppable.html",
- "effects/effects.html",
- "menu/menu.html",
- "position/position.html",
- "progressbar/progressbar.html",
- //"resizable/resizable.html",
- //"selectable/selectable.html",
- "slider/slider.html",
- //"sortable/sortable.html",
- "spinner/spinner.html",
- "tabs/tabs.html",
- "tabs/tabs_deprecated.html",
- "tooltip/tooltip.html",
- "widget/widget.html"
- ]);
+ (function() {
+
+ var params = "",
+ suites = [
+ "accordion/accordion.html",
+ "accordion/accordion_deprecated.html",
+ "autocomplete/autocomplete.html",
+ "button/button.html",
+ "core/core.html",
+ "datepicker/datepicker.html",
+ "dialog/dialog.html",
+ //"draggable/draggable.html",
+ //"droppable/droppable.html",
+ "effects/effects.html",
+ "menu/menu.html",
+ "position/position.html",
+ "position/position_deprecated.html",
+ "progressbar/progressbar.html",
+ //"resizable/resizable.html",
+ //"selectable/selectable.html",
+ "slider/slider.html",
+ //"sortable/sortable.html",
+ "spinner/spinner.html",
+ "tabs/tabs.html",
+ "tabs/tabs_deprecated.html",
+ "tooltip/tooltip.html",
+ "widget/widget.html"
+ ];
+
+ $.each( QUnit.urlParams, function( key, value ) {
+ params += encodeURIComponent( key ) + "=" + encodeURIComponent( value );
+ });
+ if ( params ) {
+ suites = $.map( suites, function( suite ) {
+ return suite + "?" + params;
+ });
+ }
+ QUnit.testSuites( suites );
+
+ }());
</script>
</head>
<body>