ok(!inp[0].disabled, 'Enable/disable image - field now enabled');\r
ok(inp.next('img').css('opacity') == 1, 'Enable/disable image - image now enabled');\r
inp.datepicker('destroy');\r
+ // Inline\r
+ var inl = init('#inl');\r
+ ok(!inl.datepicker('isDisabled'), 'Enable/disable inline - initially marked as enabled');\r
+ ok($('.ui-datepicker-disabled', inl).length == 0, 'Enable/disable inline - cover initially absent');\r
+ inl.datepicker('disable');\r
+ ok(inl.datepicker('isDisabled'), 'Enable/disable inline - now marked as disabled');\r
+ var disabled = $('.ui-datepicker-disabled', inl);\r
+ var dp = $('.ui-datepicker-inline', inl);\r
+ ok(disabled.length == 1, 'Enable/disable inline - cover now present');\r
+ ok(disabled.offset().top == dp.offset().top && disabled.offset().left == dp.offset().left,\r
+ 'Enable/disable inline - cover positioning');\r
+ ok(disabled.width() == dp.width() && disabled.height() == dp.height(),\r
+ 'Enable/disable inline - cover sizing');\r
+ inl.datepicker('enable');\r
+ ok(!inl.datepicker('isDisabled'), 'Enable/disable inline - now marked as enabled');\r
+ ok($('.ui-datepicker-disabled', inl).length == 0, 'Enable/disable inline - cover now absent');\r
+ inl.datepicker('destroy');\r
});\r
\r
test('keystrokes', function() {\r