git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
1dee0d2
)
Add some resize event tests.
author
John Resig
<jeresig@gmail.com>
Mon, 11 Oct 2010 22:03:54 +0000
(18:03 -0400)
committer
John Resig
<jeresig@gmail.com>
Mon, 11 Oct 2010 22:03:54 +0000
(18:03 -0400)
test/unit/event.js
patch
|
blob
|
history
diff --git
a/test/unit/event.js
b/test/unit/event.js
index
b5e24c8
..
d9dcc97
100644
(file)
--- a/
test/unit/event.js
+++ b/
test/unit/event.js
@@
-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();