aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2011-04-12 19:29:09 -0400
committerDave Methvin <dave.methvin@gmail.com>2011-04-12 19:29:09 -0400
commitbebd8bc01e63dcb053412f8b247e4fa611867c55 (patch)
tree1908fde77bb03270e6d703bb67a35021d0969c58 /test
parent6d49e84dafd8990221913944727e4f5dcaec078d (diff)
downloadjquery-bebd8bc01e63dcb053412f8b247e4fa611867c55.tar.gz
jquery-bebd8bc01e63dcb053412f8b247e4fa611867c55.zip
Followup to #8753. Modify new Event constructor signature to jQuery.event(type, props), which can be exploited by jQuery.event.trigger as well.
Diffstat (limited to 'test')
-rw-r--r--test/unit/event.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/event.js b/test/unit/event.js
index 491396f93..d4e3994e5 100644
--- a/test/unit/event.js
+++ b/test/unit/event.js
@@ -978,11 +978,11 @@ test("trigger(eventObject, [data], [fn])", function() {
$parent.unbind().remove();
});
-test("jQuery.Event({ /* props */ })", function() {
+test("jQuery.Event( type, props )", function() {
expect(4);
- var event = jQuery.Event({ type: "keydown", keyCode: 64 }),
+ var event = jQuery.Event( "keydown", { keyCode: 64 }),
handler = function( event ) {
ok( "keyCode" in event, "Special property 'keyCode' exists" );
equal( event.keyCode, 64, "event.keyCode has explicit value '64'" );