Datepicker: Run JSHint test in unit tests.

This commit is contained in:
Scott González 2012-12-06 11:56:56 -05:00
parent f7614706ab
commit 20a29dfd61
2 changed files with 4 additions and 1 deletions

View File

@ -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");

View File

@ -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'),