Skip to content

Commit 8d9aa01

Browse files
committed
Changed the currentTarget test - no need to test the native event triggering for this test.
1 parent 80782d9 commit 8d9aa01

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/unit/event.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ test("trigger(eventObject, [data], [fn])", function() {
418418
});
419419

420420
test("jQuery.Event.currentTarget", function(){
421-
expect(2);
421+
expect(1);
422422

423423
var counter = 0,
424424
$elem = jQuery('<button>a</button>').click(function(e){
@@ -427,8 +427,6 @@ test("jQuery.Event.currentTarget", function(){
427427

428428
// Fake event
429429
$elem.trigger('click');
430-
// Native event (#4033)
431-
triggerEvent( $elem[0], 'click' );
432430

433431
// Cleanup
434432
$elem.unbind();

0 commit comments

Comments
 (0)