X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=inline;f=test%2Funit%2Fcore.js;h=1ec3487d0a94a2af623fcbff862fbc864d47c3e5;hb=29bf601f3495ced43fbb6152bf9306f2618bb955;hp=ef36c4f784798aebe65ac85fb863c1626678e023;hpb=d62875fb0181c44f8b34a8e842ae323801637b25;p=jquery.git diff --git a/test/unit/core.js b/test/unit/core.js index ef36c4f..1ec3487 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -899,7 +899,7 @@ test("append(String|Element|Array<Element>|jQuery)", function() { }); test("appendTo(String|Element|Array<Element>|jQuery)", function() { - expect(6); + expect(7); var defaultText = 'Try them out:' jQuery('buga').appendTo('#first'); equals( jQuery("#first").text(), defaultText + 'buga', 'Check if text appending works' ); @@ -916,6 +916,9 @@ test("appendTo(String|Element|Array<Element>|jQuery)", function() { equals( expected, jQuery('#sap').text(), "Check for appending of array of elements" ); reset(); + ok( jQuery(document.createElement("script")).appendTo("body").length, "Make sure a disconnected script can be appended." ); + + reset(); expected = document.querySelectorAll ? "This link has class=\"blog\": Simon Willison's WeblogYahooTry them out:" : "This link has class=\"blog\": Simon Willison's WeblogTry them out:Yahoo";