diff options
author | Alexander Schmitz <arschmitz@gmail.com> | 2015-05-13 22:02:14 -0400 |
---|---|---|
committer | Alexander Schmitz <arschmitz@gmail.com> | 2015-05-20 14:27:57 -0400 |
commit | 24f1ce9ea046607ae9d0611aefbe5bbd636f8d32 (patch) | |
tree | 3cb4d72e90061a7c88c614e2ff80244bc7c48e4e /tests/unit/tooltip/core.js | |
parent | c25a541fc414bc46a2ab6911ca2a09a1c772c999 (diff) | |
download | jquery-ui-24f1ce9ea046607ae9d0611aefbe5bbd636f8d32.tar.gz jquery-ui-24f1ce9ea046607ae9d0611aefbe5bbd636f8d32.zip |
Tooltip: Remove core event/alias and deprecated module dependencies
Diffstat (limited to 'tests/unit/tooltip/core.js')
-rw-r--r-- | tests/unit/tooltip/core.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/unit/tooltip/core.js b/tests/unit/tooltip/core.js index 135fa480b..de0b90224 100644 --- a/tests/unit/tooltip/core.js +++ b/tests/unit/tooltip/core.js @@ -137,20 +137,20 @@ asyncTest( "programmatic focus with async content", function() { } }); - element.bind( "tooltipopen", function( event ) { + element.on( "tooltipopen", function( event ) { deepEqual( event.originalEvent.type, "focusin" ); - element.bind( "tooltipclose", function( event ) { + element.on( "tooltipclose", function( event ) { deepEqual( event.originalEvent.type, "focusout" ); start(); }); setTimeout(function() { - element.blur(); + element.trigger( "blur" ); }); }); - element.focus(); + element.trigger( "focus" ); }); asyncTest( "destroy during hide animation; only one close event", function() { @@ -161,7 +161,7 @@ asyncTest( "destroy during hide animation; only one close event", function() { hide: true }); - element.bind( "tooltipclose", function() { + element.on( "tooltipclose", function() { ok( true, "tooltip closed" ); }); |