r796 - trunk/tests
r796 - trunk/tests
Author: joern.zaefferer
Date: Mon Oct 13 14:42:12 2008
New Revision: 796
Modified:
trunk/tests/datepicker.js
Log:
updating tests to latest QUnit, using same, fixing a few assertions that
relied on type casting (mostly null/undefined)
Modified: trunk/tests/datepicker.js
==============================================================================
--- trunk/tests/datepicker.js (original)
+++ trunk/tests/datepicker.js Mon Oct 13 14:42:12 2008
@@ -24,7 +24,7 @@
a1[1] = (a1[1] ? new Date(a1[1].getFullYear(), a1[1].getMonth(),
a1[1].getDate()) : '');
a2[0] = (a2[0] ? new Date(a2[0].getFullYear(), a2[0].getMonth(),
a2[0].getDate()) : '');
a2[1] = (a2[1] ? new Date(a2[1].getFullYear(), a2[1].getMonth(),
a2[1].getDate()) : '');
- equals(serialArray(a1), serialArray(a2), message);
+ same(a1, a2, message);
}
function init(id, options) {