From 157df5791caf6bf0ae84ed54ae562b68761b4689 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bargull?= Date: Thu, 12 Dec 2024 18:50:25 +0100 Subject: [PATCH] Add feature tag for "Time Zone Canonicalization" --- features.txt | 4 ++++ test/intl402/DateTimeFormat/timezone-case-insensitive.js | 1 + test/intl402/DateTimeFormat/timezone-not-canonicalized.js | 1 + test/intl402/Temporal/ZonedDateTime/etc-timezone.js | 2 +- test/intl402/Temporal/ZonedDateTime/from/argument-valid.js | 2 +- .../from/do-not-canonicalize-iana-identifiers.js | 2 +- test/intl402/Temporal/ZonedDateTime/from/etc-timezone.js | 2 +- .../Temporal/ZonedDateTime/from/timezone-case-insensitive.js | 2 +- test/intl402/Temporal/ZonedDateTime/iana-legacy-names.js | 2 +- test/intl402/Temporal/ZonedDateTime/links-asia.js | 2 +- test/intl402/Temporal/ZonedDateTime/links-backward.js | 2 +- test/intl402/Temporal/ZonedDateTime/links-backzone.js | 2 +- test/intl402/Temporal/ZonedDateTime/links-etcetera.js | 2 +- test/intl402/Temporal/ZonedDateTime/links-europe.js | 2 +- test/intl402/Temporal/ZonedDateTime/links-northamerica.js | 2 +- test/intl402/Temporal/ZonedDateTime/non-canonical-utc.js | 2 +- .../Temporal/ZonedDateTime/timezone-case-insensitive.js | 2 +- test/intl402/Temporal/ZonedDateTime/timezone-ids-basic.js | 2 +- 18 files changed, 21 insertions(+), 15 deletions(-) diff --git a/features.txt b/features.txt index cba84fb484f..95b34248e36 100644 --- a/features.txt +++ b/features.txt @@ -92,6 +92,10 @@ import-defer # https://github.com/tc39/proposal-iterator-sequencing iterator-sequencing +# Time Zone Canonicalization +# https://github.com/tc39/proposal-canonical-tz +canonical-tz + ## Standard language features # # Language features that have been included in a published version of the diff --git a/test/intl402/DateTimeFormat/timezone-case-insensitive.js b/test/intl402/DateTimeFormat/timezone-case-insensitive.js index 34705d36465..6fc91b8fa05 100644 --- a/test/intl402/DateTimeFormat/timezone-case-insensitive.js +++ b/test/intl402/DateTimeFormat/timezone-case-insensitive.js @@ -4,6 +4,7 @@ /*--- esid: sec-initializedatetimeformat description: Time zone identifiers are case-normalized +features: [canonical-tz] ---*/ const timeZoneIdentifiers = [ diff --git a/test/intl402/DateTimeFormat/timezone-not-canonicalized.js b/test/intl402/DateTimeFormat/timezone-not-canonicalized.js index 26a195ea380..e2964f617f6 100644 --- a/test/intl402/DateTimeFormat/timezone-not-canonicalized.js +++ b/test/intl402/DateTimeFormat/timezone-not-canonicalized.js @@ -4,6 +4,7 @@ /*--- esid: sec-initializedatetimeformat description: Time zone identifiers are not canonicalized before storing in internal slots +features: [canonical-tz] ---*/ const baseOptions = { diff --git a/test/intl402/Temporal/ZonedDateTime/etc-timezone.js b/test/intl402/Temporal/ZonedDateTime/etc-timezone.js index 955edf6539f..c7663beb0e4 100644 --- a/test/intl402/Temporal/ZonedDateTime/etc-timezone.js +++ b/test/intl402/Temporal/ZonedDateTime/etc-timezone.js @@ -4,7 +4,7 @@ /*--- esid: sec-temporal.zoneddatetime description: Some Etc/GMT{+/-}{0}N timezones are valid, but not all -features: [Temporal] +features: [Temporal, canonical-tz] ---*/ // "Etc/GMT-0" through "Etc/GMT-14" are OK diff --git a/test/intl402/Temporal/ZonedDateTime/from/argument-valid.js b/test/intl402/Temporal/ZonedDateTime/from/argument-valid.js index ff897d932ac..9d847eb1a92 100644 --- a/test/intl402/Temporal/ZonedDateTime/from/argument-valid.js +++ b/test/intl402/Temporal/ZonedDateTime/from/argument-valid.js @@ -4,7 +4,7 @@ /*--- esid: sec-temporal.zoneddatetime.from description: Built-in time zones are parsed correctly out of valid strings -features: [Temporal] +features: [Temporal, canonical-tz] ---*/ const valids = [ diff --git a/test/intl402/Temporal/ZonedDateTime/from/do-not-canonicalize-iana-identifiers.js b/test/intl402/Temporal/ZonedDateTime/from/do-not-canonicalize-iana-identifiers.js index 0aa6aad8ff0..d32280825b5 100644 --- a/test/intl402/Temporal/ZonedDateTime/from/do-not-canonicalize-iana-identifiers.js +++ b/test/intl402/Temporal/ZonedDateTime/from/do-not-canonicalize-iana-identifiers.js @@ -4,7 +4,7 @@ /*--- esid: sec-temporal.zoneddatetime.from description: ZonedDateTime.from does not canonicalize time zone IDs -features: [Temporal] +features: [Temporal, canonical-tz] ---*/ const calcutta = Temporal.ZonedDateTime.from('2020-01-01T00:00:00+05:30[Asia/Calcutta]'); diff --git a/test/intl402/Temporal/ZonedDateTime/from/etc-timezone.js b/test/intl402/Temporal/ZonedDateTime/from/etc-timezone.js index 4afd6ec3d5c..0e98f05fe2c 100644 --- a/test/intl402/Temporal/ZonedDateTime/from/etc-timezone.js +++ b/test/intl402/Temporal/ZonedDateTime/from/etc-timezone.js @@ -4,7 +4,7 @@ /*--- esid: sec-temporal.zoneddatetime.from description: Some Etc/GMT{+/-}{0}N timezones are valid, but not all -features: [Temporal] +features: [Temporal, canonical-tz] ---*/ // "Etc/GMT-0" through "Etc/GMT-14" are OK diff --git a/test/intl402/Temporal/ZonedDateTime/from/timezone-case-insensitive.js b/test/intl402/Temporal/ZonedDateTime/from/timezone-case-insensitive.js index 6e767418d47..6fe4f9ce6ac 100644 --- a/test/intl402/Temporal/ZonedDateTime/from/timezone-case-insensitive.js +++ b/test/intl402/Temporal/ZonedDateTime/from/timezone-case-insensitive.js @@ -4,7 +4,7 @@ /*--- esid: sec-temporal.zoneddatetime.from description: Time zone identifiers are case-normalized -features: [Temporal] +features: [Temporal, canonical-tz] ---*/ const timeZoneIdentifiers = [ diff --git a/test/intl402/Temporal/ZonedDateTime/iana-legacy-names.js b/test/intl402/Temporal/ZonedDateTime/iana-legacy-names.js index 7306570ceed..523c22c956a 100644 --- a/test/intl402/Temporal/ZonedDateTime/iana-legacy-names.js +++ b/test/intl402/Temporal/ZonedDateTime/iana-legacy-names.js @@ -4,7 +4,7 @@ /*--- esid: sec-temporal.zoneddatetime description: IANA legacy names must be supported -features: [Temporal] +features: [Temporal, canonical-tz] ---*/ const legacyNames = [ diff --git a/test/intl402/Temporal/ZonedDateTime/links-asia.js b/test/intl402/Temporal/ZonedDateTime/links-asia.js index d7e30a15091..716f6e8410a 100644 --- a/test/intl402/Temporal/ZonedDateTime/links-asia.js +++ b/test/intl402/Temporal/ZonedDateTime/links-asia.js @@ -4,7 +4,7 @@ /*--- esid: sec-temporal.zoneddatetime description: ZonedDateTime constructor accepts link names as time zone ID input -features: [Temporal] +features: [Temporal, canonical-tz] ---*/ const testCases = [ diff --git a/test/intl402/Temporal/ZonedDateTime/links-backward.js b/test/intl402/Temporal/ZonedDateTime/links-backward.js index 2589861fddf..b2aed8b7601 100644 --- a/test/intl402/Temporal/ZonedDateTime/links-backward.js +++ b/test/intl402/Temporal/ZonedDateTime/links-backward.js @@ -4,7 +4,7 @@ /*--- esid: sec-temporal.zoneddatetime description: ZonedDateTime constructor accepts link names as time zone ID input -features: [Temporal] +features: [Temporal, canonical-tz] ---*/ const testCases = [ diff --git a/test/intl402/Temporal/ZonedDateTime/links-backzone.js b/test/intl402/Temporal/ZonedDateTime/links-backzone.js index f2017e0e961..694b6a43483 100644 --- a/test/intl402/Temporal/ZonedDateTime/links-backzone.js +++ b/test/intl402/Temporal/ZonedDateTime/links-backzone.js @@ -4,7 +4,7 @@ /*--- esid: sec-temporal.zoneddatetime description: ZonedDateTime constructor accepts link names as time zone ID input -features: [Temporal] +features: [Temporal, canonical-tz] ---*/ const testCases = [ diff --git a/test/intl402/Temporal/ZonedDateTime/links-etcetera.js b/test/intl402/Temporal/ZonedDateTime/links-etcetera.js index 1eeff08dbc0..b69d23a25dc 100644 --- a/test/intl402/Temporal/ZonedDateTime/links-etcetera.js +++ b/test/intl402/Temporal/ZonedDateTime/links-etcetera.js @@ -4,7 +4,7 @@ /*--- esid: sec-temporal.zoneddatetime description: ZonedDateTime constructor accepts link names as time zone ID input -features: [Temporal] +features: [Temporal, canonical-tz] ---*/ const testCases = [ diff --git a/test/intl402/Temporal/ZonedDateTime/links-europe.js b/test/intl402/Temporal/ZonedDateTime/links-europe.js index 36eb1c04ded..35af5c3c250 100644 --- a/test/intl402/Temporal/ZonedDateTime/links-europe.js +++ b/test/intl402/Temporal/ZonedDateTime/links-europe.js @@ -4,7 +4,7 @@ /*--- esid: sec-temporal.zoneddatetime description: ZonedDateTime constructor accepts link names as time zone ID input -features: [Temporal] +features: [Temporal, canonical-tz] ---*/ const testCases = [ diff --git a/test/intl402/Temporal/ZonedDateTime/links-northamerica.js b/test/intl402/Temporal/ZonedDateTime/links-northamerica.js index 91141cc9742..ec3e4444e50 100644 --- a/test/intl402/Temporal/ZonedDateTime/links-northamerica.js +++ b/test/intl402/Temporal/ZonedDateTime/links-northamerica.js @@ -4,7 +4,7 @@ /*--- esid: sec-temporal.zoneddatetime description: ZonedDateTime constructor accepts link names as time zone ID input -features: [Temporal] +features: [Temporal, canonical-tz] ---*/ const testCases = [ diff --git a/test/intl402/Temporal/ZonedDateTime/non-canonical-utc.js b/test/intl402/Temporal/ZonedDateTime/non-canonical-utc.js index 082797f48b9..e7f4d1e3931 100644 --- a/test/intl402/Temporal/ZonedDateTime/non-canonical-utc.js +++ b/test/intl402/Temporal/ZonedDateTime/non-canonical-utc.js @@ -4,7 +4,7 @@ /*--- esid: sec-temporal.zoneddatetime description: ZonedDateTime constructor accepts link names as time zone ID input -features: [Temporal] +features: [Temporal, canonical-tz] ---*/ const testCases = [ diff --git a/test/intl402/Temporal/ZonedDateTime/timezone-case-insensitive.js b/test/intl402/Temporal/ZonedDateTime/timezone-case-insensitive.js index 2b6578bdeca..6d1ce58eba9 100644 --- a/test/intl402/Temporal/ZonedDateTime/timezone-case-insensitive.js +++ b/test/intl402/Temporal/ZonedDateTime/timezone-case-insensitive.js @@ -4,7 +4,7 @@ /*--- esid: sec-temporal.zoneddatetime description: Time zone names are case-normalized -features: [Temporal] +features: [Temporal, canonical-tz] ---*/ const timeZone = 'eTc/gMt+1'; diff --git a/test/intl402/Temporal/ZonedDateTime/timezone-ids-basic.js b/test/intl402/Temporal/ZonedDateTime/timezone-ids-basic.js index b461240f77a..cbbd48e5292 100644 --- a/test/intl402/Temporal/ZonedDateTime/timezone-ids-basic.js +++ b/test/intl402/Temporal/ZonedDateTime/timezone-ids-basic.js @@ -4,7 +4,7 @@ /*--- esid: sec-temporal.zoneddatetime description: Basic tests for time zone IDs -features: [Temporal] +features: [Temporal, canonical-tz] ---*/ const valid = [