Skip to content
Permalink
Browse files

remove and detach unit tests were not cleaning up, causing selector t…

…ests to fail
  • Loading branch information
brandonaaron committed Sep 14, 2009
1 parent 36ebb4f commit b539b6e1d99892b5b37f7eac938331cfd2ebcd51
Showing with 4 additions and 2 deletions.
  1. +4 −2 test/unit/manipulation.js
@@ -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() {

0 comments on commit b539b6e

Please sign in to comment.
You can’t perform that action at this time.