test262/test/intl402/Temporal/TimeZone/supported-values-of.js
André Bargull a3040a5047 Import SpiderMonkey Temporal tests
Temporal tests written for the SpiderMonkey implementation. Mostly
covers edge cases around mathematical operations and regression tests
for reported spec bugs.
2022-07-19 11:30:43 -07:00

17 lines
488 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 all time zone identifiers from Intl.supportedValuesOf.
features: [Temporal, Intl-enumeration]
---*/
// Ensure all identifiers are valid and canonical.
for (let id of Intl.supportedValuesOf("timeZone")) {
let tz = new Temporal.TimeZone(id);
assert.sameValue(tz.id, id);
}