Skip to content

Commit 1b48eef

Browse files
committed
Tests: Really fix tests in IE 8 this time
IE 8 doesn't have indexOf on arrays. Also, one toLowerCase() was missing. Oops.
1 parent f709a28 commit 1b48eef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/data/testinit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ QUnit.config.autostart = false;
271271
this.loadTests = function() {
272272
var loadSwarm,
273273
url = window.location.search,
274-
basicTests = url.substring( 1 ).split( "&" ).indexOf( "module=basic" ) > -1;
274+
basicTests = jQuery.inArray( "module=basic", url.substring( 1 ).split( "&" ) ) > -1;
275275

276276
url = decodeURIComponent( url.slice( url.indexOf( "swarmURL=" ) + "swarmURL=".length ) );
277277
loadSwarm = url && url.indexOf( "http" ) === 0;

test/unit/basic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ QUnit.test( "manipulation", function( assert ) {
200200

201201
// Support: IE 8 only
202202
// IE 8 prints tag names in upper case.
203-
elem1.html(),
203+
elem1.html().toLowerCase(),
204204
"<div></div><b></b><span></span><a></a>",
205205
".after/.before"
206206
);

0 commit comments

Comments
 (0)