X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fevent.js;h=68c54cb193382b6d2c0a3fbde2bf98efec4af3f8;hb=aea452f1624df811c8b0b2916bfb22213d153f9d;hp=0ec0f5966b2e1f757ed9fdf1689a167350fcc2cc;hpb=5d033dba02fc1ffe1398cdaf0e9d402fc75e13f0;p=jquery.git diff --git a/test/unit/event.js b/test/unit/event.js index 0ec0f59..68c54cb 100644 --- a/test/unit/event.js +++ b/test/unit/event.js @@ -165,7 +165,7 @@ test("unbind(event)", function() { ok( !jQuery.data(el[0], "events"), "Removed the events expando after all handlers are unbound." ); reset(); - var clickCounter = mouseoverCounter = 0; + var clickCounter = (mouseoverCounter = 0); var handler = function(event) { if (event.type == "click") clickCounter += 1; @@ -304,3 +304,11 @@ test("jQuery(function($) {})", function() { start(); }); }); + +test("event properties", function() { + stop(); + $("#simon1").click(function(event) { + ok( event.timeStamp, "assert event.timeStamp is present" ); + start(); + }).click(); +}); \ No newline at end of file