Skip to content

Commit 61caba7

Browse files
committed
Tests: Fixed param parsing for compound test suites.
1 parent cec60ab commit 61caba7

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

tests/unit/all.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<script>
1414
(function() {
1515

16-
var params = "",
16+
var params = [],
1717
suites = [
1818
"accordion/accordion.html",
1919
"accordion/accordion_deprecated.html",
@@ -41,11 +41,15 @@
4141
];
4242

4343
$.each( QUnit.urlParams, function( key, value ) {
44-
params += encodeURIComponent( key ) + "=" + encodeURIComponent( value );
44+
if ( key === "filter" ) {
45+
return;
46+
}
47+
params.push( encodeURIComponent( key ) + "=" + encodeURIComponent( value ) );
4548
});
46-
if ( params ) {
49+
if ( params.length ) {
50+
params = "?" + params.join( "&" );
4751
suites = $.map( suites, function( suite ) {
48-
return suite + "?" + params;
52+
return suite + params;
4953
});
5054
}
5155
QUnit.testSuites( suites );

0 commit comments

Comments
 (0)