Datepicker Tests: use simulated events for focus and blur.(cherry picked from commit ab84e037ed)

This commit is contained in:
Mike Sherov 2013-04-07 15:15:04 -04:00 committed by Scott González
parent 0bea0d6d02
commit c9d84e531e
2 changed files with 3 additions and 3 deletions

View File

@ -114,7 +114,7 @@ asyncTest( "invocation", function() {
step2();
});
})[ 0 ].focus();
}).simulate( "focus" );
}
function step2() {

View File

@ -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"
};