aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/event.js
diff options
context:
space:
mode:
authorDavid Serduke <davidserduke@gmail.com>2007-12-20 07:39:35 +0000
committerDavid Serduke <davidserduke@gmail.com>2007-12-20 07:39:35 +0000
commitb740fe5632b8731a140f16a2f6855910ea6957b9 (patch)
treeb85925c9d52a8af2db1eea9fe03a035452fade75 /test/unit/event.js
parent04194554738f8e2676f5d7876f5b78b12dbc2679 (diff)
downloadjquery-b740fe5632b8731a140f16a2f6855910ea6957b9.tar.gz
jquery-b740fe5632b8731a140f16a2f6855910ea6957b9.zip
Fixed a problem in the unit tests for IE where an optimization made the test case not work. The optimization was fine. It was the unit test that was taking a short cut which caused it to fail after the optimization went in.
Diffstat (limited to 'test/unit/event.js')
-rw-r--r--test/unit/event.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/event.js b/test/unit/event.js
index 610448145..248094a96 100644
--- a/test/unit/event.js
+++ b/test/unit/event.js
@@ -217,6 +217,7 @@ test("trigger(event, [data], [fn])", function() {
// Trigger only the handlers (no native) and extra fn, with external event obj
// Triggers 9
+ eventObj = jQuery.event.fix({ type: "foo", target: document.body });
equals( $("#firstp").triggerHandler("click", [eventObj, 1, "2", "abc"], handler), "test", "Verify handler response" );
var pass = true;
@@ -270,4 +271,4 @@ test("jQuery(function($) {})", function() {
equals(jQuery, $, "ready doesn't provide an event object, instead it provides a reference to the jQuery function, see http://docs.jquery.com/Events/ready#fn");
start();
});
-}); \ No newline at end of file
+});