aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/unit/datepicker/datepicker_options.js2
-rw-r--r--tests/unit/datepicker/datepicker_test_helpers.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/datepicker/datepicker_options.js b/tests/unit/datepicker/datepicker_options.js
index 64bbc8829..93ffc8136 100644
--- a/tests/unit/datepicker/datepicker_options.js
+++ b/tests/unit/datepicker/datepicker_options.js
@@ -114,7 +114,7 @@ asyncTest( "invocation", function() {
step2();
});
- })[ 0 ].focus();
+ }).simulate( "focus" );
}
function step2() {
diff --git a/tests/unit/datepicker/datepicker_test_helpers.js b/tests/unit/datepicker/datepicker_test_helpers.js
index 504bcc767..884735def 100644
--- a/tests/unit/datepicker/datepicker_test_helpers.js
+++ b/tests/unit/datepicker/datepicker_test_helpers.js
@@ -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"
}; \ No newline at end of file