Home page Forum Wiki Mail Jabber Devel NIX-FILES

AltLUG Git

Git-repositories of Altai Linux User Group

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 5fd3c1c..d4224d7 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 );
 

Hosting is provided AltSPAHow to use Git
Please direct any questions on jabber alex.wolf@jabber.ru

Valid HTML 4.0 Transitional Valid CSS!

Designer Alexander Wolf