Richard Gibson
30eca7761b
Add assertion messages
2021-09-13 10:09:42 -04:00
Richard Gibson
1a655779f0
Test lastIndex overwrite with big lastIndex
2021-09-13 10:09:42 -04:00
Richard Gibson
f1bad717e2
Explain the purpose of `assert` helper message parameters
...
The convention in some testing libraries is an explanation of what went wrong;
in this one it is an explanation of what should happen.
2021-09-13 10:09:42 -04:00
Phillip Mates
ed0532e231
syntax errors for `ShadowRealm.evaluate` should be exposed
2021-09-13 10:09:42 -04:00
Mike Pennisi
aa5c2adb7c
Improve coverage: zonedDateTime & zonedDateTimeISO
2021-09-13 10:09:42 -04:00
Mike Pennisi
424406b5be
Correct metadata
2021-09-13 10:09:42 -04:00
Mike Pennisi
57491d838f
Import tests for Temporal.Now.zonedDateTimeISO
...
These tests originated in the Temporal proposal repository
https://github.com/tc39/proposal-temporal
2021-09-13 10:09:41 -04:00
Mike Pennisi
c99ec1780d
Import tests for Temporal.Now.zonedDateTime
...
These tests originated in the Temporal proposal repository
https://github.com/tc39/proposal-temporal
2021-09-13 10:09:41 -04:00
Mike Pennisi
0232d97415
Add tests for Temporal.Now.plainDateTimeISO
2021-09-13 10:09:41 -04:00
legendecas
7c3d29686b
Add test for byteOffset coverage in %typedarray%.prototype.copywithin
2021-09-13 10:09:41 -04:00
Jan Štola
71a0bb9e7f
RegExp.prototype.compile from other realm should throw TypeError from other realm.
2021-09-10 15:04:11 -04:00
André Bargull
66a3c3aa8b
Add tests for Intl Enumeration API
...
Covers the usual surface tests and additional functionality tests which were
upstreamed from existing tests in SpiderMonkey.
Fixes #3131
2021-09-08 09:29:06 -04:00
André Bargull
71460edfeb
Add helper functions to retrieve all calendars, collations, numberingSystems, and simple sanctioned units
...
And then use these helpers to replace hard-coded lists in other tests.
2021-09-08 09:29:06 -04:00
Mike Pennisi
4a7830beec
Remove TCO tests invalidated by normative change
...
Normative: Define default constructors using spec steps
https://github.com/tc39/ecma262/pull/2216
Resolves https://github.com/tc39/test262/issues/2978
2021-09-07 17:51:10 -04:00
Mike Pennisi
e9fc3db379
Add test for normative change to TCO&revoked Proxy
...
Normative: phrase tail calls as discarding resources rather than popping
execution context stack
https://github.com/tc39/ecma262/pull/2495
2021-09-07 17:50:48 -04:00
Mike Pennisi
2a898fe819
Add test for normative change to BlockStatement
...
Normative: continue labels should not pass through blocks
https://github.com/tc39/ecma262/pull/2482
2021-09-07 17:50:02 -04:00
Mike Pennisi
b62a070221
Simplify test
...
Remove semantics which are not necessary to exercise the behavior under
test.
2021-09-07 17:47:06 -04:00
Mike Pennisi
c4e54648c0
tools: enforce restriction on YAML
...
Some consumers have reported difficulty parsing an uncommon YAML
construction [1] [2] [3]. Extend the linter to help ensure that
construction is not used in future contributions.
[1] https://github.com/tc39/test262/issues/1997
[2] https://github.com/tc39/test262/pull/2505
[3] https://github.com/tc39/test262/issues/3171
2021-09-07 17:41:36 -04:00
Linus Groh
2b01f137ef
Fix 'asserts.throws()' typo in two tests
...
This should be 'assert.throws()', otherwise these fail unexpectedly.
Fixes #3184 .
2021-09-05 19:43:24 -07:00
Richard Gibson
50f3fca7a0
Test Math.hypot argument coercion ( #3177 )
...
* Test Math.hypot argument coercion
* Fix constructor
2021-09-03 15:59:25 -04:00
rwaldron
2fcc43df17
Transform legacy format to harness assertions: test/built-ins/N*/**/*.js
2021-09-02 11:34:34 -07:00
rwaldron
19d081ef1d
Transform legacy format to harness assertions: test/built-ins/O*/**/*.js
2021-09-02 11:34:27 -07:00
rwaldron
2a385983b1
Transform legacy format to harness assertions: test/built-ins/P*/**/*.js
2021-09-02 11:34:18 -07:00
rwaldron
717bcbaedd
Transform legacy format to harness assertions: test/built-ins/R*/**/*.js
2021-09-02 11:34:06 -07:00
André Bargull
0181293d38
"era" and "eraYear" are ECMA-402 only properties.
...
Both properties are only present when ECMA-402 is supported.
2021-09-02 11:23:23 -07:00
rwaldron
35ce309dc7
Transform legacy format to harness assertions: test/built-ins/F*/**/*.js
2021-09-02 11:22:11 -07:00
rwaldron
6a00f28e50
Transform legacy format to harness assertions: test/built-ins/i*/**/*.js
2021-09-02 11:22:05 -07:00
rwaldron
2944eb2eca
Transform legacy format to harness assertions: test/built-ins/J*/**/*.js
2021-09-02 11:21:59 -07:00
rwaldron
ec9c9b8dfd
Transform legacy format to harness assertions: test/built-ins/I*/**/*.js
2021-09-02 11:21:50 -07:00
rwaldron
1286bb601e
Transform legacy format to harness assertions: test/built-ins/E*/**/*.js
2021-09-02 11:21:41 -07:00
rwaldron
f1720c4a0c
Mark with "TODO: Convert to verifyProperty() format."
2021-09-02 11:21:25 -07:00
rwaldron
1c24e4b915
Transform legacy format to harness assertions
2021-09-02 11:21:25 -07:00
Rick Waldron
1667f56c04
Coverage for BigUint64Array & BigInt64Array backed by resizable / growable buffers. Fixes gh-3112 ( #3154 )
2021-09-02 11:19:53 -07:00
Leo Balter
e3902f5107
Merge pull request #3176 from tc39/rwaldron/rename-realm-shadowrealm
...
Renaming Realm -> ShadowRealm
2021-09-02 11:09:15 -07:00
Rick Waldron
9382febd80
Automated feature flag update ( #3153 )
2021-09-02 11:07:50 -07:00
rwaldron
bf0d0f6c3d
fix: correction to descriptor definition
2021-09-02 11:12:03 -04:00
rwaldron
025a9691cb
fix: rename Realm -> ShadowRealm
2021-09-02 11:07:19 -04:00
rwaldron
4a55a4f67a
fix: rename feature tag from "callable-boundary-realms" -> "ShadowRealm"; rename built-ins/Realm -> built-ins/ShadowRealm
2021-09-02 10:46:33 -04:00
Mike Pennisi
47ab262658
Throw distinctive errors for different failures
...
Prior to this patch, two distinct failure cases would produce the same
generic error message. Refactor the test logic to report the specific
condition which trigger failure.
2021-09-02 10:36:00 -04:00
Mike Pennisi
c324e5c620
Correct tests for Unicode Language Identifier
...
The underscore character "_" is only accepted for the sep production [1]
when the backwards-compatibility extensions [2] are enabled. However,
ECMA-402 only accepts Unicode BCP 47 locale identifiers [3], meaning
identifiers *without* the backwards-compatibility extensions.
[1] https://unicode.org/reports/tr35/#Unicode_language_identifier
[2] https://unicode.org/reports/tr35/#BCP_47_Conformance
[3] https://tc39.es/ecma402/#sec-language-tags
2021-09-02 10:34:22 -04:00
Mike Pennisi
0ecc26b987
Fix error in test for Temporal.now.plainDateTime
2021-09-02 10:03:02 -04:00
Michael Dyck
9cb0746f52
Normalize some YAML
...
In some recently added tests, the `description` is a multi-line scalar
in flow notation. Change it to block notation.
2021-09-02 10:00:32 -04:00
Mickey Rose
603b10dbfa
avoid unnecessary calls to decimalToHexString() ( #3170 )
2021-09-01 17:26:54 -04:00
Mickey Rose
836111dc3c
remove redundant throw from assert.throws() test functions ( #3167 )
2021-08-26 07:55:52 -07:00
Mike Pennisi
07caa4a2df
Support normative change to Resizable ArrayBuffer
...
A recent normative change to the Resizable ArrayBuffer modified the
criteria for a TypedArray becoming "out of bounds." Following the
change, TypedArrays which track the length of their underlying
ArrayBuffer instance are no longer considered "out of bounds" when the
ArrayBuffer is resized such that its size matches the TypedArray's
offset exactly.
https://github.com/tc39/proposal-resizablearraybuffer/pull/70
The majority of this patch's changes extend coverage to include cases
for both "on boundary" and "out of bounds" without reflecting any new
semantics. Two changes describe observable differences in the new
version of the algorithm:
- out-of-bounds-when-species-retrieved-different-type.js
- out-of-bounds-when-species-retrieved-same-type.js
2021-08-25 16:14:56 -04:00
jugglinmike
49347e0cf9
Remove unreachable code ( #3165 )
...
* Remove unreachable code
* fixup! Remove unreachable code
2021-08-25 16:13:00 -04:00
Rick Waldron
0fd4111b8b
fix: make callable from function declaration ( #3164 )
2021-08-25 13:04:05 -07:00
legendecas
206a3f4932
fixup! add other function variants
2021-08-25 10:32:55 -04:00
legendecas
c1c1ed47db
fixup!
2021-08-25 10:32:55 -04:00
legendecas
ddff7c5ded
Add test for duplicated top level function declarations in modules
2021-08-25 10:32:55 -04:00