From: Oleg Date: Thu, 20 Dec 2012 16:50:00 +0000 (+0400) Subject: Add additional test X-Git-Tag: 2.0.0b1~59^2~25 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a3ddcc5fcea200ed43188438c4a500005fc7b68f;p=jquery.git Add additional test --- 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" ); +});