From efe8da8e6e9b50547fe9a632b267c7f8479b6686 Mon Sep 17 00:00:00 2001 From: Mike Sherov Date: Sun, 31 Mar 2013 12:55:57 -0400 Subject: [PATCH] Spinner Tests: Fix IE test failures by accounting for the async nature of focus/blur. --- tests/unit/spinner/spinner_core.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/unit/spinner/spinner_core.js b/tests/unit/spinner/spinner_core.js index bea5f9122..f9bd7c2e4 100644 --- a/tests/unit/spinner/spinner_core.js +++ b/tests/unit/spinner/spinner_core.js @@ -94,6 +94,9 @@ asyncTest( "blur input while spinning with UP", function() { function step2() { value = element.val(); ok( value > 11, "repeating while key is down" ); + setTimeout( function() { + value = element.val(); + }); element[0].blur(); setTimeout( step3, 250 ); }