Changed the currentTarget test - no need to test the native event triggering for this test.

This commit is contained in:
John Resig 2009-02-17 17:22:59 +00:00
parent 80782d958c
commit 8d9aa015c1

View file

@ -418,7 +418,7 @@ test("trigger(eventObject, [data], [fn])", function() {
});
test("jQuery.Event.currentTarget", function(){
expect(2);
expect(1);
var counter = 0,
$elem = jQuery('<button>a</button>').click(function(e){
@ -427,8 +427,6 @@ test("jQuery.Event.currentTarget", function(){
// Fake event
$elem.trigger('click');
// Native event (#4033)
triggerEvent( $elem[0], 'click' );
// Cleanup
$elem.unbind();