Backed out 8 changesets (bug 1918596, bug 1917575, bug 1874689, bug 1925181, bug...
[gecko.git] / js / src / tests / test262 / built-ins / Temporal / PlainMonthDay / prototype / equals / argument-propertybag-calendar-case-insensitive.js
blob46a9c5792ddfec9cbe8d2660990b249e7f2291af
1 // |reftest| skip-if(!this.hasOwnProperty('Temporal')) -- Temporal is not enabled unconditionally
2 // Copyright (C) 2022 Igalia, S.L. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
5 /*---
6 esid: sec-temporal.plainmonthday.prototype.equals
7 description: The calendar name is case-insensitive
8 features: [Temporal]
9 ---*/
11 const instance = new Temporal.PlainMonthDay(11, 18);
13 const arg = { monthCode: "M11", day: 18, calendar: "IsO8601" };
14 const result = instance.equals(arg);
15 assert.sameValue(result, true, "Calendar is case-insensitive");
17 arg.calendar = "\u0130SO8601";
18 assert.throws(
19   RangeError,
20   () => instance.equals(arg),
21   "calendar ID is capital dotted I is not lowercased"
24 reportCompare(0, 0);