mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
b107181bbb
handle the staggered proessing (renders at least once per second, faster then rendering after each test). Disabled broken manual-entry tests after confirming its only an issue in the test, not the impl.
28 lines
976 B
JavaScript
28 lines
976 B
JavaScript
/*
|
||
* datepicker_tickets.js
|
||
*/
|
||
(function($) {
|
||
|
||
module("datepicker: tickets");
|
||
|
||
// http://forum.jquery.com/topic/several-breaking-changes-in-jquery-ui-1-8rc1
|
||
test('beforeShowDay-getDate', function() {
|
||
var inp = init('#inp', {beforeShowDay: function(date) { inp.datepicker('getDate'); return [true, '']; }});
|
||
var dp = $('#ui-datepicker-div');
|
||
inp.val('01/01/2010').datepicker('show');
|
||
// contains non-breaking space
|
||
equals($('div.ui-datepicker-title').text(), 'January 2010', 'Initial month');
|
||
$('a.ui-datepicker-next', dp).click();
|
||
$('a.ui-datepicker-next', dp).click();
|
||
// contains non-breaking space
|
||
equals($('div.ui-datepicker-title').text(), 'March 2010', 'After next clicks');
|
||
inp.datepicker('hide').datepicker('show');
|
||
$('a.ui-datepicker-prev', dp).click();
|
||
$('a.ui-datepicker-prev', dp).click();
|
||
// contains non-breaking space
|
||
equals($('div.ui-datepicker-title').text(), 'November 2009', 'After prev clicks');
|
||
inp.datepicker('hide');
|
||
});
|
||
|
||
})(jQuery);
|