]> source.dussan.org Git - jquery.git/commitdiff
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 b5e24c8e742fda84efc969740ddab9023b193a6e..d9dcc97ec0f60b007dc6ffc7dff32d8b7d91a35c 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();