X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fmanipulation.js;fp=test%2Funit%2Fmanipulation.js;h=48050168435aa1cc842024a6ac04b5a4cd60cc94;hb=ab2a70e6cfba19ec9140c3e393e8cdb60c537bdb;hp=d4c43487192395dbfaadfeb183d4dada4fd8a17b;hpb=0838bdf52cf9f27ebc2bbee74fd7170e2d854c11;p=jquery.git diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index d4c4348..4805016 100644 --- a/test/unit/manipulation.js +++ b/test/unit/manipulation.js @@ -814,7 +814,7 @@ test("replaceAll(String|Element|Array<Element>|jQuery)", function() { }); test("clone()", function() { - expect(31); + expect(32); equals( 'This is a normal link: Yahoo', jQuery('#en').text(), 'Assert text for #en' ); var clone = jQuery('#yahoo').clone(); equals( 'Try them out:Yahoo', jQuery('#first').append(clone).text(), 'Check for clone' ); @@ -872,6 +872,8 @@ test("clone()", function() { form.appendChild( div ); equals( jQuery(form).clone().children().length, 1, "Make sure we just get the form back." ); + + equal( jQuery("body").clone().children()[0].id, "qunit-header", "Make sure cloning body works" ); }); if (!isLocal) {