X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fmanipulation.js;h=6c3ecf8af800d4b7f0f44e21f3c108416d23335b;hb=8b33e23ea07b206e96e39bb194675de80cff10ab;hp=71a501ac52c6578b47bb10b5893e85af80e20aa1;hpb=7481a3645af63cef1406687190fd62bdfb1bf254;p=jquery.git diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index 71a501a..6c3ecf8 100644 --- a/test/unit/manipulation.js +++ b/test/unit/manipulation.js @@ -388,7 +388,7 @@ test("append the same fragment with events (Bug #6997, 5566)", function () { var element; // This patch modified the way that cloning occurs in IE; we need to make sure that - // native event handlers on the original object don’t get disturbed when they are + // native event handlers on the original object don't get disturbed when they are // modified on the clone if (!jQuery.support.noCloneEvent && document.fireEvent) { element = jQuery("div:first").click(function () { @@ -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' ); @@ -890,7 +890,7 @@ test("clone()", function() { // this is technically an invalid object, but because of the special // classid instantiation it is the only kind that IE has trouble with, - // so let’s test with it too. + // so let's test with it too. div = jQuery("
").html(' '); clone = div.clone(true); @@ -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) {