Skip to content

Commit

Permalink
Changed the currentTarget test - no need to test the native event tri…
Browse files Browse the repository at this point in the history
…ggering for this test.
  • Loading branch information
jeresig committed Feb 17, 2009
1 parent 80782d9 commit 8d9aa01
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/unit/event.js
Expand Up @@ -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){
Expand All @@ -427,8 +427,6 @@ test("jQuery.Event.currentTarget", function(){

// Fake event
$elem.trigger('click');
// Native event (#4033)
triggerEvent( $elem[0], 'click' );

// Cleanup
$elem.unbind();
Expand Down

0 comments on commit 8d9aa01

Please sign in to comment.