29 Commits

Author SHA1 Message Date
André Bargull
e764feb1fe Remove unused includes to 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
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
a709831c8d Remove support file for non-exported structured cloning test 2025-05-28 15:58:01 +02: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
Sosuke Suzuki
27622d7647 Use assertNativeFunction instead of simple regexp pattern 2025-04-29 13:57:47 +02:00
Lucas Mirelmann
34b0db5fb0 Escape syntax character in regex
Syntax characters need to be escaped when they are part of a regex.

https://tc39.es/ecma262/#prod-Atom
https://tc39.es/ecma262/#prod-PatternCharacter
2025-04-21 12:50:40 +02:00
Rezvan Mahdavi Hezaveh
d6897d560b After a recent normative change on iterator helpers, the expectations of
these tests should be updated.
2025-03-11 18:05:19 -07:00
Sosuke Suzuki
9d8efae5c2 Wrap toSpliced call with try-finally 2025-02-28 15:04:37 +01:00
Nicolò Ribaudo
43c45f3b37 Remove SM staging tests wrongly testing invalid LHS
It is an early error if the LHS of:
- ForOfStatement
- UpdateExpression
- AssignmentExpression
- DestructuringAssignmentTarget
is not simple (i.e. not a function call).
2025-02-18 14:23:33 +01:00
Sosuke Suzuki
82ebbb4060 Add indent to sm tests metadata 2025-01-23 14:28:45 +01:00
Ms2ger
b0f03cb22d Reorder includes in staging/sm
Ref. #4376
2025-01-17 13:49:22 +01:00
Ms2ger
5f98e1d39d Replace gc() calls in staging/sm/
Ref. #4376
2025-01-15 13:02:49 -08:00
Ms2ger
a37cb9c206 Update staging/sm 2025-01-13 17:17:15 +01:00
Shu-yu Guo
7f12305f59
Rename support files to end in _FIXTURE.js (#4368) 2025-01-08 16:30:20 -08:00
Philip Chimento
dc0082c5ea Remove unused test fixtures
These belong to a test that is not imported.
2024-12-09 13:35:08 -08:00
Ms2ger
6ee9579acb Import tests from SpiderMonkey 2024-12-09 13:35:08 -08:00