X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fmanipulation.js;h=2492ca5d8e9063c58aa220de8744926da75cc6bb;hb=726fda08bea7bbd72d73be4563aba855c63966fe;hp=e6e6c8d9c5098c8efa9c54c56a382b89c3772585;hpb=a7dc66b8325906066071fe5c44ce55ecf2eb5aed;p=jquery.git diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index e6e6c8d..2492ca5 100644 --- a/test/unit/manipulation.js +++ b/test/unit/manipulation.js @@ -376,7 +376,7 @@ test("append(Function) with incoming value", function() { }); test("appendTo(String|Element|Array<Element>|jQuery)", function() { - expect(12); + expect(13); var defaultText = 'Try them out:' jQuery('buga').appendTo('#first'); equals( jQuery("#first").text(), defaultText + 'buga', 'Check if text appending works' ); @@ -424,6 +424,11 @@ test("appendTo(String|Element|Array<Element>|jQuery)", function() { ok( jQuery("#moretests div:last").hasClass("test"), "appendTo element was modified after the insertion" ); reset(); + + div = jQuery("
"); + jQuery("ab").filter("span").appendTo( div ); + + equals( div.children().length, 1, "Make sure the right number of children were inserted." ); }); var testPrepend = function(val) {