Changed the currentTarget test - no need to test the native event triggering for...
authorJohn Resig <jeresig@gmail.com>
Tue, 17 Feb 2009 17:22:59 +0000 (17:22 +0000)
committerJohn Resig <jeresig@gmail.com>
Tue, 17 Feb 2009 17:22:59 +0000 (17:22 +0000)
test/unit/event.js

index f111c07..2ba2561 100644 (file)
@@ -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();