X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=blobdiff_plain;f=test%2Funit%2Fmanipulation.js;h=29c79a2d6aa997214ce0919326836e37dc69be6f;hp=71a501ac52c6578b47bb10b5893e85af80e20aa1;hb=4fae75d575b20d887e4a273c7991c55f8821a62c;hpb=7481a3645af63cef1406687190fd62bdfb1bf254 diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index 71a501a..29c79a2 100644 --- a/test/unit/manipulation.js +++ b/test/unit/manipulation.js @@ -848,7 +848,7 @@ test("replaceAll(String|Element|Array<Element>|jQuery)", function() { }); test("clone()", function() { - expect(35); + expect(36); 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' ); @@ -918,6 +918,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) {