Skip to content
Permalink
Browse files

Fixed a problem in the unit tests for IE where an optimization made t…

…he 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.
  • Loading branch information
davids549 committed Dec 20, 2007
1 parent 0419455 commit b740fe5632b8731a140f16a2f6855910ea6957b9
Showing with 2 additions and 1 deletion.
  1. +2 −1 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();
});
});
});

0 comments on commit b740fe5

Please sign in to comment.
You can’t perform that action at this time.