links-australasia.js (873B)
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] 9 ---*/ 10 11 const testCases = [ 12 "Pacific/Saipan", // Link Pacific/Guam Pacific/Saipan # N Mariana Is 13 "Antarctica/McMurdo", // Link Pacific/Auckland Antarctica/McMurdo 14 "Antarctica/DumontDUrville", // Link Pacific/Port_Moresby Antarctica/DumontDUrville 15 "Pacific/Midway", // Link Pacific/Pago_Pago Pacific/Midway # in US minor outlying islands 16 ]; 17 18 for (let id of testCases) { 19 const instance = new Temporal.ZonedDateTime(0n, id); 20 assert.sameValue(instance.timeZoneId, id); 21 } 22 23 reportCompare(0, 0);