X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=test%2Funit%2Fmanipulation.js;h=eafbf25fc525478ee1c2212f7ca712e2bd840c6b;hb=99e7560808679b5044dbefb2b7124bb019fdbda2;hp=2492ca5d8e9063c58aa220de8744926da75cc6bb;hpb=726fda08bea7bbd72d73be4563aba855c63966fe;p=jquery.git
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js
index 2492ca5..eafbf25 100644
--- a/test/unit/manipulation.js
+++ b/test/unit/manipulation.js
@@ -376,7 +376,8 @@ test("append(Function) with incoming value", function() {
});
test("appendTo(String|Element|Array<Element>|jQuery)", function() {
- expect(13);
+ expect(14);
+
var defaultText = 'Try them out:'
jQuery('buga').appendTo('#first');
equals( jQuery("#first").text(), defaultText + 'buga', 'Check if text appending works' );
@@ -429,6 +430,15 @@ test("appendTo(String|Element|Array<Element>|jQuery)", function() {
jQuery("ab").filter("span").appendTo( div );
equals( div.children().length, 1, "Make sure the right number of children were inserted." );
+
+ div = jQuery("#moretests div");
+
+ var num = jQuery("#main div").length;
+ div.remove().appendTo("#main");
+
+ equals( jQuery("#main div").length, num, "Make sure all the removed divs were inserted." );
+
+ reset();
});
var testPrepend = function(val) {