diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2013-04-07 15:15:04 -0400 |
---|---|---|
committer | Mike Sherov <mike.sherov@gmail.com> | 2013-04-07 15:15:04 -0400 |
commit | ab84e037ed919015e24ac3d7e61960290a6062af (patch) | |
tree | 43f04508113295d82b45475f2c02e3da0decc653 /tests/unit/datepicker | |
parent | 2f7a4c669d1e39079bc34b61fdf5713f02d2b739 (diff) | |
download | jquery-ui-ab84e037ed919015e24ac3d7e61960290a6062af.tar.gz jquery-ui-ab84e037ed919015e24ac3d7e61960290a6062af.zip |
Datepicker Tests: use simulated events for focus and blur.
Diffstat (limited to 'tests/unit/datepicker')
-rw-r--r-- | tests/unit/datepicker/datepicker_options.js | 2 | ||||
-rw-r--r-- | tests/unit/datepicker/datepicker_test_helpers.js | 4 |
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 |