michael@0: function TestCase( e, a) { michael@0: getTestCaseResult(e, a); michael@0: } michael@0: function getTestCaseResult(expected, actual) {} michael@0: var msPerSecond = 1000; michael@0: var TIME_0000 = (function () { })(); michael@0: var now = new Date(); michael@0: var TIME_NOW = now.valueOf(); michael@0: function msFromTime(t) { michael@0: var ms = t % msPerSecond; michael@0: return ((ms < 0) ? msPerSecond + ms : ms ); michael@0: } michael@0: new TestCase(false, eval("true, false")); michael@0: addTestCase( TIME_NOW ); michael@0: addTestCase( TIME_0000 ); michael@0: function addTestCase( t ) { michael@0: for ( m = 0; m <= 1000; m+=100 ) { michael@0: new TestCase(msFromTime(t), (new Date(t)).getMilliseconds()); michael@0: } michael@0: }