diff options
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); |