]> source.dussan.org Git - jquery.git/commitdiff
Close #10882. Test case for "hover" event in 1.9
authorDave Methvin <dave.methvin@gmail.com>
Sat, 24 Nov 2012 20:25:54 +0000 (15:25 -0500)
committerDave Methvin <dave.methvin@gmail.com>
Sat, 24 Nov 2012 20:25:54 +0000 (15:25 -0500)
test/unit/event.js

index 5fd3c1ca78143dd0adce26a328951cf112cd599b..d4224d78fa2bb7f4ab07c6dd4f88639ba7c23359 100644 (file)
@@ -2904,6 +2904,17 @@ test("focus-blur order (#12868)", function() {
        }, 50 );
 });
 
+test("hover event no longer special since 1.9", function() {
+       expect( 1 );
+
+       jQuery("<div>craft</div>")
+               .on( "hover", function( e ) {
+                       equal( e.type, "hover", "I am hovering!" );
+               })
+               .trigger("hover")
+               .off("hover");
+});
+
 test("fixHooks extensions", function() {
        expect( 2 );