From 95c5d5e3fd061dac6ef2a779ee18b033b7b09a52 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Fri, 13 Feb 2009 04:12:28 +0000 Subject: [PATCH] Datepicker: Added test for #4055 - onclick events contain references to "jQuery". --- tests/unit/datepicker/datepicker_tickets.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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; + + $('
').appendTo('body').datepicker() + // the third weekend day always exists + .find('tbody .ui-datepicker-week-end:eq(3)').click().end() + .datepicker('destroy'); + + jQuery = _jQuery; +}); + })(jQuery); -- 2.39.5