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 count = 0;
|
||||||
var first = jQuery("#ap").children(":first");
|
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 );
|
equals( method == "remove" ? 0 : 1, count );
|
||||||
|
|
||||||
|
cleanUp.detach();
|
||||||
};
|
};
|
||||||
|
|
||||||
test("remove()", function() {
|
test("remove()", function() {
|
||||||
|
|
Loading…
Reference in a new issue