]> source.dussan.org Git - jquery.git/commitdiff
Slightly altered a test that was causing IE7 in some cases to hard crash. The test...
authorDavid Serduke <davidserduke@gmail.com>
Sun, 18 Nov 2007 00:46:58 +0000 (00:46 +0000)
committerDavid Serduke <davidserduke@gmail.com>
Sun, 18 Nov 2007 00:46:58 +0000 (00:46 +0000)
test/unit/core.js

index 18f1bb54d798647cc95728f120d4d0737264707d..c7f18506cf96fe1992e7574020587a81e28a4436 100644 (file)
@@ -883,11 +883,11 @@ var scriptorder = 0;
 
 test("html(String)", function() {
        expect(10);
-       var div = $("div");
+       var div = $("#main > div");
        div.html("<b>test</b>");
        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" );