mirror of
https://github.com/tc39/test262.git
synced 2025-08-22 02:18:23 +02:00
21 lines
753 B
JavaScript
21 lines
753 B
JavaScript
// Copyright (C) 2022 André Bargull. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
esid: sec-temporal.zoneddatetime
|
|
description: ZonedDateTime constructor accepts link names as time zone ID input
|
|
features: [Temporal]
|
|
---*/
|
|
|
|
const testCases = [
|
|
"Pacific/Saipan", // Link Pacific/Guam Pacific/Saipan # N Mariana Is
|
|
"Antarctica/McMurdo", // Link Pacific/Auckland Antarctica/McMurdo
|
|
"Antarctica/DumontDUrville", // Link Pacific/Port_Moresby Antarctica/DumontDUrville
|
|
"Pacific/Midway", // Link Pacific/Pago_Pago Pacific/Midway # in US minor outlying islands
|
|
];
|
|
|
|
for (let id of testCases) {
|
|
const instance = new Temporal.ZonedDateTime(0n, id);
|
|
assert.sameValue(instance.timeZoneId, id);
|
|
}
|