Permalink
Browse files

Tests: Use QUnit URL parameter parsing

  • Loading branch information...
gibson042 committed Sep 8, 2015
1 parent f9af896 commit f23a64d745759d358d423ba0557e8f74d65f76cc
Showing with 3 additions and 6 deletions.
  1. +3 −6 test/data/testinit.js
View
@@ -269,12 +269,9 @@ this.iframeCallback = undefined;
// Tests are always loaded async
QUnit.config.autostart = false;
this.loadTests = function() {
var loadSwarm,
url = window.location.search,
basicTests = jQuery.inArray( "module=basic", url.substring( 1 ).split( "&" ) ) > -1;
url = decodeURIComponent( url.slice( url.indexOf( "swarmURL=" ) + "swarmURL=".length ) );
loadSwarm = url && url.indexOf( "http" ) === 0;
// Leverage QUnit URL parsing to detect testSwarm environment and "basic" testing mode
var loadSwarm = ( QUnit.urlParams[ "swarmURL" ] + "" ).indexOf( "http" ) === 0,
basicTests = ( QUnit.urlParams[ "module" ] + "" ) === "basic";
// Get testSubproject from testrunner first
require( [ "data/testrunner.js" ], function() {

0 comments on commit f23a64d

Please sign in to comment.