Changed the currentTarget test - no need to test the native event triggering for this test.
This commit is contained in:
parent
80782d958c
commit
8d9aa015c1
1 changed files with 1 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue