test262/test/intl402/Temporal/TimeZone/links-australasia.js
André Bargull d7a10658d9 Replace time zone link name canonicalisation tests
Replace tests with more simple tests that only ensure link names are
accepted.
2022-08-01 14:13:30 -07:00

22 lines
701 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.timezone
description: >
TimeZone constructor accepts link names as its 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) {
// Doesn't throw a RangeError.
new Temporal.TimeZone(id);
}