Datepicker tests: Fixed setting of option.

This commit is contained in:
Scott González 2012-11-13 10:34:31 -05:00
parent 608341d20d
commit ff055a0c35

View File

@ -146,7 +146,7 @@ test('customStructure', function() {
dp = $('#ui-datepicker-div'), dp = $('#ui-datepicker-div'),
// Check right-to-left localisation // Check right-to-left localisation
inp = TestHelpers.datepicker.init('#inp', $.datepicker.regional.he); inp = TestHelpers.datepicker.init('#inp', $.datepicker.regional.he);
inp.data('showButtonPanel.datepicker',true); inp.datepicker( 'option', 'showButtonPanel', true);
inp.focus(); inp.focus();
ok(dp.is('.ui-datepicker-rtl'), 'Structure RTL - right-to-left'); ok(dp.is('.ui-datepicker-rtl'), 'Structure RTL - right-to-left');
header = dp.children(':first'); header = dp.children(':first');