From: David Serduke Date: Sun, 18 Nov 2007 00:46:58 +0000 (+0000) Subject: Slightly altered a test that was causing IE7 in some cases to hard crash. The test... X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=2e2a1b8910afcc23b1f71c188dca2d88067d70da;p=jquery.git Slightly altered a test that was causing IE7 in some cases to hard crash. The test was setting .html() to many divs, some of which were inside other divs effectly deleting them from the DOM. I suspect this caused some instability and may only have been an IE7 with IEDevBar issue. The test still correctly tests the functionality of that unit test. --- diff --git a/test/unit/core.js b/test/unit/core.js index 18f1bb5..c7f1850 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -883,11 +883,11 @@ var scriptorder = 0; test("html(String)", function() { expect(10); - var div = $("div"); + var div = $("#main > div"); div.html("test"); var pass = true; for ( var i = 0; i < div.size(); i++ ) { - if ( div.get(i).childNodes.length == 0 ) pass = false; + if ( div.get(i).childNodes.length != 1 ) pass = false; } ok( pass, "Set HTML" );