aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2011-12-13 22:29:35 -0500
committerDave Methvin <dave.methvin@gmail.com>2011-12-13 22:29:35 -0500
commit4534db196bf9475c79f74d6b62ebc866c27d06d9 (patch)
tree8c6559196cfb287ec199948043285fb7db52d312 /test
parent5798eab1240734e5d04a85acd628d007f4c93765 (diff)
downloadjquery-4534db196bf9475c79f74d6b62ebc866c27d06d9.tar.gz
jquery-4534db196bf9475c79f74d6b62ebc866c27d06d9.zip
Fix #11021. There should be no mangling of the "hover" namespace.
Diffstat (limited to 'test')
-rw-r--r--test/unit/event.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/unit/event.js b/test/unit/event.js
index c5481ab0e..81571506b 100644
--- a/test/unit/event.js
+++ b/test/unit/event.js
@@ -787,7 +787,7 @@ test("unbind(eventObject)", function() {
});
test("hover() and hover pseudo-event", function() {
- expect(2);
+ expect(3);
var times = 0,
handler1 = function( event ) { ++times; },
@@ -810,6 +810,9 @@ test("hover() and hover pseudo-event", function() {
.on( "hovercraft", function() {
ok( false, "hovercraft is full of ills" );
})
+ .on( "click.hover.me.not", function( e ) {
+ equal( e.handleObj.namespace, "hover.me.not", "hover hack doesn't mangle namespaces" );
+ })
.bind("hover", function( e ) {
if ( e.type === "mouseenter" ) {
balance++;
@@ -819,6 +822,7 @@ test("hover() and hover pseudo-event", function() {
ok( false, "hover pseudo: unknown event type "+e.type );
}
})
+ .trigger("click")
.trigger("mouseenter")
.trigger("mouseleave")
.unbind("hover")