From 1b48eef4caf7fa3aba0ee1a3473e0d46487d20ea Mon Sep 17 00:00:00 2001 From: =?utf8?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. --- 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" ); -- 2.39.5