Skip to content

Commit

Permalink
Add additional test
Browse files Browse the repository at this point in the history
  • Loading branch information
markelog committed Dec 23, 2012
1 parent ec75705 commit a3ddcc5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/unit/manipulation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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" );
});

0 comments on commit a3ddcc5

Please sign in to comment.