From 2e2a1b8910afcc23b1f71c188dca2d88067d70da Mon Sep 17 00:00:00 2001 From: David Serduke Date: Sun, 18 Nov 2007 00:46:58 +0000 Subject: [PATCH] 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. --- test/unit/core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/core.js b/test/unit/core.js index 18f1bb54d..c7f18506c 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" ); -- 2.39.5