tor-browser

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

links-asia.js (1056B)


      1 // |reftest| skip-if(!this.hasOwnProperty('Temporal')) -- Temporal is not enabled unconditionally
      2 // Copyright (C) 2022 André Bargull. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 
      5 /*---
      6 esid: sec-temporal.zoneddatetime
      7 description: ZonedDateTime constructor accepts link names as time zone ID input
      8 features: [Temporal, canonical-tz]
      9 ---*/
     10 
     11 const testCases = [
     12  "Europe/Nicosia",  // Link    Asia/Nicosia    Europe/Nicosia
     13  "Asia/Bahrain",  // Link Asia/Qatar Asia/Bahrain
     14  "Antarctica/Syowa",  // Link Asia/Riyadh Antarctica/Syowa
     15  "Asia/Aden",  // Link Asia/Riyadh Asia/Aden      # Yemen
     16  "Asia/Kuwait",  // Link Asia/Riyadh Asia/Kuwait
     17  "Asia/Phnom_Penh",  // Link Asia/Bangkok Asia/Phnom_Penh       # Cambodia
     18  "Asia/Vientiane",  // Link Asia/Bangkok Asia/Vientiane        # Laos
     19  "Asia/Muscat",  // Link Asia/Dubai Asia/Muscat     # Oman
     20 ];
     21 
     22 for (let id of testCases) {
     23  const instance = new Temporal.ZonedDateTime(0n, id);
     24  assert.sameValue(instance.timeZoneId, id);
     25 }
     26 
     27 reportCompare(0, 0);