Commit Graph

2855 Commits

Author SHA1 Message Date
Brage Hogstad 26db872ca7 Moved generic era and eraYear tests from intl402/Temporal to built-ins/Temporal 2025-02-12 11:36:45 -08:00
yossydev c23db8061d Update String.fromCodePoint info to align with latest ECMAScript spec 2025-02-12 10:13:55 -08:00
Ron Buckton b0319e488d Add tests for SuppressedError 2025-02-11 16:38:26 -08:00
Ron Buckton ae0656d7d4 Test AsyncIterator Symbol.dispose calls return method 2025-02-11 16:25:20 -08:00
Ron Buckton bdf546c60c Test Iterator Symbol.dispose calls return method 2025-02-11 16:25:20 -08:00
Kevin Gibbons d4052133d5
add tests for "iterator helpers close receiver on argument validation failure" (#4350)
* add tests for "iterator helpers close receiver on argument validation failure"

* address comments

* avoid re-using Test262Error
2025-02-04 11:32:20 -08:00
Ron Buckton 88d6c18030 Basic constructor and newtarget tests for DisposableStack 2025-01-30 17:14:53 -08:00
Ron Buckton 5bdc35ab46 Basic constructor and newtarget tests for AsyncDisposableStack 2025-01-30 17:14:53 -08:00
Justin Dorfman 7c37969378
Function.prototype: Add tests "caller" and "arguments" properties (#4355)
Fixes #4340
Fixes #674
2025-01-29 20:36:41 +00:00
André Bargull a977d3b649
Add coverage when searching undefined after shrinking buffer 2025-01-10 09:26:18 +01:00
André Bargull ab5c086db4 Add coverage for value coercions in TypedArray.p.with 2025-01-13 10:20:24 +01:00
André Bargull d49db639a8 Move files from metadata 2025-01-10 16:18:41 +01:00
André Bargull 2ea91c02d0 Temporal: Coverage for Temporal.Duration 2025-01-09 16:33:51 -08:00
André Bargull 4aa9379068 Temporal: Coverage for Temporal.ZonedDateTime 2025-01-09 16:33:51 -08:00
André Bargull 4ceee16fff Temporal: Coverage for Temporal.PlainDateTime 2025-01-09 16:33:51 -08:00
André Bargull 22539853cd Temporal: Coverage for Temporal.PlainDate 2025-01-09 16:33:51 -08:00
André Bargull 934563c6c4 Temporal: Coverage for Temporal.Instant 2025-01-09 16:33:51 -08:00
André Bargull fef2f1cf61 Temporal: Coverage for Temporal.PlainTime 2025-01-09 16:33:51 -08:00
André Bargull 7bc853660a Temporal: Coverage for Temporal.PlainYearMonth 2025-01-09 16:33:51 -08:00
André Bargull 6d69685a48 Temporal: Coverage for Temporal.PlainMonthDay 2025-01-09 16:33:51 -08:00
Michael Ficarra 71794b1388 fix another test now that we don't access the IteratorResult value 2024-12-09 12:37:30 -08:00
Michael Ficarra fc55660965 Update fresh-iterator-result.js
See https://github.com/tc39/proposal-iterator-sequencing/pull/18#issuecomment-2512825730
2024-12-09 12:37:30 -08:00
Michael Ficarra d5a09f40e4 add test that concat does not pass arg through when called with 1 arg 2024-12-09 12:37:30 -08:00
Michael Ficarra a12abf58af add test for primitive wrapper objects 2024-12-09 12:37:30 -08:00
André Bargull 490463d485 Add initial tests for the "iterator-sequencing" proposal 2024-12-09 12:37:30 -08:00
Philip Chimento eefc5cf367 Temporal: Improve coverage of relativeto-string-limits tests
These tests did not fully cover Temporal.Duration.prototype.round and
Temporal.Duration.prototype.total because they called those methods on a
blank duration (all components zero), for which there is an early return
in round() and total().

This meant that we missed an assertion that would be hit after the early
return.

This makes sure to test both blank and non-blank Durations with these
relativeTo strings, and expect some strings to fail at different steps
with the two cases.

See: tc39/proposal-temporal#3015
2024-12-05 15:02:50 +01:00
Shu-yu Guo dacf5ff845 Update Object.freeze tests for resizable TypedArrays
Object.freeze will always throw on variable-length TAs with this
has-consensus PR: https://github.com/tc39/ecma262/pull/3453
2024-12-03 17:47:38 -08:00
Tim Chevalier 901dd6e920
Temporal: Add test for balancing up to weeks when year/month are present (#4305)
See tc39/proposal-temporal#2813
2024-12-03 14:08:20 -08:00
graphemecluster 80d32d1a47
Add additional test cases for RegExp modifiers (#4321) 2024-11-28 13:37:02 +00:00
Chengzhong Wu 3499f1e646 Fix AbstractModuleSource.prototype descriptor 2024-11-26 15:09:30 +01:00
André Bargull fd979d85d4 Fix strict mode error 2024-11-19 17:02:40 +01:00
rmg-x 8eee4552a7 Fix the not-a-constructor test for Math.f16round()
Previously, this was using Math.fround() instead of the f16 version.
2024-11-12 15:36:48 +01:00
Philip Chimento 9a0aa4c719 regexp-generator: Fix indentation
Our config files specify two-space indents for JS files. These scripts
were probably written before that was a thing. Update the indentation of
the script and the generated tests all in one go.
2024-11-11 17:26:56 -08:00
Philip Chimento 7e1f1e749d regexp-generator: Update ECMA-262 quote in header
While we're touching this we may as well update the quote from ECMA-262 to
match what it currently says.
2024-11-11 17:26:56 -08:00
Philip Chimento 031ed02ad1 regexp-generator: Update front matter
Add the `generated` flag, and update the link to the generator script.
2024-11-11 17:26:56 -08:00
Philip Chimento 07ddc3b41b regexp-generator: Implement downstream changes
The optimizations from commit e558b29b were never incorporated into the
upstream test generator. This does so now.

As far as I can tell, the changes to the Unicode ranges are purely
cosmetic. Some are formatted as 6-digit hex numbers instead of 4-digit.
Others move the low-surrogates range 0xDC00-0xDCFF to the beginning of the
array, but the union of the ranges is still the same.
2024-11-11 17:26:56 -08:00
André Bargull 26a396da14 Add test coverage for Date.prototype.toTemporalInstant 2024-11-07 11:45:32 +01:00
Ioanna M Dimitriou H 437f9a7631
Migrate staging tests for JSON-parse-with-source (#4265)
Co-authored-by: Philip Chimento <pchimento@igalia.com>
Co-authored-by: Ms2ger <Ms2ger@igalia.com>
2024-11-06 16:59:30 +01:00
Tim Chevalier b2809feedf
Temporal: Add test for Duration/p/toString() with total time units out of range (#4313) 2024-11-06 16:47:58 +01:00
Jordan Harband 38d52c9a60 `Error.isError`: fix remaining issues from #4304
Fixes #4304
2024-11-06 13:05:41 +01:00
Jordan Harband a2f43d68d4
Error.isError: Fix test bugs (#4308) 2024-11-05 11:17:39 -05:00
Tim Chevalier 01eb47d4f2 Add tests for adding negative durations to/subtracting durations from the last representable year/month of the ISO calendar
See https://github.com/tc39/proposal-temporal/issues/3029
2024-11-01 12:57:28 -07:00
Tim Chevalier b7822bb0b8
Temporal: Move tests for ZonedDateTime/p/{since, until} out of staging (#4293)
Co-authored-by: Philip Chimento <philip.chimento@gmail.com>
2024-11-01 11:02:32 -07:00
Tim Chevalier ccf8977b1c Temporal: Split up ZonedDateTime/old/string-parsing.js and move out of staging 2024-10-31 16:05:30 -07:00
Tim Chevalier 8cc0560713
Temporal: Move all tests out of ZonedDateTime/old/with.js under staging into separate files under test/built-ins (#4297)
Co-authored-by: Philip Chimento <philip.chimento@gmail.com>
2024-10-31 13:34:57 -07:00
Tim Chevalier 0f6b269400 Temporal: Move ZonedDateTime order-of-operations tests out of staging 2024-10-31 13:13:20 -07:00
Tim Chevalier bf46ed66b6 Temporal: move tests for ZonedDateTime/p/{toInstant, toPlainDate, toPlainTime, toString} 2024-10-31 13:08:38 -07:00
Tim Chevalier 7a4426e2b2 Temporal: Move remaining tests from Temporal/ZonedDateTime/old under staging into separate files under test/built-ins
Includes withPlainDateTime and withTimeZone
2024-10-31 11:58:25 -07:00
Tim Chevalier de68177f59 Temporal: Move ZonedDateTime/prototype/round tests and one other ZonedDateTime test out of staging 2024-10-30 17:58:43 -07:00
Tim Chevalier 70ef1acd1c Fix test for required properties 2024-10-30 17:18:26 -07:00