From 58a5e23a7882e4438e60e354f3f2125562f9a540 Mon Sep 17 00:00:00 2001 From: Jörn Zaefferer Date: Thu, 23 Feb 2012 19:37:31 +0100 Subject: Tooltip: Replace blur with focusout to deal with inputs nested in tooltipped elements. --- tests/unit/tooltip/tooltip_events.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/unit/tooltip') diff --git a/tests/unit/tooltip/tooltip_events.js b/tests/unit/tooltip/tooltip_events.js index 99e1fbd79..bf60c3cdc 100644 --- a/tests/unit/tooltip/tooltip_events.js +++ b/tests/unit/tooltip/tooltip_events.js @@ -47,9 +47,9 @@ test( "focus events", function() { element.trigger( "focusin" ); element.one( "tooltipclose", function( event ) { - same( event.originalEvent.type, "blur" ); + same( event.originalEvent.type, "focusout" ); }); - element.trigger( "blur" ); + element.trigger( "focusout" ); }); asyncTest( "mixed events", function() { @@ -74,7 +74,7 @@ asyncTest( "mixed events", function() { // blurring is async in IE element.one( "tooltipclose", function( event ) { - same( event.originalEvent.type, "blur" ); + same( event.originalEvent.type, "focusout" ); start(); }); element.simulate( "blur" ); -- cgit v1.2.3