mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
remove and detach unit tests were not cleaning up, causing selector tests to fail
This commit is contained in:
parent
36ebb4f75e
commit
b539b6e1d9
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user