Skip to content
Permalink
Browse files

Changed the currentTarget test - no need to test the native event tri…

…ggering for this test.
  • Loading branch information
jeresig committed Feb 17, 2009
1 parent 80782d9 commit 8d9aa015c18e85f1f0aee1159e7928183483a5fd
Showing with 1 addition and 3 deletions.
  1. +1 −3 test/unit/event.js
@@ -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();

0 comments on commit 8d9aa01

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