X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fmanipulation.js;h=16992aeb748336805f8f1681d3098c5167328dc1;hb=6a3d0996edf2f8ba69f62c8c7c3eda07b674d81f;hp=7db8d5bae0a2800fad2edbec77e91460ad485988;hpb=f06e0e5575bc8f82d0fcbd5880bb9d8ccf361bfa;p=jquery.git diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index 7db8d5b..16992ae 100644 --- a/test/unit/manipulation.js +++ b/test/unit/manipulation.js @@ -793,7 +793,7 @@ test("clone() on XML nodes", function() { } var testHtml = function(valueObj) { - expect(22); + expect(24); jQuery.scriptorder = 0; @@ -805,6 +805,11 @@ var testHtml = function(valueObj) { } ok( pass, "Set HTML" ); + div = jQuery("
").html( valueObj('
') ); + + equals( div.children().length, 2, "Make sure two child nodes exist." ); + equals( div.children().children().length, 1, "Make sure that a grandchild exists." ); + reset(); // using contents will get comments regular, text, and comment nodes var j = jQuery("#nonnodes").contents(); @@ -1040,4 +1045,4 @@ test("jQuery.cleanData", function() { return div; } -}); \ No newline at end of file +});