diff options
author | Michał Gołębiowski <m.goleb@gmail.com> | 2015-09-08 18:57:39 +0200 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2015-09-08 19:02:35 +0200 |
commit | 1b566d37a2879af12364a03c633c235a76f49925 (patch) | |
tree | 895bd8e127e5e3a62acfd191c80d8721bd246590 /test/data | |
parent | 5914b103627e3773418ad1fd8c3b034bf3748d51 (diff) | |
download | jquery-1b566d37a2879af12364a03c633c235a76f49925.tar.gz jquery-1b566d37a2879af12364a03c633c235a76f49925.zip |
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 not necessary on master but has been brought here to keep
tests similar in both branches.
(cherry-picked from 1b48eef4caf7fa3aba0ee1a3473e0d46487d20ea)
Diffstat (limited to 'test/data')
-rw-r--r-- | test/data/testinit.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/data/testinit.js b/test/data/testinit.js index d9cf8a2eb..fb99badfc 100644 --- a/test/data/testinit.js +++ b/test/data/testinit.js @@ -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; |