From: Michał Gołębiowski Date: Tue, 8 Sep 2015 16:57:39 +0000 (+0200) Subject: Tests: Really fix tests in IE 8 this time X-Git-Tag: 2.2.0~144 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1b566d37a2879af12364a03c633c235a76f49925;p=jquery.git 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) --- 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; diff --git a/test/unit/basic.js b/test/unit/basic.js index b1b9205ce..25e86d1a3 100644 --- a/test/unit/basic.js +++ b/test/unit/basic.js @@ -200,7 +200,7 @@ QUnit.test( "manipulation", function( assert ) { // Support: IE 8 only // IE 8 prints tag names in upper case. - elem1.html(), + elem1.html().toLowerCase(), "
", ".after/.before" );