Handle some edge cases with binding events to the window object (which is also a...
[jquery.git] / test / unit / event.js
index d9dcc97..b093e8e 100644 (file)
@@ -1830,11 +1830,15 @@ test("Non DOM element events", 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");
+
+       ok( !jQuery(window).data("events"), "Make sure all the events are gone." );
 });
 
 /*