]> source.dussan.org Git - jquery-ui.git/commitdiff
Datepicker: Added test for #4055 - onclick events contain references to "jQuery".
authorScott González <scott.gonzalez@gmail.com>
Fri, 13 Feb 2009 04:12:28 +0000 (04:12 +0000)
committerScott González <scott.gonzalez@gmail.com>
Fri, 13 Feb 2009 04:12:28 +0000 (04:12 +0000)
tests/unit/datepicker/datepicker_tickets.js

index 38c5e89f32cf74b797ac6fa629774482731277e1..de5f750ce33cfb760c181823ad0b7b7be6e79755 100644 (file)
@@ -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);