jquery.event: Patch for #2708
[jquery.git] / test / unit / event.js
index 0ec0f59..68c54cb 100644 (file)
@@ -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