aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-12-06 11:56:56 -0500
committerScott González <scott.gonzalez@gmail.com>2012-12-06 11:56:56 -0500
commit20a29dfd61f0f632c0d08aa0d1db3057668f3f7c (patch)
treeb740c18a212875829d32b486ad1a2dff6da6a0d9 /tests
parentf7614706abfdbc653de53fbc31361f9aacab8821 (diff)
downloadjquery-ui-20a29dfd61f0f632c0d08aa0d1db3057668f3f7c.tar.gz
jquery-ui-20a29dfd61f0f632c0d08aa0d1db3057668f3f7c.zip
Datepicker: Run JSHint test in unit tests.
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/datepicker/datepicker_core.js2
-rw-r--r--tests/unit/datepicker/datepicker_options.js3
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/unit/datepicker/datepicker_core.js b/tests/unit/datepicker/datepicker_core.js
index 3c88059d1..67dd29eac 100644
--- a/tests/unit/datepicker/datepicker_core.js
+++ b/tests/unit/datepicker/datepicker_core.js
@@ -6,6 +6,8 @@
module("datepicker: core");
+TestHelpers.testJshint( "datepicker" );
+
test("initialization - Reinitialization after body had been emptied.", function() {
expect( 1 );
var bodyContent = $('body').children(), inp = $("#inp");
diff --git a/tests/unit/datepicker/datepicker_options.js b/tests/unit/datepicker/datepicker_options.js
index 4b09face5..06fde26e6 100644
--- a/tests/unit/datepicker/datepicker_options.js
+++ b/tests/unit/datepicker/datepicker_options.js
@@ -64,7 +64,8 @@ test( "disabled", function() {
inp = TestHelpers.datepicker.init('#inp', { disabled: true });
ok(inp.datepicker('isDisabled'), 'Initially marked as disabled');
ok(inp[0].disabled, 'Field initially disabled');
-})
+});
+
test('change', function() {
expect( 12 );
var inp = TestHelpers.datepicker.init('#inp'),