From e17d44db65f73b38d4f94685b563493bc04189b4 Mon Sep 17 00:00:00 2001 From: Frank Yung-Fong Tang Date: Tue, 20 Sep 2022 01:24:48 -0700 Subject: [PATCH] Split withCalendar/calendar-case-insensitive.js to intl402 (#3670) --- .../withCalendar/calendar-case-insensitive.js | 4 ++-- .../withCalendar/calendar-case-insensitive.js | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 test/intl402/Temporal/ZonedDateTime/prototype/withCalendar/calendar-case-insensitive.js diff --git a/test/built-ins/Temporal/ZonedDateTime/prototype/withCalendar/calendar-case-insensitive.js b/test/built-ins/Temporal/ZonedDateTime/prototype/withCalendar/calendar-case-insensitive.js index ef0fc6bb7a..ff65a42f69 100644 --- a/test/built-ins/Temporal/ZonedDateTime/prototype/withCalendar/calendar-case-insensitive.js +++ b/test/built-ins/Temporal/ZonedDateTime/prototype/withCalendar/calendar-case-insensitive.js @@ -9,6 +9,6 @@ features: [Temporal] const instance = new Temporal.ZonedDateTime(1_000_000_000_000_000_000n, "UTC", { 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/intl402/Temporal/ZonedDateTime/prototype/withCalendar/calendar-case-insensitive.js b/test/intl402/Temporal/ZonedDateTime/prototype/withCalendar/calendar-case-insensitive.js new file mode 100644 index 0000000000..ef0fc6bb7a --- /dev/null +++ b/test/intl402/Temporal/ZonedDateTime/prototype/withCalendar/calendar-case-insensitive.js @@ -0,0 +1,14 @@ +// 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.zoneddatetime.prototype.withcalendar +description: Calendar names are case-insensitive +features: [Temporal] +---*/ + +const instance = new Temporal.ZonedDateTime(1_000_000_000_000_000_000n, "UTC", { id: "replace-me" }); + +const arg = "jApAnEsE";; +const result = instance.withCalendar(arg); +assert.sameValue(result.calendar.id, "japanese", "Calendar is case-insensitive");