From 1b566d37a2879af12364a03c633c235a76f49925 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Go=C5=82=C4=99biowski?= Date: Tue, 8 Sep 2015 18:57:39 +0200 Subject: [PATCH] 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) --- test/data/testinit.js | 2 +- test/unit/basic.js | 2 +- 2 files changed, 2 insertions(+), 2 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; 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" );