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
Aapo Alasuutari
9cd2385591
fix: unify and clarify language around undefined timeout arg in DoWait
2025-11-20 10:33:20 -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
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
Tim Chevalier
0186d50ba0
Temporal: Test both "use" and "ignore" offsets
...
This test was previously only testing the "use" offset option
when testing valid strings.
2025-11-13 11:35:24 +01:00
Linus Groh
77b8a16b2f
Fix %ThrowTypeError% cross-realm error check
2025-11-13 11:31:36 +01:00
André Bargull
55e4c18a69
Replace "closed" global variable in Math.sumPrecise test
...
This allows running the test in browsers, too.
<https://developer.mozilla.org/en-US/docs/Web/API/Window/closed >.
2025-11-10 09:41:50 -08:00
Philip Chimento
5c07b52242
Temporal: Remove accidental octal literals from a test
...
These cause the test to fail in strict mode.
2025-11-06 11:32:55 +01:00
Tim Chevalier
aa62607560
Fix indentation
2025-11-04 12:52:31 -08:00
Tim Chevalier
67ccaf966a
Avoid creating extra objects
2025-11-04 12:52:31 -08:00
Tim Chevalier
88c06fe752
Update test/built-ins/Temporal/Instant/prototype/toString/negative-instant-rounding.js
...
Co-authored-by: Ms2ger <Ms2ger@gmail.com>
2025-11-04 12:52:31 -08:00
Tim Chevalier
d50ce09c59
Fix lint errors
2025-11-04 12:52:31 -08:00
Tim Chevalier
f1828f3ebf
Add tests that trigger the same bug from Instant.toString and ZonedDateTime.toString
2025-11-04 12:52:31 -08:00
Tim Chevalier
ef55820458
Add tests for PlainDateTime and ZonedDateTime as well
2025-11-04 12:52:31 -08:00
Tim Chevalier
4d9f01fcf4
Temporal: Add a test for rounding negative instants
2025-11-04 12:52:31 -08:00
Philip Chimento
6600ea1042
Temporal: Add coverage for another large-subseconds addition bug
...
Bug observed in the proposal-temporal reference code, caused by improper
implementation of AddTime
(https://tc39.es/proposal-temporal/#sec-temporal-addtime ) where the
advice in Step 2 was not followed correctly.
See https://github.com/tc39/proposal-temporal/pull/3173
2025-11-03 11:35:50 +01:00
Philip Chimento
d8c989cc8a
Temporal: Consolidate "large-subseconds" and "large-milliseconds" tests
...
These (from #4619 and #4625 ) are very similar and I'm also going to add
more cases to them in the next commit.
Also add similar tests to Instant and PlainTime.
2025-11-03 11:35:50 +01:00
Philip Chimento
a9251b7718
Temporal: Add tests for internal representation of Duration
...
The spec describes the internal representation of Duration as float64-
representable integers. There are a few tricky ways that it is
observable if an implementation does not do this correctly. Here are
some tests for them.
2025-11-03 10:30:08 +01:00
Tim Chevalier
66bf8b8b52
Temporal: Add coverage for adding durations with large subsecond values to a PlainTime ( #4625 )
...
* Temporal: Add coverage for adding durations with large subsecond values to a PlainTime
* Add tests for PlainDateTime and ZonedDateTime
2025-10-31 13:36:32 -07:00
Tim Chevalier
678c434dab
Temporal: Add tests for correct rounding of epoch milliseconds in toString()
2025-10-31 11:36:50 +01:00
Philip Chimento
18f6ed2627
Add missing quotation mark in assertion message
2025-10-30 17:51:51 +01:00
Philip Chimento
0e496d5808
Minor updates to text in Temporal calendar-wrong-type tests
...
These were missed in https://github.com/tc39/test262/pull/4415
2025-10-30 17:51:51 +01:00
Philip Chimento
85ae4c0966
Temporal: Add tests for optional properties in property bags
...
These tests confirm that Temporal-object-like property bags have the
correct default values for their optional properties.
This provides coverage for a V8 bug:
https://issues.chromium.org/issues/446728405
2025-10-30 17:40:54 +01:00
Philip Chimento
e72321987e
Temporal: Add tests for serialization of durations with pairs of units
...
These check that durations with large and small units are properly
serialized.
2025-10-30 16:27:33 +01:00
Tim Chevalier
61d0eb9167
Temporal: Add an overflow test for date addition with maximum year ( #4618 )
...
* Temporal: Add an overflow test for date addition with maximum year
* Add tests for other cases
* Fix minimum dates
* Add cases for adding/subtracting the negated duration to the opposite end of the allowed years
2025-10-29 18:04:05 -07:00
Tim Chevalier
759fe87f1c
Temporal: Add coverage for adding large microseconds/nanoseconds values
...
Add coverage for adding unbalanced durations with large microseconds
or nanoseconds values to a PlainDateTime or ZonedDateTime.
2025-10-29 17:30:09 -07:00