Philip Chimento
5c9ff876dc
Temporal: Add test coverage for sub-minute UTC offsets in strings
...
Expands and updates (following the normative change in
https://github.com/tc39/proposal-temporal/pull/3107 , approved May 2025)
the current coverage with cases where the number of seconds is
incorrect, or rounded.
Adds missing coverage for sub-minute offsets in strings passed to
Temporal.ZonedDateTime.compare.
Adds the unusual test case of Pacific/Niue on October 15, 1952, where
the offset shifted by 20 seconds to a whole-minute boundary.
Fixes a few minor errors in the existing tests such as a missing ] in a
string, and the wrong sign for the offset in Africa/Monrovia in property
bags.
2025-05-31 20:46:32 +02:00
Chengzhong Wu
9b127c190c
Fixup incorrect assertion in AsyncGenerator.p.return with broken promises
2025-05-30 03:39:31 -07:00
duncan.macgregor
bd472562c8
Change deepEqual.js
as Rhino doesn't support Array spreading.
2025-05-30 03:27:41 -07:00
André Bargull
19a91145b3
Add coverage for byteOffset with detached buffer in TypedArray.prototype.subarray
...
JSC doesn't handle this case correctly.
2025-05-30 02:13:22 -07:00
André Bargull
8744a9b02a
Add coverage for species constructor returning typed array with same backing buffer
...
JSC doesn't handle this case correctly.
2025-05-30 02:13:22 -07:00
André Bargull
8081aa7365
Add coverage for negative indices with resizable typed arrays
...
SpiderMonkey doesn't handle this case correctly.
2025-05-30 02:13:22 -07:00
André Bargull
17bfbc8783
Add coverage for negative indices with resizable typed arrays to TA.prototype.with
...
V8 doesn't handle this case correctly.
2025-05-30 02:13:22 -07:00
André Bargull
88c5b410aa
Add coverage for converting negative fractional index to zero in (Typed)Array.prototype.with
...
JSC doesn't handle this correctly for `TypedArray.prototype.with`.
2025-05-30 02:13:22 -07:00
André Bargull
7c9314b06b
Add coverage for odd string lengths in Uint8Array.prototype.setFromHex
...
V8 doesn't handle this correctly for zero length typed arrays.
2025-05-30 02:13:22 -07:00
André Bargull
8649d5e117
Add coverage for throw completions in (Typed)Array.prototype.with
...
SpiderMonkey doesn't handle this correctly for `Array.prototype.with`.
2025-05-30 02:13:22 -07:00
Philip Chimento
006b3046fa
Revert "add test for tc39/proposal-iterator-sequencing#19 ( #4485 )"
...
This reverts commit 60580a0042aad7db962d6bf330ff20316b847d77.
2025-05-30 00:59:17 -07:00
Michael Ficarra
60580a0042
add test for tc39/proposal-iterator-sequencing#19 ( #4485 )
2025-05-29 07:28:33 -07:00
Richard Gibson
99867ff618
harness: Simplify verifyCallableProperty ( #4507 )
...
Ref #4468
2025-05-28 20:53:15 +00:00
André Bargull
e764feb1fe
Remove unused includes to non262-expressions-shell.js
2025-05-28 15:58:01 +02:00
André Bargull
a1222e0dc7
Remove unused definitions from non262-expressions-shell.js
2025-05-28 15:58:01 +02:00
André Bargull
0633915e30
Use standard test262 harness functions in non262-JSON-shell.js
2025-05-28 15:58:01 +02:00
André Bargull
57816febc2
Remove unused includes to non262-JSON-shell.js
2025-05-28 15:58:01 +02:00
André Bargull
8c64b08b35
Remove unused includes to non262-Reflect-shell.js
2025-05-28 15:58:01 +02:00
André Bargull
0ba71a3fea
Remove unused non262-String-shell.js
2025-05-28 15:58:01 +02:00
André Bargull
fea819475f
Replace non262-RegExp-shell.js definitions and then remove it
2025-05-28 15:58:01 +02:00
André Bargull
88ad608238
Remove unused includes to non262-RegExp-shell.js
2025-05-28 15:58:01 +02:00
André Bargull
fb71bb2094
Remove non262-extensions-shell.js
2025-05-28 15:58:01 +02:00
André Bargull
e778def1d1
Remove reportMatch
2025-05-28 15:58:01 +02:00
André Bargull
a06e66989b
Remove printBugNumber, inSection, printStatus, and writeHeaderToLog empty functions
2025-05-28 15:58:01 +02:00
André Bargull
e0f3a70c5a
Move completesNormally and raisesException to non262-strict-shell.js
2025-05-28 15:58:01 +02:00
André Bargull
1b63fba5ca
Remove 'harness/sm/non262-object-shell.js' with unused functions
2025-05-28 15:58:01 +02:00
André Bargull
e8b9a6a1d9
Remove unused 'clone_object_check'
2025-05-28 15:58:01 +02:00
André Bargull
965e505fb8
Remove a Gecko profiler specific test case
2025-05-28 15:58:01 +02:00
André Bargull
2497ed0ae9
Replace another deepEqual function from sm-staging
...
Replace the `deepEqual` function with `assert.compareArray` resp.
`verifyProperty`.
Also remove the second part of "sm/strict/15.4.5.1.js", because it's
terribly out-dated w.r.t. the SpiderMonkey implementation of Array
objects.
2025-05-28 15:58:01 +02:00
André Bargull
43670a1912
Replace assertDeepEq with assert.deepEqual
2025-05-28 15:58:01 +02:00
André Bargull
bbbc23cd41
Don't test error messages in staging/sm
2025-05-28 15:58:01 +02:00
André Bargull
a709831c8d
Remove support file for non-exported structured cloning test
2025-05-28 15:58:01 +02:00
André Bargull
081cbfc975
Fix PluralRules notation test
...
- Change the locale to "fr", it's more likely to be present in
implementations when compared to "sl".
- Test all possible "notation" values.
2025-05-26 15:02:48 +02:00
André Bargull
b3d0c57f7f
Move PluralRules notation into correct directory
2025-05-26 15:02:48 +02:00
André Bargull
7d0984ba52
Fix bugs for PluralRules notation
2025-05-26 15:02:48 +02:00
André Bargull
3316c0aaf6
Test all combinations in temporal-plaindatetime-formatting-datetime-style
2025-05-22 14:24:47 +02:00
André Bargull
96695862e2
Test all combinations in temporal-plainyearmonth-formatting-datetime-style
2025-05-22 14:24:47 +02:00
André Bargull
a55bf7da9e
Test all combinations in temporal-plainmonthday-formatting-datetime-style
2025-05-22 14:24:47 +02:00
André Bargull
24f6f7a014
Test all combinations in temporal-plaindate-formatting-datetime-style
2025-05-22 14:24:47 +02:00
André Bargull
c3db26368f
Test all combinations in temporal-plaintime-formatting-datetime-style
2025-05-22 14:24:47 +02:00
André Bargull
36c81b9761
Split temporal-objects-formatting.js into separate files for each Temporal type
2025-05-22 14:24:47 +02:00
André Bargull
ef71f5e2a6
Fix expected result for short date-style
...
Compare to `dateTimeFormatterShortMedium`, which also uses the
`short` date-style.
2025-05-22 14:24:47 +02:00
André Bargull
e8e50b5746
Place closing parenthesis at the correct location
2025-05-22 14:24:47 +02:00
Ron Buckton
419d85ad21
[explicit-resource-management] Add remaining tests specific to using in for-of and for-await-of syntax ( #4484 )
2025-05-21 13:45:41 -07:00
Sosuke Suzuki
4b5d36ab6e
Add missing async
flag to AsyncIteratorPrototype
tests
2025-05-19 14:09:55 +02:00
liuxingbaoyu
dc2a152457
fix ( #4493 )
2025-05-19 14:02:10 +02:00
Richard Gibson
296e7875bd
RegExp: Add test cases for Unicode Script_Extensions=Unknown
...
Ref https://github.com/tc39/ecma262/issues/3590
regexp-generator is unfortunately unaware of the value:
https://github.com/mathiasbynens/regenerate-unicode-properties/issues/7
2025-05-16 12:49:45 -07:00
Nick Vatamaniuc
c6251c64b1
Increase the tolerance of approx acos and cbrt tests
...
On engines which pass through these functions to the libc library they can
return slightly different values depending on the OS and archictures.
Showing a few example with Python, which also passes these through to libc on a
few platforms I have access to:
Ubuntu Noble, Python 12, s390x
```
>>> import math
>>> math.cbrt(math.e)
1.3956124250860897
>>> math.acosh(math.cosh(0.2))
0.20000000000000023
```
Ubuntu Noble, Python 12, x86_64
```
>>> import math
>>> math.cbrt(math.e)
1.39561242508609
>>> math.acosh(math.cosh(0.2))
0.20000000000000023
```
MacOS 14, Python 12, x86_64
```
>>> import math
>>> math.cbrt(math.e)
1.3956124250860895
>>> math.acosh(math.cosh(0.2))
0.20000000000000026
```
2025-05-16 12:12:39 +02:00
Jordan Harband
2472953ec1
Merge pull request #4479 from rbuckton/explicit-resource-management-DisposableStack
...
[explicit-resource-management] Add remaining tests specific to `DisposableStack`
2025-05-15 21:37:17 -07:00
Ron Buckton
4dfd813f0d
Update test/built-ins/DisposableStack/prototype/constructor.js
...
Co-authored-by: Jordan Harband <ljharb@gmail.com>
2025-05-15 21:34:15 -07:00