Commit b539b6e1 authored by Brandon Aaron's avatar Brandon Aaron

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

parent 36ebb4f7
......@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment