2022-09-07 10:30:00 +02:00
|
|
|
// Copyright (C) 2022 Igalia, S.L. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
|
|
|
/*---
|
2022-09-13 20:21:30 +02:00
|
|
|
esid: sec-temporal.plainmonthday
|
2022-09-07 10:30:00 +02:00
|
|
|
description: Calendar names are case-insensitive
|
|
|
|
features: [Temporal]
|
|
|
|
---*/
|
|
|
|
|
2024-07-03 03:00:28 +02:00
|
|
|
let arg = "iSo8601";
|
2022-09-07 10:30:00 +02:00
|
|
|
|
|
|
|
const result = new Temporal.PlainMonthDay(12, 15, arg, 1972);
|
2023-02-17 21:28:55 +01:00
|
|
|
assert.sameValue(result.calendarId, "iso8601", "Calendar is case-insensitive");
|
2024-07-03 03:00:28 +02:00
|
|
|
|
|
|
|
arg = "\u0130SO8601";
|
|
|
|
assert.throws(
|
|
|
|
RangeError,
|
|
|
|
() => new Temporal.PlainMonthDay(12, 15, arg, 1972),
|
|
|
|
"calendar ID is capital dotted I is not lowercased"
|
|
|
|
);
|