tor-browser

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

argument-string-basic-and-extended-format.js (1125B)


      1 // |reftest| skip-if(!this.hasOwnProperty('Temporal')) -- Temporal is not enabled unconditionally
      2 // Copyright (C) 2022 Igalia, S.L. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 
      5 /*---
      6 esid: sec-temporal.zoneddatetime.from
      7 description: Mixture of basic and extended format.
      8 includes: [temporalHelpers.js]
      9 features: [Temporal]
     10 ---*/
     11 
     12 [
     13  "1976-11-18T152330.1-08:00[-08:00]",
     14  "19761118T15:23:30.1-08:00[-08:00]",
     15  "1976-11-18T15:23:30.1-0800[-08:00]",
     16  "1976-11-18T152330.1-0800[-08:00]",
     17  "19761118T15:23:30.1-0800[-08:00]",
     18  "19761118T152330.1-08:00[-08:00]",
     19  "19761118T152330.1-0800[-08:00]",
     20  "+001976-11-18T152330.1-08:00[-08:00]",
     21  "+0019761118T15:23:30.1-08:00[-08:00]",
     22  "+001976-11-18T15:23:30.1-0800[-08:00]",
     23  "+001976-11-18T152330.1-0800[-08:00]",
     24  "+0019761118T15:23:30.1-0800[-08:00]",
     25  "+0019761118T152330.1-08:00[-08:00]",
     26  "+0019761118T152330.1-0800[-08:00]"
     27 ].forEach(input => TemporalHelpers.assertZonedDateTimesEqual(
     28    Temporal.ZonedDateTime.from(input),
     29    new Temporal.ZonedDateTime(217207410100000000n, "-08:00")));
     30 
     31 reportCompare(0, 0);