aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2016-04-20 13:07:53 -0400
committerScott González <scott.gonzalez@gmail.com>2016-04-21 10:59:27 -0400
commit010f5f9d13b7d6f1c13482825547ee95d3033e40 (patch)
treedd12424a449a594a01eeee77cfc1c6f4cbc53165 /tests/unit
parent3585b7a92c2233a1e291f94165c958f270fc0679 (diff)
downloadjquery-ui-010f5f9d13b7d6f1c13482825547ee95d3033e40.tar.gz
jquery-ui-010f5f9d13b7d6f1c13482825547ee95d3033e40.zip
Tooltip: Fix re-enabling of delegated tooltips
Fixes #14950 Closes gh-1699
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/tooltip/methods.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/unit/tooltip/methods.js b/tests/unit/tooltip/methods.js
index e98d1b9ed..6e0af2eb4 100644
--- a/tests/unit/tooltip/methods.js
+++ b/tests/unit/tooltip/methods.js
@@ -94,6 +94,20 @@ QUnit.test( "enable/disable", function( assert ) {
$.fx.off = false;
} );
+QUnit.test( "enable/disable delegated", function( assert ) {
+ assert.expect( 1 );
+ var element = $( "#qunit-fixture" ).tooltip();
+ var tooltipped = $( "#tooltipped1" );
+
+ element.tooltip( "disable" );
+ element.tooltip( "enable" );
+
+ tooltipped.trigger( "mouseover" );
+ assert.equal( $( ".ui-tooltip" ).length, 1, "open" );
+
+ element.tooltip( "destroy" );
+} );
+
QUnit.test( "widget", function( assert ) {
assert.expect( 2 );
var element = $( "#tooltipped1" ).tooltip(),