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
Linus Groh
15ae4bb43f
Fix wrong array literal in Map/Set value tests
2024-06-14 01:26:22 +02:00
Shu-yu Guo
0c43c587cc
Fix groupBy string test keys to be insertion order
2024-04-11 16:56:41 -07:00
Sosuke Suzuki
b73f7d662d
Use emoji strings
2024-04-04 12:47:57 -07:00
SUZUKI Sosuke
8245443f8f
Update test/built-ins/Map/groupBy/string.js
...
Co-authored-by: Jordan Harband <ljharb@gmail.com>
2024-04-04 12:47:57 -07:00
Sosuke Suzuki
112cf25567
Add tests for `Object.groupBy` and `Map.groupBy` with string items
2024-04-04 12:47:57 -07:00
Kevin Gibbons
961480ac61
remove some auto-generated error messages in "assert.throws" tests
2024-03-25 12:09:10 +01:00
Kevin Gibbons
5424d7e834
rewrite tests to use verifyProperty
2024-03-25 12:05:06 +01:00
Jordan Harband
c5b24c64c3
groupBy: fix throwing iterator tests
...
Fixes #3852
2023-06-13 19:56:17 -07:00
Jordan Harband
feb6f107f8
Convert Array.prototype.groupToMap tests to Map.groupBy tests
2023-05-31 08:32:28 -07:00
José Julián Espina
4a6439e4a7
Add `Array.prototype.includes` and `exponentiation` features ( #3799 )
2023-03-23 10:51:08 +01:00
rwaldron
4fa52c8d2d
test: expected behavior when bigint and number have "same" value
2021-12-07 16:07:52 -05:00
rwaldron
44b224d388
chore: update esids in test/built-ins/{Map|Set}
2021-12-07 16:07:52 -05:00
rwaldron
3fc472709c
fix: Add test about BigInt-Map/Set interaction. Closes gh-3338
2021-12-07 16:07:52 -05:00
Rick Waldron
ed91c59b94
Transform compareArray -> assert.compareArray: test/built-ins/Map/**/*.js ( #3237 )
2021-10-05 22:46:16 -04:00
Mike Pennisi
d9ddf80479
Revert "Merge pull request #3219 from tc39/rwaldron/migrate-comparearray"
...
This reverts commit b690cb67be
, reversing
changes made to 50dd431dff
. This is
necessary because the reverted changeset reduced coverage by an unknown
extent.
2021-10-01 10:18:47 -04:00
rwaldron
4847d9db5a
chore: update test/**/*.js to use assert.compareArray wherever applicable
2021-09-24 12:58:15 -04:00
Rick Waldron
d576baf73f
Info: adds "sec-evaluatenew" step to info for all "not-a-constructor.js" tests.
2020-10-06 12:01:34 -04:00
Rick Waldron
8aacff591c
Standardize built-in constructor testing
2020-10-06 12:01:34 -04:00
Rick Waldron
c644ede430
Built-in function objects that are not identified as constructors must throw a TypeError exception when new'ed. Fixes gh-1739
2020-10-06 12:01:34 -04:00
Rick Waldron
7f518f7d38
Fixup Map: add proper esid
2020-09-14 13:35:13 -04:00
Frank Tang
ab3a86d9b3
Move tests from
...
https://source.chromium.org/chromium/chromium/src/+/master:v8/test/test262/local-tests/
2020-09-14 13:35:13 -04:00
Mike Pennisi
f5d60d4192
Improve coverage
...
The modified tests are equally valid in strict mode and outside of
strict mode. Remove the flag which limits their use to only one of these
two contexts. Rename tests using the legacy ES5-based naming scheme to
remove the pattern which designates strict mode.
2019-09-27 15:39:10 -04:00
Leo Balter
ff9763729d
Remove duplicated es[56]id if esid is present
2019-08-05 10:54:37 -04:00
Leo Balter
8add0d64b2
Fix whitespace
2018-02-15 18:04:03 -05:00
Rick Waldron
0bf08dff3d
built-ins/Math/*: make all indentation consistent (depth & character) ( #1435 )
2018-02-15 17:35:45 -05:00
Amal Hussein
66eaf57f88
added coverage for built-in Map spec to ensure that a TypeError is thrown when Symbol.iterator is undefined ( #1444 )
2018-02-13 11:36:10 -05:00
André Bargull
f95b56ab28
Revert "js-beautify: make all indentation consistent (depth & character) ( #1409 )" ( #1412 )
...
This reverts commit a01de4a722
.
2018-02-09 12:09:47 -05:00
Rick Waldron
a01de4a722
js-beautify: make all indentation consistent (depth & character) ( #1409 )
2018-02-09 11:35:37 -05:00
André Bargull
f717982c94
Remove unused includes
2018-01-25 13:59:37 -05:00
Rick Waldron
92a2621901
Frontmatter: fixup "info: >" to "info: |"
2018-01-05 12:27:59 -05:00
Leo Balter
7cbbe51216
Add cross-realm feature
2017-09-22 15:29:10 -04:00
Leo Balter
c41faf1aca
Add missing Symbol features flags
2017-09-07 15:51:13 -04:00
Arup Rakshit
dabee7bd9b
Fix spelling typo. ( #1046 )
2017-05-22 11:53:38 -04:00
André Bargull
d59e30c95e
Remove execute bit from files ( #976 )
2017-04-13 16:24:07 -04:00
Rick Waldron
fdd2fa9b1c
Rename $ => $262. Fixes gh-802 ( #823 )
...
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-03-01 16:34:15 -05:00
jugglinmike
71e573f7da
Add tests for realm interactions ( #688 )
...
* Add tests for prototype realm inference
* Add tests for miscellaneous realm concerns
* Add tests for realm of spec-created Errors
In some cases, Error objects produced by the specification are
observable from ECMAScript code. Among these cases, some are further
differentiated in that they occur outside of any built-in function and
may be triggered through syntactic production directly. The current
realm record is commonly interpreted incorrectly under these
circumstances.
Add tests asserting that the expected realm record is used when
constructing such Error objects.
* Add tests for realm use in ArraySpeciesCreate
* Add tests for function realm retrieval
* Add tests for cross-realm behaviors of Symbols
* Add tests for GetValue and PutValue
* Add tests for realm of spec-created Arrays
In some cases, Arrays produced by CreateArrayFromList are observable
from ECMAScript code. Among these cases, two occur outside of any
built-in function and may be triggered through syntactic production
directly. The current realm record is commonly interpreted incorrectly
under these circumstances.
Add tests asserting that the expected realm record is used when
constructing arrays.
* Add test for spec-created object
* fixup! Add tests for realm of spec-created Errors
* fixup! Add tests for realm of spec-created Errors
* fixup! Add tests for prototype realm inference
* fixup! Add tests for miscellaneous realm concerns
2016-10-24 10:43:17 -07:00
Brian Terlson
3d285da73d
Replace duplicate description with info in map test
2016-04-29 10:01:41 -07:00
Mike Pennisi
b8e40a6f3f
Add tests for return value of @@species accessors
2016-04-25 16:59:23 -07:00
André Bargull
ca61d9b876
Add missing tests for "length" and "name" properties of built-in functions
...
Note: Already uses the updated DataView function lengths from tc39/ecma262#266 (ES2016 Draft 2015-12-20)
2016-01-15 18:12:05 +01:00
André Bargull
5e3eed63b9
Move Symbol.species and AnnexB tests to new subfolders
2016-01-15 18:11:03 +01:00
Mike Pennisi
d6bbbc9aed
Add tests for well-known Symbol: @@toStringTag
2015-08-07 20:02:44 -04:00
André Bargull
023c7aa69e
- Remove inline license
...
- Remove duplicate word
- Add missing license
2015-07-17 19:55:00 +02:00
Brian Terlson
4181994b55
Merge pull request #353 from bocoup/accessor-functions-on-built-in-properties
...
Add test for built-in accessor properties names
2015-07-09 16:37:51 -07:00
Leonardo Balter
0597e9e90e
Remove duplicated Map tests
2015-07-07 12:03:55 -04:00
Leonardo Balter
7d0c8638c6
Map.prototype[Symbol.toStringTag]
2015-07-07 12:03:55 -04:00
Leonardo Balter
710fcbb383
Map.prototype[Symbol.iterator]
2015-07-07 12:03:54 -04:00
Leonardo Balter
cdcd91c8b2
Map.prototype.values
2015-07-07 12:03:54 -04:00
Leonardo Balter
1ddb99eebd
Map.prototype.size
2015-07-07 12:03:54 -04:00
Leonardo Balter
7ee11aae4e
Map.prototype.set
2015-07-07 12:03:54 -04:00