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
Tim Chevalier
7fb465496f
Feedback from code review
2024-10-30 17:18:26 -07:00
Tim Chevalier
d2d84950c3
Update test/built-ins/Temporal/ZonedDateTime/from/argument-propertybag-invalid-offset-string.js
...
Co-authored-by: Philip Chimento <philip.chimento@gmail.com>
2024-10-30 17:18:26 -07:00
Tim Chevalier
a93fe76f52
Temporal: Move ZonedDateTime property bag tests out of staging
2024-10-30 17:18:26 -07:00
Tim Chevalier
87344d96f2
Feedback from code review
2024-10-30 17:03:46 -07:00
Tim Chevalier
bfb957f669
Temporal: Move more ZonedDateTime tests out of staging
2024-10-30 17:03:46 -07:00
Tim Chevalier
5505758111
Temporal: Fix Temporal/Duration/p/round tests ( #4299 )
2024-10-30 16:45:28 -07:00
Tim Chevalier
85934bf49c
Temporal: Move tests for ZonedDateTime/p/{add, subtract} out of staging into test/built-ins ( #4287 )
2024-10-30 16:20:09 -07:00
Tim Chevalier
01dbd4db41
Temporal: Move tests for ZonedDateTime/compare out of staging into test/built-ins
2024-10-30 15:58:23 -07:00
Tim Chevalier
3f2486e37f
Move all tests from staging/Temporal/Instant/old to test/built-ins/Temporal/Instant ( #4282 )
...
* Temporal: Move all tests from staging/Temporal/Instant/old to test/built-ins/Temporal/instant
2024-10-30 14:29:02 -07:00
Tim Chevalier
f178db57fe
Temporal: Move all tests out of total.js under staging into separate files under test/built-ins ( #4281 )
...
* Temporal: Move most tests out of total.js under staging into separate files under test/built-ins
Co-authored-by: Philip Chimento <philip.chimento@gmail.com>
2024-10-30 11:44:59 -07:00
Tim Chevalier
713ddf66e0
Temporal: Move some tests out of round.js under staging into separate files under test/built-ins ( #4280 )
...
Co-authored-by: Philip Chimento <philip.chimento@gmail.com>
2024-10-30 11:32:37 -07:00
Tim Chevalier
b8c29a05b5
Temporal: Move tests out of staging/Temporal/Duration/old and into test/built-ins
2024-10-28 12:41:47 -07:00
Jordan Harband
0645461999
add missing Error.isError feature flag
...
See https://github.com/tc39/test262/pull/4266#issuecomment-2419000590
2024-10-17 10:57:45 -07:00
Jordan Harband
4b17ad3f3d
add `Error.isError` tests
...
See https://github.com/tc39/proposal-is-error/issues/7
2024-10-15 11:12:39 -07:00
Ioanna M. Dimitriou H
3cacf7d85e
Fix CI linting errors
2024-10-15 10:32:14 -07:00
Ioanna M. Dimitriou H
51d86807fe
Address review comments
2024-10-15 10:32:14 -07:00
Ioanna M. Dimitriou H
3f8d416bf5
same for isRawJSON's property descriptor test file
2024-10-15 10:32:14 -07:00
Ioanna M. Dimitriou H
d103a39e52
Updated placement of tests in rawJSON test files, previous older version was added accidentally.
2024-10-15 10:32:14 -07:00
Ioanna M. Dimitriou H
954d1809f8
Boilerplate tests for rawJSON and isRawJSON
...
from the proposal json-parse-with-source
2024-10-15 10:32:14 -07:00
André Bargull
9b3d9d9700
Update built-ins/Date to verifyProperty
2024-10-14 08:55:14 -07:00
André Bargull
d1c2a6f139
Update built-ins/Date/prototype/getXXX to verifyProperty
2024-10-14 08:55:14 -07:00
André Bargull
800d2190b3
Update built-ins/Date/prototype/setXXX to verifyProperty
2024-10-14 08:55:14 -07:00
Meghan Denny
60963bf468
chore: convert many tests to use verifyProperty ( #4263 )
...
Co-authored-by: André Bargull <andre.bargull@gmail.com>
2024-10-14 11:25:05 +02:00
Peter Hoddie
83fae7f1f2
a few tests use verifyPrimordialProperty
2024-10-11 12:45:30 -07:00
André Bargull
92b592547d
Ensure NaN time values are correctly handled in various Date setters
...
Related PR: https://github.com/tc39/ecma262/pull/2136
2024-10-11 12:19:13 -07:00
Richard Gibson
5ae7de9942
Increase coverage of String.prototype.replace $xy replacement patterns ( #3931 )
...
* $xy is a valid capture index
* $xy is not a valid capture index but $x is
* neither $xy nor $x is a valid capture index
2024-10-10 14:08:45 +02:00
tannal
954d6370f9
Avoid using destructuring in tco-fn-realm.js
2024-10-09 19:52:05 -07:00
Rezvan Mahdavi Hezaveh
6c967a8bbb
Remove extra `.js` from file name
2024-10-07 10:58:18 -07:00
Philip Chimento
459cef7185
Temporal: Add coverage for validating offset string syntax vs suitability
...
Syntax is validated first. Only after the property bag is fully converted
into a Calendar Fields Record does the time zone validate whether the UTC
offset is correct for that exact time in the time zone.
See tc39/proposal-temporal#2962
2024-10-07 12:02:45 +02:00
Philip Chimento
6dced5dead
Temporal: Add coverage for validating month code syntax vs suitability
...
Syntax is validated first. Only after the property bag is fully converted
into a Calendar Fields Record does the calendar validate whether the month
code actually exists in the year.
See tc39/proposal-temporal#2962
2024-10-07 12:02:45 +02:00
Philip Chimento
09c7d33253
Temporal: Add coverage for disallowed seconds in offset time zone identifiers
...
This was an area missing test coverage.
2024-10-07 12:02:45 +02:00
Ioanna M Dimitriou H
1332b14d69
Merge branch 'main' into regex-v-flag-follow-up
2024-10-04 18:33:01 +02:00
tannal
d7d02aedca
fix errors
2024-10-04 14:13:23 +08:00
Rezvan Mahdavi Hezaveh
06ea308d14
Remove one of the `.js`s from the test name
2024-10-03 16:41:38 -07:00
Philip Chimento
f4a987fe3c
Temporal: Additional tests for cases where date addition goes out of range
...
See tc39/proposal-temporal#2985
2024-10-03 12:14:41 +02:00
Philip Chimento
326cdb8da8
Temporal: Consistently test all string entry points for representable range
...
Remove the existing "instant-string-limits.js" that only applied to APIs
where ToTemporalInstant was called. Add "argument-string-limits.js" tests
everywhere ISO strings are converted.
Related to tc39/proposal-temporal#2985
2024-10-03 12:14:41 +02:00
Philip Chimento
116bc2cc47
Temporal: Move UTC offset ±24:00 into invalid string tests
...
It was in the "limits of representable range" tests, but it is invalid
syntax, so it belongs somewhere else.
2024-10-03 12:14:41 +02:00
Richard Gibson
585d7ac2b3
Test TypedArrays with excess bytes in their underlying buffers
2024-10-02 16:38:41 -07:00
tannal
5c20b3bd85
Add basic tests with u flag in v flag tests.
2024-09-28 18:12:21 +08:00
Huáng Jùnliàng
1a0aa3b866
fix: syntax error in DisposableStack test
2024-09-27 15:29:36 +02:00
Philip Chimento
f225229f85
Remove FinalizationRegistry tests that depend on nondeterministic GC
...
In these tests, cleanupSome() would have optionally emptied the
FinalizationRegistry synchronously and called the finalization callbacks.
Without cleanupSome(), there is no way to observe a FinalizationRegistry
being emptied using "pure" ECMAScript: FinalizationRegistry doesn't get
cleaned up until the microtask queue is empty, and without external APIs
such as setTimeout() there is no way to pause execution until after the
microtask queue is empty.
Non-deterministic tests are not that useful anyway; these tests are
probably better left to implementations' internal testing strategies.
2024-09-25 10:06:15 -07:00
Philip Chimento
77b1c787e8
Remove WeakRef/prototype/deref/gc-cleanup-not-prevented-with-wr-deref.js
...
On all engines that still support cleanupSome, this test was hitting the
asyncGC.notCollected check in resolveAsyncGC(). That means that it was
just skipped, and the deref() part was never actually executed.
Given that it is not testing anything in practice, remove it.
2024-09-25 10:06:15 -07:00
Philip Chimento
3bed2c446f
Remove tests for FinalizationRegistry.prototype.cleanupSome
...
This proposal was split off from FinalizationRegistry at stage 2, and then
withdrawn. Given that status, it should not be part of the test suite.
2024-09-25 10:06:15 -07:00
SkyCrystal
957ab22773
Add a test for Generator ( #3729 )
2024-09-25 12:58:24 -04:00