Philip Chimento
dbb09a19f1
Intl Era Monthcode: New durations used for both addition and subtraction
...
Make sure we test each of the new durations that were moved from staging
tests in both positive and negative form.
2025-11-26 17:25:21 +01:00
Philip Chimento
714b34cd99
Intl Era Monthcode: Create Chinese and Dangi calendar dates with options
...
Just to make sure we are not accidentally constraining, pass { overflow:
"reject" } to all from() calls in these tests.
2025-11-26 17:25:21 +01:00
Nicolò Ribaudo
0718086d97
Test export * as x from and import * as x; export { x } binding equivalence
2025-11-26 11:32:25 +01:00
Nicolò Ribaudo
605927eeba
Move tests about ambiguous module bindings to a single folder
2025-11-26 11:32:25 +01:00
Tim Chevalier
1f8ce093d4
Temporal: Change leap month for 1987 in Chinese calendar tests
...
The test data included a case for year 1987, monthCode M07L.
This was incorrect; the leap month for 1987 was M06L.
This is due to a bug in ICU4C. These tests will have to be
expected-to-fail in ICU4C-based implementations until the underlying bug
is fixed. See https://github.com/tc39/test262/issues/4704
2025-11-25 14:40:35 -08:00
Jesse Alama
285785f988
Add CalendarResolveFields error ordering tests
...
Tests verify that CalendarResolveFields throws TypeError for missing
required fields before throwing RangeError for invalid field values.
2025-11-25 13:33:34 -08:00
Michael Ficarra
3e8ccb1227
address my own comments
2025-11-25 13:06:50 -08:00
Kevin Gibbons
e0738ee1ca
split basic.js into harness+tests, add some more tests
2025-11-25 13:06:50 -08:00
André Bargull
004b7337af
Add tests from #4496 for zipKeyed
2025-11-25 13:06:50 -08:00
André Bargull
9f464fdce8
Test IteratorZip iteration for zipKeyed
2025-11-25 13:06:50 -08:00
André Bargull
f6bb819cf5
Test basic functionality for zipKeyed
2025-11-25 13:06:50 -08:00
André Bargull
26c1185971
Test padding processing for zipKeyed
2025-11-25 13:06:50 -08:00
André Bargull
861ae35a1b
Test iterables processing for zipKeyed
2025-11-25 13:06:50 -08:00
André Bargull
77fb0e582b
Add tests from #4496 for zip
2025-11-25 13:06:50 -08:00
André Bargull
4f3a15bdb4
Test IteratorZip iteration for zip
2025-11-25 13:06:50 -08:00
André Bargull
7b03494c04
Test basic functionality for zip
2025-11-25 13:06:50 -08:00
André Bargull
64aa8b8f9c
Test padding processing for zip
2025-11-25 13:06:50 -08:00
André Bargull
84fdbadcb4
Test iterables processing for zip
2025-11-25 13:06:50 -08:00
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