Fixed a problem in the unit tests for IE where an optimization made the test case...
[jquery.git] / test / unit / event.js
index 73ce17c..248094a 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;
@@ -263,3 +264,11 @@ test("toggle(Function, Function)", function() {
                return false;
        }).click().click().click();
 });
+
+test("jQuery(function($) {})", function() {
+       stop();
+       jQuery(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();
+       });
+});