mirror of
https://github.com/jquery/jquery.git
synced 2026-01-25 06:28:18 -05:00
remove and detach unit tests were not cleaning up, causing selector tests to fail
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user