mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Datepicker Tests: use simulated events for focus and blur.(cherry picked from commit ab84e037ed
)
This commit is contained in:
parent
0bea0d6d02
commit
c9d84e531e
@ -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"
|
||||
};
|
Loading…
Reference in New Issue
Block a user