Commit 8d9aa015 authored by John Resig's avatar John Resig

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

parent 80782d95
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment