Skip to content

Commit

Permalink
Datepicker: Added test for #4055 - onclick events contain references …
Browse files Browse the repository at this point in the history
…to "jQuery".
  • Loading branch information
scottgonzalez committed Feb 13, 2009
1 parent 9f93e8d commit 95c5d5e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/unit/datepicker/datepicker_tickets.js
Expand Up @@ -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.