X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fmanipulation.js;h=23ed898eaa56d00dc8e17249a0245df80f4e1e5b;hb=cec68e2b00d86357c18b576cbaed52cc1ea42a74;hp=8ee36882103380c6bfbb382d8160987175a84532;hpb=e4900df8389c85350d1d82c827fab0d4b91989d6;p=jquery.git diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index 8ee3688..23ed898 100644 --- a/test/unit/manipulation.js +++ b/test/unit/manipulation.js @@ -834,7 +834,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' ); @@ -892,6 +892,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) {