git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Handle some edge cases with binding events to the window object (which is also a...
[jquery.git]
/
test
/
unit
/
event.js
diff --git
a/test/unit/event.js
b/test/unit/event.js
index
d9dcc97
..
b093e8e
100644
(file)
--- a/
test/unit/event.js
+++ b/
test/unit/event.js
@@
-1830,11
+1830,15
@@
test("Non DOM element events", function() {
});
test("window resize", function() {
});
test("window resize", function() {
- expect(1);
+ expect(2);
+
+ jQuery(window).unbind();
jQuery(window).bind("resize", function(){
ok( true, "Resize event fired." );
}).resize().unbind("resize");
jQuery(window).bind("resize", function(){
ok( true, "Resize event fired." );
}).resize().unbind("resize");
+
+ ok( !jQuery(window).data("events"), "Make sure all the events are gone." );
});
/*
});
/*