X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=blobdiff_plain;f=test%2Funit%2Fmanipulation.js;fp=test%2Funit%2Fmanipulation.js;h=1313783e0be4e2da4da6c02ab43608cc4944de4f;hp=e07108696aa2aa17f55c133cca44dd2861604928;hb=fa4c90987fc9aede4de3f41976cda91acad81736;hpb=cb85da7b62e74e7339ed652ade209aaffbd0c15b
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);