git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test runner: voided the failing tests for jQuery.map, that belong to an unapproved...
[jquery.git]
/
test
/
unit
/
event.js
diff --git
a/test/unit/event.js
b/test/unit/event.js
index
0ec0f59
..
68c54cb
100644
(file)
--- 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();
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;
var handler = function(event) {
if (event.type == "click")
clickCounter += 1;
@@
-304,3
+304,11
@@
test("jQuery(function($) {})", function() {
start();
});
});
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