X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=test%2Funit%2Fevent.js;h=b0cc5026dc246b1ccb6c8636ed077ae1f4f0ff4a;hb=98c7248518f9a2082ccf50240b5ab44bf98d7b5e;hp=824707fee91cdd28f8b37e9d49431dc56fb91ea5;hpb=390186b902c4c1ac13e23754d33ed4d8b3d5fa38;p=jquery.git diff --git a/test/unit/event.js b/test/unit/event.js index 824707f..b0cc502 100644 --- a/test/unit/event.js +++ b/test/unit/event.js @@ -72,7 +72,7 @@ test("bind(), multiple events at once and namespaces", function() { }); test("bind(), namespace with special add", function() { - expect(9); + expect(18); var div = jQuery("
").bind("test", function(e) { ok( true, "Test event fired." ); @@ -81,6 +81,11 @@ test("bind(), namespace with special add", function() { var i = 0; jQuery.event.special.test = { + _default: function(e) { + equals( this, document, "Make sure we're at the top of the chain." ); + equals( e.type, "test", "And that we're still dealing with a test event." ); + equals( e.target, div[0], "And that the target is correct." ); + }, setup: function(){}, teardown: function(){}, add: function( handler, data, namespaces ) {