Skip to content
Permalink
Browse files

Datepicker Tests: use simulated events for focus and blur.

  • Loading branch information
mikesherov committed Apr 7, 2013
1 parent 2f7a4c6 commit ab84e037ed919015e24ac3d7e61960290a6062af
Showing with 3 additions and 3 deletions.
  1. +1 −1 tests/unit/datepicker/datepicker_options.js
  2. +2 −2 tests/unit/datepicker/datepicker_test_helpers.js
@@ -114,7 +114,7 @@ asyncTest( "invocation", function() {

step2();
});
})[ 0 ].focus();
}).simulate( "focus" );
}

function step2() {
@@ -22,8 +22,8 @@ TestHelpers.datepicker = {
element.one( "blur", function(){
element.one( "focus", function(){
callback();
})[ 0 ].focus();
})[ 0 ].blur();
}).simulate( "focus" );
}).simulate( "blur" );
},
PROP_NAME: "datepicker"
};

0 comments on commit ab84e03

Please sign in to comment.
You can’t perform that action at this time.