mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Datepicker: Run JSHint test in unit tests.
This commit is contained in:
parent
f7614706ab
commit
20a29dfd61
@ -6,6 +6,8 @@
|
|||||||
|
|
||||||
module("datepicker: core");
|
module("datepicker: core");
|
||||||
|
|
||||||
|
TestHelpers.testJshint( "datepicker" );
|
||||||
|
|
||||||
test("initialization - Reinitialization after body had been emptied.", function() {
|
test("initialization - Reinitialization after body had been emptied.", function() {
|
||||||
expect( 1 );
|
expect( 1 );
|
||||||
var bodyContent = $('body').children(), inp = $("#inp");
|
var bodyContent = $('body').children(), inp = $("#inp");
|
||||||
|
@ -64,7 +64,8 @@ test( "disabled", function() {
|
|||||||
inp = TestHelpers.datepicker.init('#inp', { disabled: true });
|
inp = TestHelpers.datepicker.init('#inp', { disabled: true });
|
||||||
ok(inp.datepicker('isDisabled'), 'Initially marked as disabled');
|
ok(inp.datepicker('isDisabled'), 'Initially marked as disabled');
|
||||||
ok(inp[0].disabled, 'Field initially disabled');
|
ok(inp[0].disabled, 'Field initially disabled');
|
||||||
})
|
});
|
||||||
|
|
||||||
test('change', function() {
|
test('change', function() {
|
||||||
expect( 12 );
|
expect( 12 );
|
||||||
var inp = TestHelpers.datepicker.init('#inp'),
|
var inp = TestHelpers.datepicker.init('#inp'),
|
||||||
|
Loading…
Reference in New Issue
Block a user