Add some resize event tests.
authorJohn Resig <jeresig@gmail.com>
Mon, 11 Oct 2010 22:03:54 +0000 (18:03 -0400)
committerJohn Resig <jeresig@gmail.com>
Mon, 11 Oct 2010 22:03:54 +0000 (18:03 -0400)
test/unit/event.js

index b5e24c8..d9dcc97 100644 (file)
@@ -1829,6 +1829,14 @@ test("Non DOM element events", function() {
        jQuery(o).trigger('nonelementobj');
 });
 
+test("window resize", function() {
+       expect(1);
+
+       jQuery(window).bind("resize", function(){
+               ok( true, "Resize event fired." );
+       }).resize().unbind("resize");
+});
+
 /*
 test("jQuery(function($) {})", function() {
        stop();