mirror of
https://github.com/jquery/jquery.git
synced 2026-02-02 04:05:02 -05:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user