diff options
author | Scott González <scott.gonzalez@gmail.com> | 2016-04-20 13:07:53 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2016-04-21 10:59:27 -0400 |
commit | 010f5f9d13b7d6f1c13482825547ee95d3033e40 (patch) | |
tree | dd12424a449a594a01eeee77cfc1c6f4cbc53165 /tests | |
parent | 3585b7a92c2233a1e291f94165c958f270fc0679 (diff) | |
download | jquery-ui-010f5f9d13b7d6f1c13482825547ee95d3033e40.tar.gz jquery-ui-010f5f9d13b7d6f1c13482825547ee95d3033e40.zip |
Tooltip: Fix re-enabling of delegated tooltips
Fixes #14950
Closes gh-1699
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/tooltip/methods.js | 14 |
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(), |