diff --git a/test/built-ins/Temporal/Calendar/from/calendar-case-insensitive.js b/test/built-ins/Temporal/Calendar/from/calendar-case-insensitive.js index c31020a8b7..6f96acdfe9 100644 --- a/test/built-ins/Temporal/Calendar/from/calendar-case-insensitive.js +++ b/test/built-ins/Temporal/Calendar/from/calendar-case-insensitive.js @@ -7,7 +7,7 @@ description: Calendar names are case-insensitive features: [Temporal] ---*/ -const arg = "jApAnEsE"; +const arg = "iSo8601"; const result = Temporal.Calendar.from(arg); -assert.sameValue(result.id, "japanese", "Calendar is case-insensitive"); +assert.sameValue(result.id, "iso8601", "Calendar is case-insensitive"); diff --git a/test/built-ins/Temporal/Instant/prototype/toZonedDateTime/calendar-case-insensitive.js b/test/built-ins/Temporal/Instant/prototype/toZonedDateTime/calendar-case-insensitive.js index 1cb96e3c66..56e6cecabb 100644 --- a/test/built-ins/Temporal/Instant/prototype/toZonedDateTime/calendar-case-insensitive.js +++ b/test/built-ins/Temporal/Instant/prototype/toZonedDateTime/calendar-case-insensitive.js @@ -9,6 +9,6 @@ features: [Temporal] const instance = new Temporal.Instant(1_000_000_000_000_000_000n); -const arg = "jApAnEsE";; +const arg = "iSo8601";; const result = instance.toZonedDateTime({ calendar: arg, timeZone: "UTC" }); -assert.sameValue(result.calendar.id, "japanese", "Calendar is case-insensitive"); +assert.sameValue(result.calendar.id, "iso8601", "Calendar is case-insensitive"); diff --git a/test/built-ins/Temporal/Instant/prototype/toZonedDateTime/timezone-case-insensitive.js b/test/built-ins/Temporal/Instant/prototype/toZonedDateTime/timezone-case-insensitive.js index ff123031d2..9dee0af7d3 100644 --- a/test/built-ins/Temporal/Instant/prototype/toZonedDateTime/timezone-case-insensitive.js +++ b/test/built-ins/Temporal/Instant/prototype/toZonedDateTime/timezone-case-insensitive.js @@ -9,6 +9,6 @@ features: [Temporal] const instance = new Temporal.Instant(0n); -const timeZone = 'eTc/gMt+1'; +const timeZone = 'uTc'; const result = instance.toZonedDateTime({ timeZone, calendar: "iso8601" }); -assert.sameValue(result.timeZone.id, 'Etc/GMT+1', `Time zone created from string "${timeZone}"`); +assert.sameValue(result.timeZone.id, 'UTC', `Time zone created from string "${timeZone}"`); diff --git a/test/built-ins/Temporal/Instant/prototype/toZonedDateTimeISO/timezone-case-insensitive.js b/test/built-ins/Temporal/Instant/prototype/toZonedDateTimeISO/timezone-case-insensitive.js index 2d11d1c612..ab37a3564c 100644 --- a/test/built-ins/Temporal/Instant/prototype/toZonedDateTimeISO/timezone-case-insensitive.js +++ b/test/built-ins/Temporal/Instant/prototype/toZonedDateTimeISO/timezone-case-insensitive.js @@ -9,6 +9,6 @@ features: [Temporal] const instance = new Temporal.Instant(0n); -const timeZone = 'eTc/gMt+1'; +const timeZone = 'uTc'; const result = instance.toZonedDateTimeISO(timeZone); -assert.sameValue(result.timeZone.id, 'Etc/GMT+1', `Time zone created from string "${timeZone}"`); +assert.sameValue(result.timeZone.id, 'UTC', `Time zone created from string "${timeZone}"`); diff --git a/test/built-ins/Temporal/Now/plainDate/calendar-case-insensitive.js b/test/built-ins/Temporal/Now/plainDate/calendar-case-insensitive.js index 9ba3be014f..d4c17111c7 100644 --- a/test/built-ins/Temporal/Now/plainDate/calendar-case-insensitive.js +++ b/test/built-ins/Temporal/Now/plainDate/calendar-case-insensitive.js @@ -7,7 +7,7 @@ description: Calendar names are case-insensitive features: [Temporal] ---*/ -const arg = "jApAnEsE"; +const arg = "iSo8601"; const result = Temporal.Now.plainDate(arg); -assert.sameValue(result.calendar.id, "japanese", "Calendar is case-insensitive"); +assert.sameValue(result.calendar.id, "iso8601", "Calendar is case-insensitive"); diff --git a/test/built-ins/Temporal/Now/plainDateTime/calendar-case-insensitive.js b/test/built-ins/Temporal/Now/plainDateTime/calendar-case-insensitive.js index e3599cc28a..7e82939e6f 100644 --- a/test/built-ins/Temporal/Now/plainDateTime/calendar-case-insensitive.js +++ b/test/built-ins/Temporal/Now/plainDateTime/calendar-case-insensitive.js @@ -7,7 +7,7 @@ description: Calendar names are case-insensitive features: [Temporal] ---*/ -const arg = "jApAnEsE"; +const arg = "iSo8601"; const result = Temporal.Now.plainDateTime(arg); -assert.sameValue(result.calendar.id, "japanese", "Calendar is case-insensitive"); +assert.sameValue(result.calendar.id, "iso8601", "Calendar is case-insensitive"); diff --git a/test/built-ins/Temporal/Now/zonedDateTime/calendar-case-insensitive.js b/test/built-ins/Temporal/Now/zonedDateTime/calendar-case-insensitive.js index f314c9a757..d8bb11be3c 100644 --- a/test/built-ins/Temporal/Now/zonedDateTime/calendar-case-insensitive.js +++ b/test/built-ins/Temporal/Now/zonedDateTime/calendar-case-insensitive.js @@ -7,7 +7,7 @@ description: Calendar names are case-insensitive features: [Temporal] ---*/ -const arg = "jApAnEsE"; +const arg = "iSo8601"; const result = Temporal.Now.zonedDateTime(arg); -assert.sameValue(result.calendar.id, "japanese", "Calendar is case-insensitive"); +assert.sameValue(result.calendar.id, "iso8601", "Calendar is case-insensitive"); diff --git a/test/built-ins/Temporal/Now/zonedDateTime/timezone-case-insensitive.js b/test/built-ins/Temporal/Now/zonedDateTime/timezone-case-insensitive.js index e80ec304b7..ca8d702580 100644 --- a/test/built-ins/Temporal/Now/zonedDateTime/timezone-case-insensitive.js +++ b/test/built-ins/Temporal/Now/zonedDateTime/timezone-case-insensitive.js @@ -7,6 +7,6 @@ description: Time zone names are case insensitive features: [Temporal] ---*/ -const timeZone = 'eTc/gMt+1'; +const timeZone = 'UtC'; const result = Temporal.Now.zonedDateTime("iso8601", timeZone); -assert.sameValue(result.timeZone.id, 'Etc/GMT+1', `Time zone created from string "${timeZone}"`); +assert.sameValue(result.timeZone.id, 'UTC', `Time zone created from string "${timeZone}"`); diff --git a/test/built-ins/Temporal/Now/zonedDateTimeISO/timezone-case-insensitive.js b/test/built-ins/Temporal/Now/zonedDateTimeISO/timezone-case-insensitive.js index 845c25d379..f34f1d1ea5 100644 --- a/test/built-ins/Temporal/Now/zonedDateTimeISO/timezone-case-insensitive.js +++ b/test/built-ins/Temporal/Now/zonedDateTimeISO/timezone-case-insensitive.js @@ -7,6 +7,6 @@ description: Time zone names are case insensitive features: [Temporal] ---*/ -const timeZone = 'eTc/gMt+1'; +const timeZone = 'UtC'; const result = Temporal.Now.zonedDateTimeISO(timeZone); -assert.sameValue(result.timeZone.id, 'Etc/GMT+1', `Time zone created from string "${timeZone}"`); +assert.sameValue(result.timeZone.id, 'UTC', `Time zone created from string "${timeZone}"`); diff --git a/test/built-ins/Temporal/PlainDate/calendar-case-insensitive.js b/test/built-ins/Temporal/PlainDate/calendar-case-insensitive.js index 298b706c9e..b003c3fca8 100644 --- a/test/built-ins/Temporal/PlainDate/calendar-case-insensitive.js +++ b/test/built-ins/Temporal/PlainDate/calendar-case-insensitive.js @@ -7,7 +7,7 @@ description: Calendar names are case-insensitive features: [Temporal] ---*/ -const arg = "jApAnEsE"; +const arg = "iSo8601"; const result = new Temporal.PlainDate(2000, 5, 2, arg); -assert.sameValue(result.calendar.id, "japanese", "Calendar is case-insensitive"); +assert.sameValue(result.calendar.id, "iso8601", "Calendar is case-insensitive"); diff --git a/test/built-ins/Temporal/PlainDate/prototype/toZonedDateTime/timezone-case-insensitive.js b/test/built-ins/Temporal/PlainDate/prototype/toZonedDateTime/timezone-case-insensitive.js index 74673a9d3d..a96371d4d3 100644 --- a/test/built-ins/Temporal/PlainDate/prototype/toZonedDateTime/timezone-case-insensitive.js +++ b/test/built-ins/Temporal/PlainDate/prototype/toZonedDateTime/timezone-case-insensitive.js @@ -9,6 +9,6 @@ features: [Temporal] const instance = new Temporal.PlainDate(2000, 5, 2); -const timeZone = 'eTc/gMt+1'; +const timeZone = 'uTc'; const result = instance.toZonedDateTime(timeZone); -assert.sameValue(result.timeZone.id, 'Etc/GMT+1', `Time zone created from string "${timeZone}"`); +assert.sameValue(result.timeZone.id, 'UTC', `Time zone created from string "${timeZone}"`); diff --git a/test/built-ins/Temporal/PlainDate/prototype/withCalendar/calendar-case-insensitive.js b/test/built-ins/Temporal/PlainDate/prototype/withCalendar/calendar-case-insensitive.js index f98ac8611c..94f6ca737e 100644 --- a/test/built-ins/Temporal/PlainDate/prototype/withCalendar/calendar-case-insensitive.js +++ b/test/built-ins/Temporal/PlainDate/prototype/withCalendar/calendar-case-insensitive.js @@ -9,6 +9,6 @@ features: [Temporal] const instance = new Temporal.PlainDate(1976, 11, 18, { id: "replace-me" }); -const arg = "jApAnEsE";; +const arg = "iSo8601";; const result = instance.withCalendar(arg); -assert.sameValue(result.calendar.id, "japanese", "Calendar is case-insensitive"); +assert.sameValue(result.calendar.id, "iso8601", "Calendar is case-insensitive"); diff --git a/test/built-ins/Temporal/PlainDateTime/calendar-case-insensitive.js b/test/built-ins/Temporal/PlainDateTime/calendar-case-insensitive.js index b8bb312ef5..56556f413e 100644 --- a/test/built-ins/Temporal/PlainDateTime/calendar-case-insensitive.js +++ b/test/built-ins/Temporal/PlainDateTime/calendar-case-insensitive.js @@ -7,7 +7,7 @@ description: Calendar names are case-insensitive features: [Temporal] ---*/ -const arg = "jApAnEsE"; +const arg = "iSo8601"; const result = new Temporal.PlainDateTime(2000, 5, 2, 15, 23, 30, 987, 654, 321, arg); -assert.sameValue(result.calendar.id, "japanese", "Calendar is case-insensitive"); +assert.sameValue(result.calendar.id, "iso8601", "Calendar is case-insensitive"); diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/toZonedDateTime/timezone-case-insensitive.js b/test/built-ins/Temporal/PlainDateTime/prototype/toZonedDateTime/timezone-case-insensitive.js index ce432b3a9d..4d0c384981 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/toZonedDateTime/timezone-case-insensitive.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/toZonedDateTime/timezone-case-insensitive.js @@ -9,6 +9,6 @@ features: [Temporal] const instance = new Temporal.PlainDateTime(2000, 5, 2); -const timeZone = 'eTc/gMt+1'; +const timeZone = 'uTc'; const result = instance.toZonedDateTime(timeZone); -assert.sameValue(result.timeZone.id, 'Etc/GMT+1', `Time zone created from string "${timeZone}"`); +assert.sameValue(result.timeZone.id, 'UTC', `Time zone created from string "${timeZone}"`); diff --git a/test/built-ins/Temporal/PlainDateTime/prototype/withCalendar/calendar-case-insensitive.js b/test/built-ins/Temporal/PlainDateTime/prototype/withCalendar/calendar-case-insensitive.js index c731bcb3e3..b1fe3687e4 100644 --- a/test/built-ins/Temporal/PlainDateTime/prototype/withCalendar/calendar-case-insensitive.js +++ b/test/built-ins/Temporal/PlainDateTime/prototype/withCalendar/calendar-case-insensitive.js @@ -9,6 +9,6 @@ features: [Temporal] const instance = new Temporal.PlainDateTime(1976, 11, 18, 15, 23, 30, 123, 456, 789, { id: "replace-me" }); -const arg = "jApAnEsE";; +const arg = "iSo8601";; const result = instance.withCalendar(arg); -assert.sameValue(result.calendar.id, "japanese", "Calendar is case-insensitive"); +assert.sameValue(result.calendar.id, "iso8601", "Calendar is case-insensitive"); diff --git a/test/built-ins/Temporal/PlainMonthDay/calendar-case-insensitive.js b/test/built-ins/Temporal/PlainMonthDay/calendar-case-insensitive.js index ffb4ba82d6..7bf5d6fa83 100644 --- a/test/built-ins/Temporal/PlainMonthDay/calendar-case-insensitive.js +++ b/test/built-ins/Temporal/PlainMonthDay/calendar-case-insensitive.js @@ -7,7 +7,7 @@ description: Calendar names are case-insensitive features: [Temporal] ---*/ -const arg = "jApAnEsE"; +const arg = "iSo8601"; const result = new Temporal.PlainMonthDay(12, 15, arg, 1972); -assert.sameValue(result.calendar.id, "japanese", "Calendar is case-insensitive"); +assert.sameValue(result.calendar.id, "iso8601", "Calendar is case-insensitive"); diff --git a/test/built-ins/Temporal/PlainTime/prototype/toZonedDateTime/timezone-case-insensitive.js b/test/built-ins/Temporal/PlainTime/prototype/toZonedDateTime/timezone-case-insensitive.js index 06b72af8db..9fa6c6a435 100644 --- a/test/built-ins/Temporal/PlainTime/prototype/toZonedDateTime/timezone-case-insensitive.js +++ b/test/built-ins/Temporal/PlainTime/prototype/toZonedDateTime/timezone-case-insensitive.js @@ -9,6 +9,6 @@ features: [Temporal] const instance = new Temporal.PlainTime(); -const timeZone = 'eTc/gMt+1'; +const timeZone = 'uTc'; const result = instance.toZonedDateTime({ plainDate: new Temporal.PlainDate(2000, 5, 2), timeZone }); -assert.sameValue(result.timeZone.id, 'Etc/GMT+1', `Time zone created from string "${timeZone}"`); +assert.sameValue(result.timeZone.id, 'UTC', `Time zone created from string "${timeZone}"`); diff --git a/test/built-ins/Temporal/PlainYearMonth/calendar-case-insensitive.js b/test/built-ins/Temporal/PlainYearMonth/calendar-case-insensitive.js index 2ae1fee560..b512c62b84 100644 --- a/test/built-ins/Temporal/PlainYearMonth/calendar-case-insensitive.js +++ b/test/built-ins/Temporal/PlainYearMonth/calendar-case-insensitive.js @@ -7,7 +7,7 @@ description: Calendar names are case-insensitive features: [Temporal] ---*/ -const arg = "jApAnEsE"; +const arg = "iSo8601"; const result = new Temporal.PlainYearMonth(2000, 5, arg, 1); -assert.sameValue(result.calendar.id, "japanese", "Calendar is case-insensitive"); +assert.sameValue(result.calendar.id, "iso8601", "Calendar is case-insensitive"); diff --git a/test/built-ins/Temporal/TimeZone/from/timezone-case-insensitive.js b/test/built-ins/Temporal/TimeZone/from/timezone-case-insensitive.js index 6a3be77d83..b02045f92e 100644 --- a/test/built-ins/Temporal/TimeZone/from/timezone-case-insensitive.js +++ b/test/built-ins/Temporal/TimeZone/from/timezone-case-insensitive.js @@ -7,6 +7,6 @@ description: Time zone names are case insensitive features: [Temporal] ---*/ -const timeZone = 'eTc/gMt+1'; +const timeZone = 'UtC'; const result = Temporal.TimeZone.from(timeZone); -assert.sameValue(result.id, 'Etc/GMT+1', `Time zone created from string "${timeZone}"`); +assert.sameValue(result.id, 'UTC', `Time zone created from string "${timeZone}"`); diff --git a/test/built-ins/Temporal/TimeZone/prototype/getPlainDateTimeFor/calendar-case-insensitive.js b/test/built-ins/Temporal/TimeZone/prototype/getPlainDateTimeFor/calendar-case-insensitive.js index e9071463ee..9fa1a2247f 100644 --- a/test/built-ins/Temporal/TimeZone/prototype/getPlainDateTimeFor/calendar-case-insensitive.js +++ b/test/built-ins/Temporal/TimeZone/prototype/getPlainDateTimeFor/calendar-case-insensitive.js @@ -9,6 +9,6 @@ features: [Temporal] const instance = new Temporal.TimeZone("UTC"); -const arg = "jApAnEsE";; +const arg = "iSo8601";; const result = instance.getPlainDateTimeFor(new Temporal.Instant(0n), arg); -assert.sameValue(result.calendar.id, "japanese", "Calendar is case-insensitive"); +assert.sameValue(result.calendar.id, "iso8601", "Calendar is case-insensitive"); diff --git a/test/built-ins/Temporal/ZonedDateTime/calendar-case-insensitive.js b/test/built-ins/Temporal/ZonedDateTime/calendar-case-insensitive.js index d4d6cdbba5..6e7edba281 100644 --- a/test/built-ins/Temporal/ZonedDateTime/calendar-case-insensitive.js +++ b/test/built-ins/Temporal/ZonedDateTime/calendar-case-insensitive.js @@ -7,7 +7,7 @@ description: Calendar names are case-insensitive features: [Temporal] ---*/ -const arg = "jApAnEsE"; +const arg = "iSo8601"; const result = new Temporal.ZonedDateTime(0n, "UTC", arg); -assert.sameValue(result.calendar.id, "japanese", "Calendar is case-insensitive"); +assert.sameValue(result.calendar.id, "iso8601", "Calendar is case-insensitive"); diff --git a/test/built-ins/Temporal/ZonedDateTime/from/timezone-case-insensitive.js b/test/built-ins/Temporal/ZonedDateTime/from/timezone-case-insensitive.js index 3741ade627..c6b4dec2e3 100644 --- a/test/built-ins/Temporal/ZonedDateTime/from/timezone-case-insensitive.js +++ b/test/built-ins/Temporal/ZonedDateTime/from/timezone-case-insensitive.js @@ -7,6 +7,6 @@ description: Time zone names are case insensitive features: [Temporal] ---*/ -const timeZone = 'eTc/gMt+1'; +const timeZone = 'uTc'; const result = Temporal.ZonedDateTime.from({ year: 2000, month: 5, day: 2, timeZone }); -assert.sameValue(result.timeZone.id, 'Etc/GMT+1', `Time zone created from string "${timeZone}"`); +assert.sameValue(result.timeZone.id, 'UTC', `Time zone created from string "${timeZone}"`); diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/withTimeZone/timezone-case-insensitive.js b/test/built-ins/Temporal/ZonedDateTime/prototype/withTimeZone/timezone-case-insensitive.js index 286f7ba963..d977516ea9 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/withTimeZone/timezone-case-insensitive.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/withTimeZone/timezone-case-insensitive.js @@ -9,6 +9,6 @@ features: [Temporal] const instance = new Temporal.ZonedDateTime(0n, "UTC"); -const timeZone = 'eTc/gMt+1'; +const timeZone = 'uTc'; const result = instance.withTimeZone(timeZone); -assert.sameValue(result.timeZone.id, 'Etc/GMT+1', `Time zone created from string "${timeZone}"`); +assert.sameValue(result.timeZone.id, 'UTC', `Time zone created from string "${timeZone}"`); diff --git a/test/built-ins/Temporal/ZonedDateTime/timezone-case-insensitive.js b/test/built-ins/Temporal/ZonedDateTime/timezone-case-insensitive.js index be53f71ce7..3c780f6a3c 100644 --- a/test/built-ins/Temporal/ZonedDateTime/timezone-case-insensitive.js +++ b/test/built-ins/Temporal/ZonedDateTime/timezone-case-insensitive.js @@ -7,6 +7,6 @@ description: Time zone names are case insensitive features: [Temporal] ---*/ -const timeZone = 'eTc/gMt+1'; +const timeZone = 'uTc'; const result = new Temporal.ZonedDateTime(0n, timeZone); -assert.sameValue(result.timeZone.id, 'Etc/GMT+1', `Time zone created from string "${timeZone}"`); +assert.sameValue(result.timeZone.id, 'UTC', `Time zone created from string "${timeZone}"`); diff --git a/test/intl402/Temporal/Calendar/calendar-case-insensitive.js b/test/intl402/Temporal/Calendar/calendar-case-insensitive.js new file mode 100644 index 0000000000..085f7eaefe --- /dev/null +++ b/test/intl402/Temporal/Calendar/calendar-case-insensitive.js @@ -0,0 +1,11 @@ +// Copyright (C) 2022 Igalia, S.L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-temporal.calendar constructor +description: Calendar names are case-insensitive +features: [Temporal] +---*/ + +const result = new Temporal.Calendar("jApAnEsE"); +assert.sameValue(result.toString(), "japanese", "Calendar is case-insensitive"); diff --git a/test/intl402/Temporal/Calendar/from/calendar-case-insensitive.js b/test/intl402/Temporal/Calendar/from/calendar-case-insensitive.js new file mode 100644 index 0000000000..c31020a8b7 --- /dev/null +++ b/test/intl402/Temporal/Calendar/from/calendar-case-insensitive.js @@ -0,0 +1,13 @@ +// Copyright (C) 2022 Igalia, S.L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-temporal.calendar.prototype.from +description: Calendar names are case-insensitive +features: [Temporal] +---*/ + +const arg = "jApAnEsE"; + +const result = Temporal.Calendar.from(arg); +assert.sameValue(result.id, "japanese", "Calendar is case-insensitive"); diff --git a/test/intl402/Temporal/TimeZone/from/timezone-case-insensitive.js b/test/intl402/Temporal/TimeZone/from/timezone-case-insensitive.js new file mode 100644 index 0000000000..6a3be77d83 --- /dev/null +++ b/test/intl402/Temporal/TimeZone/from/timezone-case-insensitive.js @@ -0,0 +1,12 @@ +// Copyright (C) 2022 Igalia, S.L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-temporal.timezone.prototype.from +description: Time zone names are case insensitive +features: [Temporal] +---*/ + +const timeZone = 'eTc/gMt+1'; +const result = Temporal.TimeZone.from(timeZone); +assert.sameValue(result.id, 'Etc/GMT+1', `Time zone created from string "${timeZone}"`); diff --git a/test/intl402/Temporal/TimeZone/timezone-case-insensitive.js b/test/intl402/Temporal/TimeZone/timezone-case-insensitive.js new file mode 100644 index 0000000000..bc89480717 --- /dev/null +++ b/test/intl402/Temporal/TimeZone/timezone-case-insensitive.js @@ -0,0 +1,12 @@ +// Copyright (C) 2022 Igalia, S.L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-temporal.timezone constructor +description: Time zone names are case insensitive +features: [Temporal] +---*/ + +const timeZone = 'eTc/gMt+1'; +const result = new Temporal.TimeZone(timeZone); +assert.sameValue(result.toString(), 'Etc/GMT+1', `Time zone created from string "${timeZone}"`);