test262/test/intl402/Temporal/TimeZone/non-canonical-utc.js

28 lines
515 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 canonicalises its input.
features: [Temporal]
---*/
const testCases = [
"Etc/GMT",
"Etc/GMT+0",
"Etc/GMT-0",
"Etc/GMT0",
"Etc/Greenwich",
"Etc/UCT",
"Etc/UTC",
"Etc/Universal",
"Etc/Zulu",
];
for (let id of testCases) {
let tz = new Temporal.TimeZone(id);
assert.sameValue(tz.id, id);
}