Tests: Really fix tests in IE 8 this time

IE 8 doesn't have indexOf on arrays. Also, one toLowerCase() was missing. Oops.
This commit is contained in:
Michał Gołębiowski
2015-09-08 18:57:39 +02:00
parent f709a284e2
commit 1b48eef4ca
2 changed files with 2 additions and 2 deletions

View File

@@ -271,7 +271,7 @@ QUnit.config.autostart = false;
this.loadTests = function() {
var loadSwarm,
url = window.location.search,
basicTests = url.substring( 1 ).split( "&" ).indexOf( "module=basic" ) > -1;
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;