X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=test%2Funit%2Fmanipulation.js;h=f0e2eaec2643820d9e5b68f853672e76164e2ec8;hb=0a0cff9d29c4bd559da689d96c532d06c03fce09;hp=a68c214ba08f994d4941c458619c8721dfb456a6;hpb=33a67ffa9d85450f1edf1b1645b57f7641e2e2d2;p=jquery.git
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js
index a68c214..f0e2eae 100644
--- a/test/unit/manipulation.js
+++ b/test/unit/manipulation.js
@@ -880,7 +880,20 @@ test("jQuery.clone() (#8017)", function() {
var main = jQuery("#main")[0],
clone = jQuery.clone( main );
- equals( main.children.length, clone.children.length, "Simple child length to ensure a large dom tree copies correctly" );
+ equals( main.childNodes.length, clone.childNodes.length, "Simple child length to ensure a large dom tree copies correctly" );
+});
+
+test("clone() (#8070)", function () {
+ expect(2);
+
+ jQuery('').appendTo('#main');
+ var selects = jQuery('.test8070');
+ selects.append('');
+
+ equals( selects[0].childNodes.length, 2, "First select got two nodes" );
+ equals( selects[1].childNodes.length, 2, "Second select got two nodes" );
+
+ selects.remove();
});
test("clone()", function() {