X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;ds=sidebyside;f=test%2Funit%2Fmanipulation.js;h=1313783e0be4e2da4da6c02ab43608cc4944de4f;hb=6b08d88d04f4a41849753999e6e18126895086d0;hp=e07108696aa2aa17f55c133cca44dd2861604928;hpb=375b78783825b9adab7a01541faf99f98ef7ecbd;p=jquery.git
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js
index e071086..1313783 100644
--- a/test/unit/manipulation.js
+++ b/test/unit/manipulation.js
@@ -1006,7 +1006,7 @@ test("clone()", function() {
test("clone(form element) (Bug #3879, #6655)", function() {
expect(6);
- element = jQuery("");
+ var element = jQuery("");
equals( element.clone().find("option:selected").val(), element.find("option:selected").val(), "Selected option cloned correctly" );
@@ -1026,6 +1026,14 @@ test("clone(form element) (Bug #3879, #6655)", function() {
equals( clone[0].defaultValue, "foo", "Textarea defaultValue cloned correctly" );
});
+test("clone(multiple selected options) (Bug #8129)", function() {
+ expect(1);
+ var element = jQuery("");
+
+ equals( element.clone().find("option:selected").length, element.find("option:selected").length, "Multiple selected options cloned correctly" );
+
+});
+
if (!isLocal) {
test("clone() on XML nodes", function() {
expect(2);