From 9483dcdbe61f33e2cc5ea0c56297f254a82990b8 Mon Sep 17 00:00:00 2001 From: Richard Worth Date: Thu, 25 Feb 2010 11:09:39 +0000 Subject: Externals: updated QUnit to http://github.com/jquery/qunit commit 67ba5a338d836014c24345dc218ab3c9bb63b06e The various updates to the unit test suites introduced 0 regressions due to update of QUnit, however the addition of jquery.ui.dialog.css to the dialog test suite did introduce one regression, to the dialog option height tests. Also removed some old crufty woefully incomplete unused and rotted test harnesses. --- tests/unit/datepicker/datepicker.html | 16 +++++++++++----- tests/unit/datepicker/datepicker_options.js | 4 ++-- 2 files changed, 13 insertions(+), 7 deletions(-) (limited to 'tests/unit/datepicker') diff --git a/tests/unit/datepicker/datepicker.html b/tests/unit/datepicker/datepicker.html index 4f6dadc8b..f26db7782 100644 --- a/tests/unit/datepicker/datepicker.html +++ b/tests/unit/datepicker/datepicker.html @@ -3,7 +3,7 @@ jQuery UI Datepicker Test Suite - + @@ -12,11 +12,11 @@ - - + + - + @@ -26,7 +26,13 @@ -
+

jQuery UI Datepicker Test Suite

+

+

+
    +
+ +

diff --git a/tests/unit/datepicker/datepicker_options.js b/tests/unit/datepicker/datepicker_options.js index 9656b69d7..7011fd5a1 100644 --- a/tests/unit/datepicker/datepicker_options.js +++ b/tests/unit/datepicker/datepicker_options.js @@ -684,7 +684,7 @@ test('callbacks', function() { equals($.datepicker._get(inst, 'currentText'), 'Current', 'Before show - changed'); ok(beforeShowThis.id == inp[0].id, 'Before show - this OK'); ok(beforeShowInput.id == inp[0].id, 'Before show - input OK'); - isObj(beforeShowInst, inst, 'Before show - inst OK'); + deepEqual(beforeShowInst, inst, 'Before show - inst OK'); inp.datepicker('hide').datepicker('destroy'); // Before show day inp = init('#inp', {beforeShowDay: beforeDay}); @@ -734,7 +734,7 @@ test('localisation', function() { test('noWeekends', function() { for (var i = 1; i <= 31; i++) { var date = new Date(2001, 1 - 1, i); - isSet($.datepicker.noWeekends(date), [(i + 1) % 7 >= 2, ''], + deepEqual($.datepicker.noWeekends(date), [(i + 1) % 7 >= 2, ''], 'No weekends ' + date); } }); -- cgit v1.2.3