]> source.dussan.org Git - jquery-ui.git/commitdiff
Tests: Fixed param parsing for compound test suites.
authorScott González <scott.gonzalez@gmail.com>
Thu, 28 Jul 2011 18:50:06 +0000 (14:50 -0400)
committerScott González <scott.gonzalez@gmail.com>
Thu, 28 Jul 2011 18:50:06 +0000 (14:50 -0400)
tests/unit/all.html

index cf8820c5e9fcd2c9ed6a1fd0910a0f3e5629960a..284885dbc6b0e34989f72e8133661ce13c2691eb 100644 (file)
@@ -13,7 +13,7 @@
        <script>
        (function() {
 
-       var params = "",
+       var params = [],
                suites = [
                        "accordion/accordion.html",
                        "accordion/accordion_deprecated.html",
                ];
 
        $.each( QUnit.urlParams, function( key, value ) {
-               params += encodeURIComponent( key ) + "=" + encodeURIComponent( value );
+               if ( key === "filter" ) {
+                       return;
+               }
+               params.push( encodeURIComponent( key ) + "=" + encodeURIComponent( value ) );
        });
-       if ( params ) {
+       if ( params.length ) {
+               params = "?" + params.join( "&" );
                suites = $.map( suites, function( suite ) {
-                       return suite + "?" + params;
+                       return suite + params;
                });
        }
        QUnit.testSuites( suites );