Rick Waldron
07cc3c8bb1
Coverage: calling array methods with boolean as thisValue. Fixes gh-2803
2020-09-24 14:52:48 -04:00
Rick Waldron
f94fc660cc
Array#shift throws TypeError if this value's "length" property was defined with [[Writable]]: false. Fixes gh-2773
2020-09-15 16:35:11 -04:00
Alexey Shvayka
afd849ad29
Test "length" [[Value]] overflow check order in ArraySetLength
2020-09-09 14:40:23 -04:00
Alexey Shvayka
d993d87766
Test "length" [[Value]] coercion order in ArraySetLength
2020-09-09 14:40:23 -04:00
Alexey Shvayka
9857b124c0
Test Array.prototype methods called as top-level functions
2020-09-09 14:34:20 -04:00
Alexey Shvayka
c64db438df
Test [[Set]] failure near integer limit in Array.prototype.push
2020-09-02 15:30:33 -04:00
Leo Balter
2e127ec40e
Rename usage of master to main
...
Ref #2699
2020-07-15 15:47:15 -04:00
Alexey Shvayka
20a1345bbe
Add Array.prototype.lastIndexOf test
2020-06-24 15:14:04 -04:00
Alexey Shvayka
545e66b251
Add Array.prototype.indexOf test
2020-06-24 15:14:04 -04:00
Alexey Shvayka
fea38b7b8e
Remove extra operation from "info"
2020-03-23 14:23:05 -04:00
Alexey Shvayka
13082b0385
Add Array#concat test
2020-03-23 14:23:05 -04:00
Alexey Shvayka
679ad48603
Add Array#reduceRight test
2020-03-23 14:23:05 -04:00
Alexey Shvayka
27162904a7
Add Array#fill test
2020-03-23 14:23:05 -04:00
Alexey Shvayka
66913bf778
Add Array#lastIndexOf test
2020-03-23 14:23:05 -04:00
Alexey Shvayka
4d91ea0955
Add Array#indexOf test
2020-03-23 14:23:05 -04:00
Alexey Shvayka
5885db1361
Add Array#copyWithin test
2020-03-23 14:23:05 -04:00
Steven Cole
22cd9fe809
Repair filter test that was testing concat ( #2522 )
...
Looks like a cut-n-paste error. A test in the
built-ins/Array/prototype/filter subtree was exercising the concat
function.
Fixes #2519 .
2020-03-10 18:10:39 -07:00
Steven Cole
b0cb75f30c
Repair indexOf test that was testing lastIndexOf ( #2521 )
...
Looks like a cut-n-paste error; a test in the `indexOf` subtree was
actually testing the `lastIndexOf` function. Now pointing where it
should.
Fixes #2520 .
2020-03-10 18:09:10 -07:00
Alexey Shvayka
6d4b62614b
Add Symbol.isConcatSpreadable get order test
2020-02-20 12:38:28 -05:00
Alexey Shvayka
e8c53a2d4e
Add "length" exceeding integer limit test
2020-02-20 12:38:28 -05:00
Alexey Shvayka
b1e8a1cf8d
Refactor 2 tests using propertyHelper.js harness
2020-02-20 12:38:28 -05:00
Alexey Shvayka
602cdaca46
Add Array#flatMap non-extensible test
2020-02-20 12:36:10 -05:00
Alexey Shvayka
08634993b4
Add Array#flatMap non-configurable property test
2020-02-20 12:36:10 -05:00
Alexey Shvayka
2d3a718c8e
Add Array#flatMap non-writable property test
2020-02-20 12:36:10 -05:00
Alexey Shvayka
e9a7dc5eb6
Add Array#flat non-extensible test
2020-02-20 12:36:10 -05:00
Alexey Shvayka
9b7f7bb80a
Add Array#flat non-configurable property test
2020-02-20 12:36:10 -05:00
Alexey Shvayka
e9c8807caf
Add Array#flat non-writable property test
2020-02-20 12:36:10 -05:00
Alexey Shvayka
61e969d953
Add Array#concat non-extensible tests
2020-02-20 12:36:10 -05:00
Alexey Shvayka
3fa940e7cd
Add Array#concat non-configurable property tests
2020-02-20 12:36:10 -05:00
Alexey Shvayka
5faee49d36
Add Array#concat non-writable property tests
2020-02-20 12:36:10 -05:00
Alexey Shvayka
8310766461
Add Array#splice non-extensible test
2020-02-20 12:36:10 -05:00
Alexey Shvayka
4566372b88
Add Array#splice non-configurable property test
2020-02-20 12:36:10 -05:00
Alexey Shvayka
7c8dac120f
Add Array#slice non-extensible test
2020-02-20 12:36:10 -05:00
Alexey Shvayka
b6590765f9
Add Array#slice non-configurable property test
2020-02-20 12:36:10 -05:00
Alexey Shvayka
06357bed6a
Add Array#filter non-extensible test
2020-02-20 12:36:10 -05:00
Alexey Shvayka
d842aa21af
Add Array#filter non-configurable property test
2020-02-20 12:36:10 -05:00
Alexey Shvayka
10ead92024
Add Array#map non-extensible test
2020-02-20 12:36:10 -05:00
Alexey Shvayka
1f7a0be6f5
Add Array#map non-configurable property test
2020-02-20 12:36:10 -05:00
Alexey Shvayka
ac1c1b23c6
Add Array.of non-writable property test
2020-02-20 12:36:10 -05:00
Alexey Shvayka
61aa9951f2
Add Array.from non-writable property tests
2020-02-20 12:36:10 -05:00
Alexey Shvayka
8d4fbb4ab9
Add Array.from with non-iterable test
2020-02-20 12:36:10 -05:00
Alexey Shvayka
b478d5fa29
Make Array.from with iterable test more precise
2020-02-20 12:36:10 -05:00
Ross Kirsling
623e9d199a
Add tests for Array methods throwing with string receiver. ( #2463 )
2020-01-08 14:00:30 -05:00
Natalie Silvanovich
0ddce199d5
Adding tests for Array.prototype.copyWithin ( #2443 )
...
* Adding tests for Array.prototype.copyWithin. This case caused a security bug in Moddable
2019-12-18 11:26:19 -05:00
Gus Caplan
a53f43e1ce
add missing newlines in tests
2019-11-10 20:18:56 -08:00
Mike Pennisi
f26c2a11bd
Remove unnecessary "includes" directives
...
The values defined by the referenced files are not used by these tests.
This makes their inclusion superfluous, which needlessly increases the
time to execute the tests and may confuse some readers.
2019-09-25 13:59:24 -04:00
Alexey Shvayka
ff83fb2922
Improve "proto-from-ctor-realm" coverage for Array ( #2340 )
...
* Rename "Array/proto-from-ctor-realm.js" test
* Add single argument test
* Add two arguments test
2019-09-18 13:26:40 -03:00
Leo Balter
ff9763729d
Remove duplicated es[56]id if esid is present
2019-08-05 10:54:37 -04:00
Aleksey Shvayka
993601089b
Add Array property descriptor test ( #2164 )
2019-05-15 12:33:52 -04:00
Michael Ficarra
7238135940
add flat/flatMap to Array unscopables
2019-01-30 10:02:35 -05:00
Leo Balter
258da539bc
refactor coverage for flatMap
2018-12-20 13:08:21 -05:00
Mathias Bynens
b2597d060d
Add tests for Array.prototype.sort stability ( #1977 )
...
https://github.com/tc39/ecma262/pull/1340
2018-12-06 11:56:58 -05:00
André Bargull
b62dae4fff
Fix various bugs in test cases ( #1988 )
2018-12-05 15:48:28 -05:00
Rick Waldron
2e18327af2
Eliminate false positives: Array.prototype.flat, Array.prototype.flatMap
2018-11-30 09:27:07 -05:00
Leo Balter
1307fa8f44
some quick fixes for Array.prototype.{flat,flatMap} tests
2018-08-20 11:16:54 -04:00
rhuanjl
1bffb14efb
Array.prototype.flat and Array.prototype.flatMap property access count
2018-08-20 06:31:04 +01:00
Rick Waldron
a8f7012587
Array.prototype.flatten => Array.prototype.flat ( #1569 )
2018-05-22 15:47:50 -04:00
André Bargull
b552dad5cb
Various test cases for cross-browser compliance bugs
2018-05-03 09:27:27 -07:00
Rick Waldron
afa24856b4
built-ins/Array/*: make all indentation consistent (depth & character) ( #1415 )
2018-02-15 17:40:02 -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
82c6148980
Add missing closing parenthesis and remove invalid async flag ( #1402 )
2018-02-01 14:04:51 -05:00
André Bargull
658f19005b
assert.compareArray does not perform deep-equality comparison
2018-01-25 13:59:37 -05:00
Rick Waldron
4afc330363
Fix: various lint fixes
2018-01-10 17:29:48 -05:00
Michael Ficarra
041da54c02
add flatten/flatMap to features.txt and mark appropriate tests
2018-01-05 16:59:34 -05:00
Michael Ficarra
d8233624aa
add missing compareArray function
2018-01-05 16:59:34 -05:00
Michael Ficarra
6bd7b21a2b
add myself to flatten/flatMap copyrights
2018-01-05 16:59:34 -05:00
Michael Ficarra
33b6c31331
use `onlyStrict` flag instead of `"use strict"` directive
2018-01-05 16:59:34 -05:00
Michael Ficarra
02ceb62400
flatMap/flatten test improvements
2018-01-05 16:59:34 -05:00
shilpi
1547e49c95
flatten and flatMap tests
2018-01-05 16:59:34 -05:00
Rick Waldron
92a2621901
Frontmatter: fixup "info: >" to "info: |"
2018-01-05 12:27:59 -05:00
Leo Balter
168cc4c638
Improve Array#sort tests for verifying non callable comparefn ( #1352 )
...
Fix #1345
2017-11-21 11:41:18 -05:00
Leo Balter
7cbbe51216
Add cross-realm feature
2017-09-22 15:29:10 -04:00
Leo Balter
5fc0a7c6a1
Add missing Symbol.species feature flags
2017-09-08 10:13:50 -04:00
Leo Balter
72537004b0
Add missing Symbol.isConcatSpreadable feature flags
2017-09-08 10:13:50 -04:00
Leo Balter
2bee5df77a
Add missing Symbol.iterator feature flags
2017-09-08 10:13:50 -04:00
Leo Balter
c41faf1aca
Add missing Symbol features flags
2017-09-07 15:51:13 -04:00
deathbearbrown
7cc2e921c8
add esid to array/prototype/values tests
2017-07-12 17:06:49 -04:00
deathbearbrown
b2737b2d82
add esid to array/prototype/unshift tests
2017-07-12 17:06:06 -04:00
deathbearbrown
2d13a07cc1
add esid to array/prototype/toString tests
2017-07-12 17:05:52 -04:00
deathbearbrown
20b8c9b896
add esid to array/prototype/splice tests
2017-07-12 17:05:44 -04:00
deathbearbrown
e07385fff4
add esid to array/prototype/Symbol.unscopables tests
2017-07-12 17:05:36 -04:00
deathbearbrown
4ef011ffcf
add esid to array/prototype/toLocaleString tests
2017-07-12 17:05:28 -04:00
deathbearbrown
7c3675494a
add esid to array/prototype/sort tests
2017-07-12 17:05:18 -04:00
deathbearbrown
474237a725
add esid to array/prototype/some tests
2017-07-12 17:05:07 -04:00
deathbearbrown
da291ca3b1
add esid to array/prototype/shift tests
2017-07-12 17:04:32 -04:00
deathbearbrown
a62da2b499
add esid to array/prototype/reverse tests
2017-07-12 17:04:18 -04:00
deathbearbrown
4a9c9e9886
add esid to array/protoype
2017-07-05 10:10:28 -04:00
deathbearbrown
1122913fd9
add esid to array/prototype/slice tests
2017-06-30 15:08:08 -04:00
Sue Lockwood
73ec5e6cd9
add esid to array/prototype/reduceRight tests ( #1118 )
2017-06-30 10:45:25 -04:00
Sue Lockwood
051bbb88ff
add esid to array/prototype/reduce tests ( #1117 )
2017-06-30 10:45:16 -04:00
Sue Lockwood
5ff6550197
add esid to array/prototype/push tests ( #1116 )
2017-06-30 10:42:59 -04:00
Sue Lockwood
d6b492205d
add esid to array/prototype/pop tests ( #1115 )
2017-06-30 10:42:52 -04:00
Sue Lockwood
a6a3cf74c4
add esid to array/prototype/map tests ( #1114 )
2017-06-30 10:42:44 -04:00
Sue Lockwood
d22b84173e
add esid to array/prototype/lastIndexOf tests ( #1113 )
2017-06-30 10:42:36 -04:00
Sue Lockwood
7457fe6608
add esid to array/prototype/keys test ( #1112 )
2017-06-30 10:42:28 -04:00
Sue Lockwood
4fe640b297
add esid to array/prototype/join ( #1111 )
2017-06-30 10:42:18 -04:00
Sue Lockwood
54e6302219
add esid to array/prototype/indexOf ( #1110 )
2017-06-30 10:42:06 -04:00
Sue Lockwood
f5a5bdebb8
add esid to array/prototype/forEach tests ( #1106 )
2017-06-30 10:37:24 -04:00
Sue Lockwood
3aa94e2f08
add esid to array/prototype/findIndex tests ( #1105 )
2017-06-30 10:37:06 -04:00