diff options
-rw-r--r-- | tests/unit/all.html | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/unit/all.html b/tests/unit/all.html index cf8820c5e..284885dbc 100644 --- a/tests/unit/all.html +++ b/tests/unit/all.html @@ -13,7 +13,7 @@ <script> (function() { - var params = "", + var params = [], suites = [ "accordion/accordion.html", "accordion/accordion_deprecated.html", @@ -41,11 +41,15 @@ ]; $.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 ); |