From 70e013830d6cd6cbeb873422912dd806dc42fbef Mon Sep 17 00:00:00 2001 From: Mike Sherov Date: Wed, 21 Nov 2012 19:29:22 -0500 Subject: [PATCH] Button tests: fix IE7 fail for latest focus tests --- tests/unit/button/button_events.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/button/button_events.js b/tests/unit/button/button_events.js index bb2cb041c..7b79c41ea 100644 --- a/tests/unit/button/button_events.js +++ b/tests/unit/button/button_events.js @@ -17,7 +17,7 @@ test( "when button loses focus, ensure active state is removed (#8559)", functio expect( 1 ); $("#button").button().keypress( function() { - $("#button").blur( function() { + $("#button").one( "blur", function() { ok( !$("#button").is(".ui-state-active"), "button loses active state appropriately" ); }).blur(); }).focus().simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } ).simulate( "keypress", { keyCode: $.ui.keyCode.ENTER } ); -- 2.39.5