Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / Temporal / PlainMonthDay / prototype / equals / argument-propertybag-calendar-case-insensitive.js
blobb5f54d1a2141f5363c22617a0660e2197a2b00b4
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 calendar = "IsO8601";
15 const arg = { monthCode: "M11", day: 18, calendar };
16 const result = instance.equals(arg);
17 assert.sameValue(result, true, "Calendar is case-insensitive");
19 reportCompare(0, 0);