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 (parent:
606b863
)
Fixed an issue with the suite expecting a different result for the changed triggerHan...
author
John Resig
<jeresig@gmail.com>
Sat, 15 Sep 2007 02:23:08 +0000
(
02:23
+0000)
committer
John Resig
<jeresig@gmail.com>
Sat, 15 Sep 2007 02:23:08 +0000
(
02:23
+0000)
test/unit/event.js
patch
|
blob
|
history
diff --git
a/test/unit/event.js
b/test/unit/event.js
index
cdf86c6
..
593c6da
100644
(file)
--- a/
test/unit/event.js
+++ b/
test/unit/event.js
@@
-160,15
+160,15
@@
test("trigger(event, [data], [fn])", function() {
equals( $("#firstp").triggerHandler("click", [1, "2", "abc"], handler2), "test", "Verify handler response" );
// Build fake click event to pass in
equals( $("#firstp").triggerHandler("click", [1, "2", "abc"], handler2), "test", "Verify handler response" );
// Build fake click event to pass in
- var eventObj = jQuery.event.fix({ type: "click", target: document.body });
+ var eventObj = jQuery.event.fix({ type: "foo", target: document.body });
// Trigger only the handlers (no native), with external event obj
// Triggers 5
// Trigger only the handlers (no native), with external event obj
// Triggers 5
- equals( $("#firstp").triggerHandler("foo", [eventObj, 1, "2", "abc"]), "test", "Verify handler response" );
+ equals( $("#firstp").triggerHandler("click", [eventObj, 1, "2", "abc"]), "test", "Verify handler response" );
// Trigger only the handlers (no native) and extra fn, with external event obj
// Triggers 9
// Trigger only the handlers (no native) and extra fn, with external event obj
// Triggers 9
- equals( $("#firstp").triggerHandler("foo", [eventObj, 1, "2", "abc"], handler), "test", "Verify handler response" );
+ equals( $("#firstp").triggerHandler("click", [eventObj, 1, "2", "abc"], handler), "test", "Verify handler response" );
});
test("toggle(Function, Function)", function() {
});
test("toggle(Function, Function)", function() {