7396 Commits

Author SHA1 Message Date
André Bargull
0216e80a13 Test options processing for zip and zipKeyed 2025-11-25 13:06:50 -08:00
André Bargull
59b1a43416 Add standard built-ins tests for Iterator.zip and Iterator.zipKeyed 2025-11-25 13:06:50 -08:00
Mathias Bynens
834912b0a6 Add tests for Unicode 17 property escapes
Issue: https://github.com/tc39/ecma262/issues/3688

.
2025-11-25 12:57:40 -08:00
Mathias Bynens
27d796286c Add tests for Unicode 17 identifiers and unicodeSets
Issue: https://github.com/tc39/ecma262/issues/3688
2025-11-25 12:25:37 -08:00
Tim Chevalier
26058a01fd
Temporal: Coverage for wrapping at the end of the month (#4695)
Covers Indian, Hijri, and Persian calendars
2025-11-24 15:10:39 -08:00
Tim Chevalier
a5eaadfb43 Temporal: Add order-of-operations tests for toPlainDate
Add order-of-operations tests for toPlainDate for PlainMonthDay
and PlainYearMonth
2025-11-24 11:25:28 -08:00
Tim Chevalier
3aa7531077 Temporal: Split up old Chinese and Dangi calendar tests; remove out-of-normal-range dates 2025-11-20 17:14:41 -08:00
Tim Chevalier
7b8978354c
Temporal: Add tests for a non-ISO-calendar edge case with leap years and differencing (#4636)
See https://github.com/tc39/proposal-temporal/issues/3159
2025-11-20 16:36:39 -08:00
Aapo Alasuutari
9cd2385591 fix: unify and clarify language around undefined timeout arg in DoWait 2025-11-20 10:33:20 -08:00
Tim Chevalier
5ad17a2068 Temporal: Wrapping at end of month, Coptic, Ethioaa, and Ethiopic calendars
Also correct some of the error message strings in the
wrapping-at-end-of-month-gregory tests
2025-11-20 12:42:50 +01:00
Tim Chevalier
de78e27f89 Temporal: Fix rebase error in test 2025-11-20 12:38:40 +01:00
Linus Groh
15ff5752ab
Fix duplicated file extension (#4691) 2025-11-20 06:29:14 +00:00
Philip Chimento
34c2fa9d97 Intl Era Monthcode: Update Chinese calendar reference day test
This removes some workarounds for things that are no longer
implementation-defined as of the Intl Era Monthcode proposal.
2025-11-19 11:14:39 +01:00
Philip Chimento
caef6b2082 Intl Era Monthcode: Tests for with() around Gregorian-like leap years
Adds tests for with() in the four calendars with Gregorian-like leap
years (buddhist, gregory, japanese, roc).
2025-11-19 11:12:01 +01:00
Philip Chimento
1648f70ba4 Intl Era Monthcode: Tests for difference around Gregorian-like leap years
Adds tests for since and until in the four calendars with Gregorian-like
leap years (buddhist, gregory, japanese, roc).
2025-11-19 11:12:01 +01:00
Philip Chimento
4246feccce Intl Era Monthcode: Tests for addition around Gregorian-like leap years
Adds tests for addition and subtraction in the four calendars with
Gregorian-like leap years (buddhist, gregory, japanese, roc).
2025-11-19 11:12:01 +01:00
Tim Chevalier
3b2bc2c5b6 Temporal: Add tests for date differencing across era boundaries for Hijri and Ethiopic calendars 2025-11-18 21:58:11 -08:00
Philip Chimento
eb438e25e0
Intl Era Monthcode: Add feature missing from front matter (#4687) 2025-11-19 05:37:34 +00:00
Richard Gibson
cff5686028
harness: Remove typeCoercion.js BigInt/Symbol dependencies (#4683) 2025-11-19 00:46:51 +00:00
Tim Chevalier
7ab1a79c0e Temporal: Add tests for addition/subtraction across era boundaries for Hijri calendars 2025-11-18 16:32:11 -08:00
Tim Chevalier
29e8305d0f
Temporal: Tests for duration rounding and totaling (#4662)
* Temporal: Tests for duration rounding and totaling

This provides coverage for the bug in https://github.com/tc39/proposal-temporal/issues/3168

* Update test/built-ins/Temporal/Duration/prototype/total/rounding-window.js

---------

Co-authored-by: Philip Chimento <philip.chimento@gmail.com>
2025-11-18 15:15:51 -08:00
Frank Yung-Fong Tang
d086cbc2a8
Remove test for era formatting in iso8601 calendar (#4676)
Not specified, currently ILD. See https://github.com/tc39/ecma402/issues/1036
2025-11-18 09:27:32 -08:00
Philip Chimento
fb40b0e8aa Intl Era Monthcode: Add basic difference tests for ISO-like calendars
Basic difference tests for the four non-ISO calendars that use ISO-like
months and years (buddhist, gregory, japanese, roc).
2025-11-18 08:35:08 -08:00
Philip Chimento
9ec8f47e0e Intl Era Monthcode: Add basic addition tests for ISO-like calendars
Basic addition tests for the four non-ISO calendars that use ISO-like
months and years (buddhist, gregory, japanese, roc).
2025-11-18 08:35:08 -08:00
Philip Chimento
ed01bba772 Intl Era Monthcode: Fix reference ISO date for 2033-M11L in Chinese calendar
As per https://www.hko.gov.hk/en/gts/time/calendar/pdf/files/2033e.pdf
and https://taiwan-database.net/PDFs/WTFpdf23.pdf the leap month should
start on December 22 instead of 23.
2025-11-18 11:19:10 +01:00
Jesse Alama
464eb47200
Remove non-canonical values from Intl.supportedValuesOf("calendar") test (#4673)
Fixes #4639.
2025-11-18 10:16:13 +00:00
Tim Chevalier
875b3ee068
Temporal: Add test for formatting Temporal objects with era formatter (#4634)
See https://github.com/tc39/proposal-temporal/issues/3049
2025-11-17 23:20:16 -08:00
Ben Allen
3743134508 Update reference year for M11L in Chinese calendar to 2033 (supported date) instead of 1517 (date before our supported range) 2025-11-17 23:02:15 -08:00
Ben Allen
c125a8dc61 Added Intl.Era-monthcode feature for several tests 2025-11-17 11:57:40 -08:00
Philip Chimento
c3594286b4 Intl Era Monthcode: Add wrapping-at-end-of-month tests for Chinese/Dangi
Tests analogous to the Gregorian-like ones in the previous commit. For
example, when taking the difference between day 30 of a 30-day month and
day 29 of the following 29-day month, the result should be unambiguous
with respect to constraining: 29 days, not 1 month.
2025-11-17 14:33:11 +01:00
Philip Chimento
a68560c376 Intl Era Monthcode: Split up "wrapping-at-end-of-month-gregorian"
The name is confusing. It was intended to apply to all Gregorian-like
non-ISO calendars but when adding more calendar tests it seems to be
convenient to put each calendar's tests in their own file.

Use appropriate arithmetic years for each of the calendars.
2025-11-17 14:33:11 +01:00
Philip Chimento
8e3516bffd Intl Era Monthcode: Leap month tests for with() methods
Adds coverage for the constrain behaviour around leap months when using
the with() method to change the year, for the three calendars with leap
months.
2025-11-17 14:21:45 +01:00
Philip Chimento
359a303fb1 Intl Era Monthcode: Tests for mutually exclusive fields in with()
There was some coverage for mutually exclusive fields (month/monthCode,
and era+eraYear/year). This expands it to cover all supported calendars
and for PlainDateTime/ZonedDateTime as well.
2025-11-17 14:12:19 +01:00
Philip Chimento
8c87fb920b Intl Era Monthcode: Arithmetic year tests for non-ISO calendars
Tests the spec logic of determining the epoch year, and spot-checks
various other values of the arithmetic year given an era and era year.
2025-11-17 11:14:32 +01:00
Philip Chimento
8d2fba2d16 Temporal: Add ISO8601 PlainDate.p.with leap year test
This was not particularly well covered in the existing tests.
2025-11-17 10:55:58 +01:00
Philip Chimento
d12966d207 Temporal: Add ISO8601 PlainDate.p.with days constraining test
This was not particularly well covered in the existing tests.
2025-11-17 10:55:58 +01:00
Philip Chimento
f4367bc315 Temporal: Expand ISO8601 PlainDate.p.with tests
Move coverage of plural units to a separate file, and add some more
coverage for the overflow option.
2025-11-17 10:55:58 +01:00
Philip Chimento
2f0cc98718 Temporal: Add ISO8601 PlainDate.p.add days constraining test
This was not particularly well covered in the existing tests.
2025-11-17 10:55:58 +01:00
Philip Chimento
5d4feb344e Temporal: Expand ISO8601 PlainDate.p.add arithmetic tests
These were missing negative durations, as well as a test for ≥2 whole
years.
2025-11-17 10:55:58 +01:00
Philip Chimento
79bc9083fe Temporal: Reorganize ISO8601 PlainDate.p.until
Reorganize the PlainDate.p.until tests by topic ("basic arithmetic",
"leap years") to make them easier to adapt for non-ISO calendars.
2025-11-17 10:55:58 +01:00
Philip Chimento
b529669873 Temporal: Reorganize ISO8601 PlainDate.p.add tests
Reorganize the PlainDate.p.add tests by topic ("basic arithmetic", "leap
years") to make them easier to adapt for non-ISO calendars. A third
topic would be "constraining days" but it turns out that is barely
tested!
2025-11-17 10:55:58 +01:00
Philip Chimento
f95832e793 Intl Era Monthcode: Complete Hebrew leap month addition tests
This adds tests for overflow constrain/reject with years, expands the
coverage with months to test edge cases using 12, 13, 24, and 25 months,
and cleans up a bit.

I started to add weeks and days tests for this in the previous PR, but
on reflection I don't think those are that useful.
2025-11-14 14:29:43 +01:00
Philip Chimento
3ee7cf34da Intl Era Monthcode: Complete Chinese and Dangi leap month addition tests
This adds tests for overflow constrain/reject with years, expands the
coverage with months to test edge cases using 12, 13, 24, and 25 months,
and cleans up a bit.

Note the tests adding a number of years to get from a leap month in one
year to the same leap month in another year! 2012 has M04L in the
Chinese calendar and M03L in the Dangi calendar, so these are different
between the two calendars.
2025-11-14 14:22:56 +01:00
Philip Chimento
0fcfeb44a7 Intl Era Monthcode: Complete basic arithmetic tests for Chinese/Dangi
This adds basic tests for adding and subtracting years, and expands all
the existing addition tests to cover subtraction as well.
2025-11-14 14:16:14 +01:00
Philip Chimento
5ef162feaf Intl Era Monthcode: Complete basic arithmetic tests for Hebrew calendar
This adds basic tests for adding and subtracting years, months, and
weeks, and expands the existing days addition tests to cover subtraction
as well.
2025-11-14 13:57:24 +01:00
Philip Chimento
7168361b08 Intl Era Monthcode: Complete basic arithmetic tests for Hijri calendars
This adds basic tests for adding and subtracting years, weeks, and days.
2025-11-14 13:53:22 +01:00
Philip Chimento
2312907b9b Intl Era Monthcode: Fix up locale frontmatter for Hijri fallback
We don't require an en-u-ca-islamic locale to run this test, in fact
it's the intention that it will fall back to another Hijri calendar.
2025-11-13 10:23:20 -08:00
Jesse Alama
da2c2c98e8 Intl Era Monthcode: Test DateTimeFormat era formatting
Tests how Intl.DateTimeFormat formats eras in various calendars. The
actual output is implementation-defined, but we can test a few things:

- Calendars with multiple eras have distinct values for the era part
  when formatting dates in each era.
- Calendars with one era have the same value for the era part when
  formatting dates with positive and negative era years.
- Calendars without eras do not include an era part in the format.

Some calendars are missing from this test because their era
configurations were updated in CLDR 48. I will add those in a separate
PR which can be merged when implementations have had more time to update
to that version of CLDR.

Co-Authored-By: Philip Chimento <pchimento@igalia.com>
2025-11-13 10:23:20 -08:00
Jesse Alama
3d23775387 Intl Era Monthcode: Exercise DateTimeFormat for leap months
This test calls Intl.DateTimeFormat.prototype.formatToParts() and
format() on dates in lunisolar calendars in leap and non-leap months.

The actual output is implementation-defined so there isn't much specific
that we can test here.

Co-Authored-By: Philip Chimento <pchimento@igalia.com>
2025-11-13 10:23:20 -08:00
Jesse Alama
a4c57b679b Intl Era Monthcode: DateTimeFormat.resolvedOptions().calendar
Tests the Intl.DateTimeFormat.prototype.resolvedOptions().calendar value
for each supported calendar.

Co-Authored-By: Philip Chimento <pchimento@igalia.com>
2025-11-13 10:23:20 -08:00