aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
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(),