From 498aadf644ddca86de838dc2001267ded972df2c Mon Sep 17 00:00:00 2001 From: Scott González Date: Fri, 9 Nov 2012 13:07:53 -0500 Subject: Tooltip: Ignore disabled checks when closing. Fixes #8758 - Tooltip: Tooltip is shown, but not hidden if element has class=ui-state-disabled. --- tests/unit/tooltip/tooltip_core.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tests') diff --git a/tests/unit/tooltip/tooltip_core.js b/tests/unit/tooltip/tooltip_core.js index f0aed72aa..69936dba2 100644 --- a/tests/unit/tooltip/tooltip_core.js +++ b/tests/unit/tooltip/tooltip_core.js @@ -94,4 +94,17 @@ test( "form containing an input with name title", function() { equal( $( ".ui-tooltip" ).length, 0, "no tooltip for form" ); }); +test( "tooltip on .ui-state-disabled element", function() { + expect( 2 ); + + var container = $( "#contains-tooltipped" ).tooltip(), + element = $( "#contained-tooltipped" ).addClass( "ui-state-disabled" ); + + element.trigger( "mouseover" ); + equal( $( ".ui-tooltip" ).length, 1 ); + + container.empty(); + equal( $( ".ui-tooltip" ).length, 0 ); +}); + }( jQuery ) ); -- cgit v1.2.3