tor-browser

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

15.9.1.15-1.js (591B)


      1 // Copyright (c) 2012 Ecma International.  All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 esid: sec-date-time-string-format
      6 description: >
      7    Date Time String Format - specified default values will be set for
      8    all optional fields(MM, DD, mm, ss and time zone) when they are
      9    absent
     10 ---*/
     11 
     12 var result = false;
     13 var expectedDateTimeStr = "1970-01-01T00:00:00.000Z";
     14 var dateObj = new Date("1970");
     15 var dateStr = dateObj.toISOString();
     16 result = dateStr === expectedDateTimeStr;
     17 
     18 assert(result, 'result !== true');
     19 
     20 reportCompare(0, 0);