From: Mike Sherov Date: Mon, 1 Apr 2013 12:59:52 +0000 (-0400) Subject: Spinner Tests: Fix IE test failures by removing timing dependencies from focus/blur... X-Git-Tag: 1.11.0-beta.1~377 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5217b975f32aeca0bf12ca76f24084f319b46ebe;p=jquery-ui.git Spinner Tests: Fix IE test failures by removing timing dependencies from focus/blur tests. --- diff --git a/tests/unit/spinner/spinner_core.js b/tests/unit/spinner/spinner_core.js index f9bd7c2e4..03088fecd 100644 --- a/tests/unit/spinner/spinner_core.js +++ b/tests/unit/spinner/spinner_core.js @@ -94,11 +94,11 @@ asyncTest( "blur input while spinning with UP", function() { function step2() { value = element.val(); ok( value > 11, "repeating while key is down" ); - setTimeout( function() { + + element.bind( "blur", function() { value = element.val(); - }); - element[0].blur(); - setTimeout( step3, 250 ); + setTimeout( step3, 750 ); + })[ 0 ].blur(); } function step3() {