diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-07-28 14:50:06 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-07-28 14:50:06 -0400 |
commit | 61caba7803d1c3885a8e2a6cd3c1e8b723e8beee (patch) | |
tree | 82b43faf48dc8a61deab607a7d40aec786ae27b3 /tests/unit/all.html | |
parent | cec60ab3c317bf920eb2ab665adf958357db29ce (diff) | |
download | jquery-ui-61caba7803d1c3885a8e2a6cd3c1e8b723e8beee.tar.gz jquery-ui-61caba7803d1c3885a8e2a6cd3c1e8b723e8beee.zip |
Tests: Fixed param parsing for compound test suites.
Diffstat (limited to 'tests/unit/all.html')
-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 ); |