diff options
author | Greg Lavallee <greglavallee@wapolabs.com> | 2012-10-16 14:36:47 -0400 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2012-10-16 14:47:11 -0400 |
commit | e83bc970f2dc11fc0fd545cb0ec756a0eab64eda (patch) | |
tree | 2ca887f2d66ff407045f1616e51c53db9e4e2843 /test/unit/event.js | |
parent | fd5facf1d1db40149e0221ce8215b56f155b9394 (diff) | |
download | jquery-e83bc970f2dc11fc0fd545cb0ec756a0eab64eda.tar.gz jquery-e83bc970f2dc11fc0fd545cb0ec756a0eab64eda.zip |
Fixes #12736. Move hover event hack to deprecated.js for removal in 1.9. Closes gh-982.
Signed-off-by: Timmy Willison <timmywillisn@gmail.com>
Diffstat (limited to 'test/unit/event.js')
-rw-r--r-- | test/unit/event.js | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/test/unit/event.js b/test/unit/event.js index e626ede1d..d6c24436a 100644 --- a/test/unit/event.js +++ b/test/unit/event.js @@ -798,8 +798,8 @@ test("unbind(eventObject)", function() { assert( 0 ); }); -test("hover() and hover pseudo-event", function() { - expect(3); +test("hover() mouseenter mouseleave", function() { + expect(1); var times = 0, handler1 = function( event ) { ++times; }, @@ -817,30 +817,6 @@ test("hover() and hover pseudo-event", function() { equal( times, 4, "hover handlers fired" ); - var balance = 0; - jQuery( "#firstp" ) - .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++; - } else if ( e.type === "mouseleave" ) { - balance--; - } else { - ok( false, "hover pseudo: unknown event type "+e.type ); - } - }) - .trigger("click") - .trigger("mouseenter") - .trigger("mouseleave") - .unbind("hover") - .trigger("mouseenter"); - - equal( balance, 0, "hover pseudo-event" ); }); test("mouseover triggers mouseenter", function() { |