Add additional test

This commit is contained in:
Oleg 2012-12-20 20:50:00 +04:00
parent ec75705f88
commit a3ddcc5fce

View File

@ -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" );
});