]> source.dussan.org Git - jquery.git/commitdiff
Fixed a problem in the unit tests for IE where an optimization made the test case...
authorDavid Serduke <davidserduke@gmail.com>
Thu, 20 Dec 2007 07:39:35 +0000 (07:39 +0000)
committerDavid Serduke <davidserduke@gmail.com>
Thu, 20 Dec 2007 07:39:35 +0000 (07:39 +0000)
test/unit/event.js

index 610448145ca0e5280d9bad2af0391e824653cc8a..248094a9666ca3f08ac70b0b96316172c42fbdaf 100644 (file)
@@ -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
+});