Skip to content
Permalink
Browse files

Datepicker: Added test for #4055 - onclick events contain references …

…to "jQuery".
  • Loading branch information...
scottgonzalez committed Feb 13, 2009
1 parent 9f93e8d commit 95c5d5e3fd061dac6ef2a779ee18b033b7b09a52
Showing with 14 additions and 0 deletions.
  1. +14 −0 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);

0 comments on commit 95c5d5e

Please sign in to comment.
You can’t perform that action at this time.