tor-browser

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

roundtrip-from-string.js (733B)


      1 // |reftest| skip-if(!this.hasOwnProperty('Temporal')) -- Temporal is not enabled unconditionally
      2 // Copyright (C) 2025 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.plaindate.from
      7 description: >
      8  Check that various dates created from a RFC 9557 string have the expected
      9  properties
     10 includes: [temporalHelpers.js]
     11 features: [Temporal, Intl.Era-monthcode]
     12 ---*/
     13 
     14 TemporalHelpers.assertPlainDate(
     15  Temporal.PlainDate.from("2000-01-01"),
     16  2000, 1, "M01", 1,
     17  "created from string 2000-01-01");
     18 
     19 TemporalHelpers.assertPlainDate(
     20  Temporal.PlainDate.from("0001-01-01"),
     21  1, 1, "M01", 1,
     22  "created from string 0001-01-01");
     23 
     24 reportCompare(0, 0);