git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
36ebb4f
)
remove and detach unit tests were not cleaning up, causing selector tests to fail
author
Brandon Aaron
<brandon.aaron@gmail.com>
Mon, 14 Sep 2009 20:45:58 +0000
(20:45 +0000)
committer
Brandon Aaron
<brandon.aaron@gmail.com>
Mon, 14 Sep 2009 20:45:58 +0000
(20:45 +0000)
test/unit/manipulation.js
patch
|
blob
|
history
diff --git
a/test/unit/manipulation.js
b/test/unit/manipulation.js
index
c942bfd
..
49d717f
100644
(file)
--- a/
test/unit/manipulation.js
+++ b/
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() {