aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorOleg <markelog@gmail.com>2012-12-20 20:50:00 +0400
committerOleg <markelog@gmail.com>2012-12-24 03:04:19 +0400
commita3ddcc5fcea200ed43188438c4a500005fc7b68f (patch)
tree350cb7f17a52ddd66ab14e4370073525b99b9a85 /test
parentec75705f88dd4b44ec133d5167b69e88c175bb24 (diff)
downloadjquery-a3ddcc5fcea200ed43188438c4a500005fc7b68f.tar.gz
jquery-a3ddcc5fcea200ed43188438c4a500005fc7b68f.zip
Add additional test
Diffstat (limited to 'test')
-rw-r--r--test/unit/manipulation.js9
1 files changed, 9 insertions, 0 deletions
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" );
+});