mirror of
https://github.com/tc39/test262.git
synced 2025-11-13 10:19:42 +01:00
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:
parent
f1433632af
commit
dbb186bb07
@ -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({
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
/*---
|
||||
esid: sec-temporal.plaindate.from
|
||||
description: Calendar ID is canonicalized
|
||||
features: [Temporal]
|
||||
features: [Temporal, Intl.Era-monthcode]
|
||||
---*/
|
||||
|
||||
[
|
||||
|
||||
@ -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({
|
||||
|
||||
@ -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" };
|
||||
|
||||
@ -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" };
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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");
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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"]) {
|
||||
|
||||
@ -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(
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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");
|
||||
|
||||
@ -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" });
|
||||
|
||||
@ -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");
|
||||
|
||||
@ -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(
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user