Added Intl.Era-monthcode to features (#4617)

* Added Intl.Era-monthcode to features for some non-iso8601-related Temporal calendar tests
This commit is contained in:
Ben Allen 2025-11-07 11:03:43 -08:00 committed by GitHub
parent f1433632af
commit dbb186bb07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
16 changed files with 16 additions and 16 deletions

View File

@ -5,7 +5,7 @@
esid: sec-temporal.plaindate.from
description: era and eraYear are ignored (for calendars not using eras)
includes: [temporalHelpers.js]
features: [Temporal]
features: [Temporal, Intl.Era-monthcode]
---*/
const result = Temporal.PlainDate.from({

View File

@ -4,7 +4,7 @@
/*---
esid: sec-temporal.plaindate.from
description: Calendar ID is canonicalized
features: [Temporal]
features: [Temporal, Intl.Era-monthcode]
---*/
[

View File

@ -5,7 +5,7 @@
esid: sec-temporal.plaindate.from
description: Calendar era code is canonicalized
includes: [temporalHelpers.js]
features: [Temporal]
features: [Temporal, Intl.Era-monthcode]
---*/
const date1 = Temporal.PlainDate.from({

View File

@ -5,7 +5,7 @@
description: Throws if eraYear in the property bag is Infinity or -Infinity
esid: sec-temporal.plaindate.from
includes: [compareArray.js, temporalHelpers.js]
features: [Temporal]
features: [Temporal, Intl.Era-monthcode]
---*/
const base = { era: "ad", month: 5, day: 2, calendar: "gregory" };

View File

@ -6,7 +6,7 @@ esid: sec-temporal.plaindate.from
description: >
Throw a TypeError if only one of era/eraYear fields is present (for calendar
using eras)
features: [Temporal]
features: [Temporal, Intl.Era-monthcode]
---*/
const base = { year: 2000, month: 5, day: 2, era: "ce", calendar: "gregory" };

View File

@ -18,7 +18,7 @@ info: |
calendars with regnal eras.
includes: [temporalHelpers.js]
features: [Temporal]
features: [Temporal, Intl.Era-monthcode]
---*/
// Based on a test originally by André Bargull <andre.bargull@gmail.com>

View File

@ -4,7 +4,7 @@
/*---
esid: sec-temporal.plaindate.prototype.since
description: Calendar ID is canonicalized
features: [Temporal]
features: [Temporal, Intl.Era-monthcode]
---*/
const instance = new Temporal.PlainDate(2024, 7, 2, "islamic-civil");

View File

@ -4,7 +4,7 @@
/*---
description: dateUntil works as expected after a leap month in a lunisolar calendar
esid: sec-temporal.plaindate.prototype.until
features: [Temporal]
features: [Temporal, Intl.Era-monthcode]
---*/
// 2001 is a leap year in the Chinese calendar with a M04L leap month.

View File

@ -6,7 +6,7 @@ esid: sec-temporal.plaindate.prototype.until
description: >
Tests balancing of days to months at end of month (ISO-like non-ISO calendars)
includes: [temporalHelpers.js]
features: [Temporal]
features: [Temporal, Intl.Era-monthcode]
---*/
for (const calendar of ["buddhist", "gregory", "japanese", "roc"]) {

View File

@ -6,7 +6,7 @@ esid: sec-temporal.plaindate.prototype.weekofyear
description: >
Temporal.PlainDate.prototype.weekOfYear returns undefined for all
non-ISO calendars without a well-defined week numbering system.
features: [Temporal]
features: [Temporal, Intl.Era-monthcode]
---*/
assert.sameValue(

View File

@ -4,7 +4,7 @@
/*---
esid: sec-temporal.plaindate.prototype.with
description: Behaviour when property bag forms a date out of bounds of the current era
features: [Temporal]
features: [Temporal, Intl.Era-monthcode]
---*/
// Last day of Showa era

View File

@ -5,7 +5,7 @@
esid: sec-temporal.plaindate.prototype.with
description: Calendar-specific mutually exclusive keys in mergeFields
includes: [temporalHelpers.js]
features: [Temporal]
features: [Temporal, Intl.Era-monthcode]
---*/
const instance = new Temporal.PlainDate(1981, 12, 15, "gregory");

View File

@ -5,7 +5,7 @@
esid: sec-temporal.plaindate.prototype.with
description: Calendar-specific mutually exclusive keys in mergeFields
includes: [temporalHelpers.js]
features: [Temporal]
features: [Temporal, Intl.Era-monthcode]
---*/
const lastDayOfShowa = Temporal.PlainDate.from({ era: "showa", eraYear: 64, year: 1989, month: 1, monthCode: "M01", day: 7, calendar: "japanese" });

View File

@ -4,7 +4,7 @@
/*---
esid: sec-temporal.plaindate.prototype.with
description: Properties passed to with() are calendar fields, not ISO date
features: [Temporal]
features: [Temporal, Intl.Era-monthcode]
---*/
const instance = new Temporal.PlainDate(2024, 8, 8, "hebrew");

View File

@ -6,7 +6,7 @@ esid: sec-temporal.plaindate.prototype.yearofweek
description: >
Temporal.PlainDate.prototype.yearOfWeek returns undefined for all
non-ISO calendars without a well-defined week numbering system.
features: [Temporal]
features: [Temporal, Intl.Era-monthcode]
---*/
assert.sameValue(

View File

@ -22,7 +22,7 @@ info: |
calendars with regnal eras.
includes: [temporalHelpers.js]
features: [Temporal]
features: [Temporal, Intl.Era-monthcode]
---*/
// Based on a test originally by André Bargull <andre.bargull@gmail.com>