Add some resize event tests.

This commit is contained in:
John Resig 2010-10-11 18:03:54 -04:00
parent 1dee0d2ed8
commit c00a6ff1f1

View 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();