remove and detach unit tests were not cleaning up, causing selector tests to fail

This commit is contained in:
Brandon Aaron 2009-09-14 20:45:58 +00:00
parent 36ebb4f75e
commit b539b6e1d9

View file

@ -706,9 +706,11 @@ var testRemove = function(method) {
var count = 0;
var first = jQuery("#ap").children(":first");
first.click(function() { count++ })[method]().appendTo("body").click();
var cleanUp = first.click(function() { count++ })[method]().appendTo("body").click();
equals( method == "remove" ? 0 : 1, count );
cleanUp.detach();
};
test("remove()", function() {