Skip to content
Permalink
Browse files

Tests: Fixed param parsing for compound test suites.

  • Loading branch information
scottgonzalez committed Jul 28, 2011
1 parent cec60ab commit 61caba7803d1c3885a8e2a6cd3c1e8b723e8beee
Showing with 8 additions and 4 deletions.
  1. +8 −4 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 );

0 comments on commit 61caba7

Please sign in to comment.
You can’t perform that action at this time.