From a3ddcc5fcea200ed43188438c4a500005fc7b68f Mon Sep 17 00:00:00 2001 From: Oleg Date: Thu, 20 Dec 2012 20:50:00 +0400 Subject: [PATCH] Add additional test --- test/unit/manipulation.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index 004424cd9..2f67ff06d 100644 --- a/test/unit/manipulation.js +++ b/test/unit/manipulation.js @@ -2247,3 +2247,12 @@ test( "Index for function argument should be received (#13094)", 2, function() { }); }); + +test( "Make sure jQuery.fn.remove can work on elements in documentFragment", 1, function() { + var fragment = document.createDocumentFragment(), + div = fragment.appendChild( document.createElement("div") ); + + $( div ).remove(); + + equal( fragment.childNodes.length, 0, "div element was removed from documentFragment" ); +}); -- 2.39.5