aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/tooltip/events.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/tooltip/events.js')
-rw-r--r--tests/unit/tooltip/events.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/tooltip/events.js b/tests/unit/tooltip/events.js
index a953c6e91..d8e9fa2a9 100644
--- a/tests/unit/tooltip/events.js
+++ b/tests/unit/tooltip/events.js
@@ -29,12 +29,12 @@ test( "mouse events", function() {
expect( 2 );
var element = $( "#tooltipped1" ).tooltip();
- element.bind( "tooltipopen", function( event ) {
+ element.on( "tooltipopen", function( event ) {
deepEqual( event.originalEvent.type, "mouseover" );
});
element.trigger( "mouseover" );
- element.bind( "tooltipclose", function( event ) {
+ element.on( "tooltipclose", function( event ) {
deepEqual( event.originalEvent.type, "mouseleave" );
});
element.trigger( "focusout" );
@@ -45,12 +45,12 @@ test( "focus events", function() {
expect( 2 );
var element = $( "#tooltipped1" ).tooltip();
- element.bind( "tooltipopen", function( event ) {
+ element.on( "tooltipopen", function( event ) {
deepEqual( event.originalEvent.type, "focusin" );
});
element.trigger( "focusin" );
- element.bind( "tooltipclose", function( event ) {
+ element.on( "tooltipclose", function( event ) {
deepEqual( event.originalEvent.type, "focusout" );
});
element.trigger( "mouseleave" );