aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/event.js
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2011-04-13 16:42:20 -0400
committerjeresig <jeresig@gmail.com>2011-04-13 16:42:20 -0400
commit72ddc8c64518a748071fd662b21fc995fbd8e96c (patch)
tree03e8924fd7b66731250587487d104e1972776c9f /test/unit/event.js
parent42e20269ecf7a300c6dbd7475b8bef2ef160c546 (diff)
parent4ad9b44deada9da9639f53b1ca3cc4cf2ebf2df2 (diff)
downloadjquery-72ddc8c64518a748071fd662b21fc995fbd8e96c.tar.gz
jquery-72ddc8c64518a748071fd662b21fc995fbd8e96c.zip
Merge branch 'master' of github.com:jquery/jquery
Diffstat (limited to 'test/unit/event.js')
-rw-r--r--test/unit/event.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/unit/event.js b/test/unit/event.js
index 491396f93..687184294 100644
--- a/test/unit/event.js
+++ b/test/unit/event.js
@@ -778,6 +778,8 @@ test("trigger() shortcuts", function() {
elem.remove();
// test that special handlers do not blow up with VML elements (#7071)
+ jQuery('<xml:namespace ns="urn:schemas-microsoft-com:vml" prefix="v" />').appendTo('head');
+ jQuery('<v:oval id="oval" style="width:100pt;height:75pt;" fillcolor="red"> </v:oval>').appendTo('#form');
jQuery("#oval").click().keydown();
});
@@ -978,11 +980,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'" );