tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

bug863755.js (568B)


      1 function TestCase( e, a) {
      2      getTestCaseResult(e, a);
      3 }
      4 function getTestCaseResult(expected, actual) {}
      5 var msPerSecond =  1000;
      6 var TIME_0000  = (function () {  })();
      7 var now = new Date();
      8 var TIME_NOW = now.valueOf();
      9 function msFromTime(t) {
     10    var ms = t % msPerSecond;
     11    return ((ms < 0) ? msPerSecond + ms : ms );
     12 }
     13 new TestCase(false,  eval("true, false"));
     14 addTestCase( TIME_NOW );
     15 addTestCase( TIME_0000 );
     16 function addTestCase( t ) {
     17    for ( m = 0; m <= 1000; m+=100 ) {
     18        new TestCase(msFromTime(t), (new Date(t)).getMilliseconds());
     19    }
     20 }