r2071 - trunk/tests/unit/datepicker
Author: scott.gonzalez
Date: Thu Feb 12 20:12:28 2009
New Revision: 2071
Modified:
trunk/tests/unit/datepicker/datepicker_tickets.js
Log:
Datepicker: Added test for #4055 - onclick events contain references
to "jQuery".
Modified: trunk/tests/unit/datepicker/datepicker_tickets.js
==============================================================================
--- trunk/tests/unit/datepicker/datepicker_tickets.js (original)
+++ trunk/tests/unit/datepicker/datepicker_tickets.js Thu Feb 12 20:12:28
2009
@@ -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);