diff options
author | Scott González <scott.gonzalez@gmail.com> | 2009-02-13 04:12:28 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2009-02-13 04:12:28 +0000 |
commit | 95c5d5e3fd061dac6ef2a779ee18b033b7b09a52 (patch) | |
tree | 4cda0c7b92b6c59b3851ad83613c7718424d39db /tests/unit/datepicker | |
parent | 9f93e8db3a1923ea40058e057cdacbb4a1a552e3 (diff) | |
download | jquery-ui-95c5d5e3fd061dac6ef2a779ee18b033b7b09a52.tar.gz jquery-ui-95c5d5e3fd061dac6ef2a779ee18b033b7b09a52.zip |
Datepicker: Added test for #4055 - onclick events contain references to "jQuery".
Diffstat (limited to 'tests/unit/datepicker')
-rw-r--r-- | tests/unit/datepicker/datepicker_tickets.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/unit/datepicker/datepicker_tickets.js b/tests/unit/datepicker/datepicker_tickets.js index 38c5e89f3..de5f750ce 100644 --- a/tests/unit/datepicker/datepicker_tickets.js +++ b/tests/unit/datepicker/datepicker_tickets.js @@ -5,4 +5,18 @@ module("datepicker: tickets"); +test('#4055: onclick events contain references to "jQuery"', function() { + // no assertions, if the test fails, there will be an error + + var _jQuery = jQuery; + jQuery = null; + + $('<div/>').appendTo('body').datepicker() + // the third weekend day always exists + .find('tbody .ui-datepicker-week-end:eq(3)').click().end() + .datepicker('destroy'); + + jQuery = _jQuery; +}); + })(jQuery); |