Alexey Shvayka
ac4d02d77a
Fix Promise.prototype.finally test
2020-06-11 19:36:49 -04:00
Alexey Shvayka
adf2cf4204
Add %TypedArray%.prototype.lastIndexOf tests
2020-06-10 15:59:14 -04:00
Alexey Shvayka
063cdb5731
Add %TypedArray%.prototype.indexOf tests
2020-06-10 15:59:14 -04:00
Alexey Shvayka
290ceba31f
Update Promise.any tests
2020-06-03 15:49:04 -04:00
Alexey Shvayka
fb88b47938
Update Promise.race tests
2020-06-03 15:49:04 -04:00
Alexey Shvayka
c915741594
Update Promise.allSettled tests
2020-06-03 15:49:04 -04:00
Alexey Shvayka
cf37b039a8
Update Promise.all tests
2020-06-03 15:49:04 -04:00
Rick Waldron
081afde9c1
Promise.any: coverage updates, R3
2020-06-03 11:07:28 -07:00
Rick Waldron
9999dff8fd
Promise.any: coverage updates, R2
2020-06-03 11:07:28 -07:00
Rick Waldron
3604a65a29
Promise.any: coverage updates, R1
2020-06-03 11:07:28 -07:00
Alexey Shvayka
0fcc51c9e2
Update copyright for "length" test
2020-06-03 14:03:21 -04:00
Alexey Shvayka
3a4bd7d050
Add symbol primitive test
2020-06-03 14:03:21 -04:00
Alexey Shvayka
38050f0cdd
Add string primitive test
2020-06-03 14:03:21 -04:00
Alexey Shvayka
f4b30daf12
Rename & improve "length" test
2020-06-03 14:03:21 -04:00
Alexey Shvayka
616978791d
Use Promise chaining
2020-06-03 13:25:03 -04:00
Alexey Shvayka
919415704b
Add TypedArrayConstructors test
2020-06-03 13:25:03 -04:00
Alexey Shvayka
02013fd1d6
Add AsyncFromSyncIterator tests
2020-06-03 13:25:03 -04:00
Rick Waldron
24b7f5fa99
Atomics.waitAsync: update feature flags ( #2641 )
2020-05-27 12:11:06 -07:00
Leo Balter
1a7aee6ba0
Add missing coverage for String.prototype.split ( #2632 )
...
Fixes #2622
2020-05-20 19:25:07 -07:00
Marja Hölttä
218edad632
Remove duplicate Promise.all tests ( #2624 )
...
1) Promise/all/S25.4.4.1_A6.1_T1.js is the same as
Promise/all/S25.4.4.1_A2.1_T1.js
2) Promise/all/S25.4.4.1_A6.1_T2.js is covered by
Promise/all/S25.4.4.1_A2.3_T1.js and
Promise/all/S25.4.4.1_A2.3_T2.js
2020-05-18 10:42:56 -07:00
Rick Waldron
1d142259bc
*.prototype.toString(), a-z make radix loop condition inclusive of radix 36
2020-05-13 09:22:25 -04:00
Rick Waldron
eff5ba2c98
BigInt/Number.prototype.toString(...), Step 6
2020-05-08 12:16:16 -04:00
Rick Waldron
914ab0280c
Atomics.waitAsync: prevent in-agent tests from hanging by checking for Atomics.waitAsync at start of test
2020-05-08 10:01:32 -04:00
Alexey Shvayka
1fccea4471
Object.prototype.hasOwnProperty: Test coercion order
2020-05-06 11:56:49 -04:00
Alexey Shvayka
8a3fe5318d
Merge "length" tests & refactor using propertyHelper.js harness
2020-05-06 11:56:49 -04:00
Alexey Shvayka
1c3d1e3026
Object.prototype.toString: Improve revoked Proxy coverage
2020-05-06 11:51:46 -04:00
Mårten Nordheim
9da54d053d
Fix #2605 ; make safe-integer.js call isSafeInteger
...
The folder and file name implies it should be using isSafeInteger rather
than isInteger which it was using.
2020-05-06 10:51:31 -04:00
Marja Hölttä
429c60ec38
fix
2020-05-06 10:48:38 -04:00
Marja Hölttä
4be59efd30
fix
2020-05-06 10:48:38 -04:00
Marja Hölttä
affe579677
fix
2020-05-06 10:48:38 -04:00
Marja Hölttä
58dba42939
Add Promise/*/resolve-not-callable-close.js
2020-05-06 10:48:38 -04:00
Gus Caplan
4d9dccf443
Remove invalid feature, fix lint
2020-04-29 17:31:45 -04:00
Alexey Shvayka
a3c7d30cbb
Add AsyncGeneratorFunction test
2020-04-26 16:19:25 -04:00
Alexey Shvayka
69de665a62
Add GeneratorFunction test
2020-04-26 16:19:25 -04:00
Alexey Shvayka
43bc9f1465
Add Function test
2020-04-26 16:19:25 -04:00
Shu-yu Guo
76b38918a8
Correctly tag AggregateError proto-from-ctor-realm test
2020-04-25 18:51:44 -04:00
Alexey Shvayka
c9ce3be95d
Add Object.seal test
2020-04-25 18:45:48 -04:00
Alexey Shvayka
feaa555fc3
Add Object.isSealed test
2020-04-25 18:45:48 -04:00
Alexey Shvayka
a65d0bfb42
Add Object.isFrozen test
2020-04-25 18:45:48 -04:00
Alexey Shvayka
521446b36b
Add Object.freeze test
2020-04-25 18:45:48 -04:00
Alexey Shvayka
07ff2ffa4a
Add Object.defineProperties test
2020-04-25 18:45:48 -04:00
Alexey Shvayka
56cbc61e42
Add Object.getOwnPropertyDescriptors test
2020-04-25 18:45:48 -04:00
Alexey Shvayka
2183fa7e4e
Add Object.assign test
2020-04-25 18:45:48 -04:00
Alexey Shvayka
7a4b88e446
Add `null` named capture coercion test case
2020-04-23 10:48:48 -04:00
Alexey Shvayka
6de6484e21
Add functional replacement test
2020-04-23 10:48:48 -04:00
Alexey Shvayka
a6f3449cd8
Add string replacement test
2020-04-23 10:48:48 -04:00
Alexey Shvayka
eca34edd7e
Drop "the" and align license headers
2020-04-23 10:48:16 -04:00
Alexey Shvayka
3b5845afe7
Add invalid non-Unicode test
2020-04-23 10:48:16 -04:00
Alexey Shvayka
b0995ea174
Add invalid Unicode test
2020-04-23 10:48:16 -04:00
Alexey Shvayka
fd18971545
Add valid non-Unicode test
2020-04-23 10:48:16 -04:00
Alexey Shvayka
1991c24d91
Add valid Unicode test
2020-04-23 10:48:16 -04:00
Alexey Shvayka
df0207cbeb
Test revoked [[ProxyHandler]]
2020-04-23 10:45:26 -04:00
Alexey Shvayka
d6834acbf1
Test revoked callable [[ProxyTarget]]
2020-04-23 10:45:26 -04:00
Alexey Shvayka
449f3ed0b9
Test revoked [[ProxyTarget]]
2020-04-23 10:45:26 -04:00
Alexey Shvayka
0c06bbcebf
Add "proto-from-ctor-realm" test for AggregateError
2020-04-23 10:43:46 -04:00
Alexey Shvayka
a24078194c
Use isConstructor harness in revocation function test
2020-04-23 10:42:59 -04:00
Alexey Shvayka
c31133b195
Add Proxy.revocable built-in test
2020-04-23 10:42:59 -04:00
Rick Waldron
fadb9073d3
Atomics.waitAsync: fix lint trash
2020-04-23 10:32:55 -04:00
Rick Waldron
d7e4de1484
Atomics.waitAsync: validate array type; waiter list position, notify before timeout
2020-04-23 10:32:55 -04:00
Rick Waldron
161ce480d1
Atomics.waitAsync: misused symbol args.
2020-04-23 10:32:55 -04:00
Rick Waldron
bd5b37e51e
Atomics.waitAsync: symbol for timeout throws
2020-04-23 10:32:55 -04:00
Rick Waldron
eeb75f60dd
Atomics.waitAsync: poisoned object throws
2020-04-23 10:32:55 -04:00
Rick Waldron
db9c0ef27c
Atomics.waitAsync: out of range index
2020-04-23 10:32:55 -04:00
Rick Waldron
092342098e
Atomics.waitAsync: fix lint issues
2020-04-23 10:32:55 -04:00
Rick Waldron
c3efb56025
Atomics.waitAsync: make all agent timeouts async
2020-04-23 10:32:55 -04:00
Rick Waldron
f03c0c2de3
fixup! Atomics.waitAsync: no spurious wakeup on [operation]
2020-04-23 10:32:55 -04:00
Rick Waldron
a46bbfd872
Atomics: drop unused id argument to agent receiveBroadcast handler
2020-04-23 10:32:55 -04:00
Rick Waldron
974a4ffbc5
Atomics.waitAsync: no spurious wakeup on [operation]
2020-04-23 10:32:55 -04:00
Rick Waldron
6d4b4eba98
Atomics.waitAsync: false, nan, negative, null, object zero timeouts
2020-04-23 10:32:55 -04:00
Rick Waldron
4c2ca05790
Atomics.waitAsync: negative index throws
2020-04-23 10:32:55 -04:00
Rick Waldron
a196c9307d
Atomics.waitAsync: negative timeout
2020-04-23 10:32:55 -04:00
Rick Waldron
677fb82a75
Atomics.waitAsync: false for timeouts, revised.
2020-04-23 10:32:55 -04:00
Rick Waldron
9519cd8448
Atomics.waitAsync: Return Value
2020-04-23 10:32:55 -04:00
Rick Waldron
dabcc05199
Atomics.waitAsync: false, nan for timeouts
2020-04-23 10:32:55 -04:00
Rick Waldron
c0f0adffdd
Atomics.waitAsync: ValidateSharedIntegerTypedArray, ValidateAtomicAccess & Return promiseCapability.[[Promise]]
2020-04-23 10:32:55 -04:00
Rick Waldron
4e48a5692c
Atomics.wait: fix esid
2020-04-23 10:32:55 -04:00
Rick Waldron
bb37b8812f
Atomics.waitAsync: add descriptor, length, name tests
2020-04-23 10:32:55 -04:00
Alexey Shvayka
1394a4f33e
Fix Proxy tests
2020-04-23 10:31:12 -04:00
Alexey Shvayka
fe0d4dc781
Fix bound function tests
2020-04-23 10:31:12 -04:00
Gus Caplan
1d513c3a50
Update indices-groups-object.js
2020-04-18 17:04:51 -04:00
Gus Caplan
a799a4ac23
Sort out __proto__ occurances outside of annexB
2020-04-18 17:04:51 -04:00
Michaël Zasso
e1fb459313
Use slice in RegExp lookBehind test
...
This change allows the test to be run on engines that do not implement
Annex B.
2020-04-18 13:26:52 -04:00
jhnaldo
68205eb76c
Fixed wrong `esid` and `features` in a Promise.all test
2020-04-18 13:26:27 -04:00
Alexey Shvayka
048b6b54ff
Assert that Symbol is a constructor
2020-04-14 16:45:00 -04:00
Alexey Shvayka
156d1b68fd
Fix async iterator methods not passing absent values tests ( #2571 )
...
* Fix `next` method test
* Fix `return` method test
* Drop `throw` method test
%AsyncFromSyncIteratorPrototype%.throw is always called with `value`.
2020-04-10 15:41:20 -07:00
Alexey Shvayka
6fb6ff6ac5
Add String.prototype.split test
2020-04-09 09:48:21 -04:00
Alexey Shvayka
0c0bcef6ea
Add String.prototype.search test
2020-04-09 09:48:21 -04:00
Alexey Shvayka
25978298a4
Add String.prototype.replaceAll test
2020-04-09 09:48:21 -04:00
Alexey Shvayka
f21c828965
Add String.prototype.replace test
2020-04-09 09:48:21 -04:00
Alexey Shvayka
d8a6a06dcd
Add String.prototype.match test
2020-04-09 09:48:21 -04:00
Alexey Shvayka
c1a7ffa2ef
Rename searchValue-replace-method-abrupt.js
2020-04-09 09:48:21 -04:00
Shu-yu Guo
966fc11862
Migrate FinalizationRegistry tests to per-item callback API
2020-04-01 16:45:40 -04:00
Alexey Shvayka
4199a3b34b
Add integer index property name test
2020-04-01 11:41:38 -04:00
Alexey Shvayka
b69390e68a
Add string property name test
2020-04-01 11:41:38 -04:00
Alexey Shvayka
00cf7a1a9c
Rename "trap-is-undefined-receiver.js"
2020-04-01 11:41:38 -04:00
Rick Waldron
772fd320cd
Promise.any: remove erroneous SpeciesConstructor tests until a better solution can be found. ( #2562 )
2020-03-31 13:51:49 -07:00
Alexey Shvayka
b90a11e620
Add `throw` method test
2020-03-30 19:22:57 -04:00
Alexey Shvayka
543370c44d
Add `return` method test
2020-03-30 19:22:57 -04:00
Alexey Shvayka
1bf4e159dd
Add `next` method test
2020-03-30 19:22:57 -04:00
Rick Waldron
299cd74ef2
Promise.any: fix "invoke-then.js" test
2020-03-30 13:57:03 -04:00
Alexey Shvayka
9ccd3a7b9e
Test revoked callable [[ProxyTarget]]
2020-03-30 09:48:37 -04:00
Alexey Shvayka
91b867b660
Fix non-callable [[ProxyTarget]] test
2020-03-30 09:48:37 -04:00
Alexey Shvayka
e8e3aaa77b
Test revoked [[ProxyHandler]]
2020-03-30 09:48:37 -04:00
Alexey Shvayka
8b610fb33a
Test revoked [[ProxyTarget]]
2020-03-30 09:48:37 -04:00
Rick Waldron
22be03d833
Promise.any: lint fixes
2020-03-27 21:00:29 -04:00
Rick Waldron
d53f45db3d
Promise.any: remove unnecessary static resolve def
2020-03-25 12:25:56 -04:00
Rick Waldron
499b748dca
Promise.any: review fixes, 2
2020-03-25 12:14:32 -04:00
Rick Waldron
b21b0c1820
Promise.any: additional "resolve from rejection" tests
2020-03-25 12:04:37 -04:00
Rick Waldron
a05fb94eba
Promise.any: feature flags, 2
2020-03-25 12:04:37 -04:00
Rick Waldron
7fbce5a9d8
Promise.any: simplify promise creation
2020-03-25 12:04:37 -04:00
Rick Waldron
5c68b60ad3
Promise.any: cleanup in @@species tests
2020-03-25 12:04:37 -04:00
Rick Waldron
d9265df3ab
Promise.any: additional then + resolve tests
2020-03-25 12:04:37 -04:00
Rick Waldron
1c748507f2
Promise.any: feature flags
2020-03-25 12:04:36 -04:00
Rick Waldron
5d3eafc547
Promise.any: review fixes
2020-03-25 12:04:36 -04:00
Rick Waldron
6edaba378e
Promise.any: updates, corrections and new tests.
2020-03-25 12:04:36 -04:00
Rick Waldron
e0f0c7860b
Promise.any: empty iterable rejects with AggregateError
2020-03-25 12:04:36 -04:00
Rick Waldron
272e9abed4
Promise.any: make async operation test actually async
2020-03-25 12:04:36 -04:00
Rick Waldron
47b3858978
Promise.any: expected rejection shouldn't end with error message.
2020-03-25 12:04:36 -04:00
Rick Waldron
55b22d8d9f
Promise.any: string iterable should not be rejected (adds error message for clarity)
2020-03-25 12:04:36 -04:00
Rick Waldron
e0abeaa4df
Promise.any: convert sync test to async test to ensure run to completion
2020-03-25 12:04:36 -04:00
chicoxyzzy
860e02ad28
add iter-assigned tests
2020-03-25 12:04:36 -04:00
chicoxyzzy
9567abd85a
Add iter-arg tests
2020-03-25 12:04:36 -04:00
chicoxyzzy
094ddc7f75
add species-get-error test
2020-03-25 12:04:36 -04:00
chicoxyzzy
e3d48f244a
add Invocation of the instance's `then` method test
2020-03-25 12:04:35 -04:00
chicoxyzzy
afe3f0bb50
add reject-immed test
2020-03-25 12:04:35 -04:00
chicoxyzzy
adcd162c10
add is callable test
2020-03-25 12:04:35 -04:00
chicoxyzzy
88d058b59e
Add returns promise test
2020-03-25 12:04:35 -04:00
chicoxyzzy
be1bf6391e
Add Promise and Promise.any properties tests
2020-03-25 12:04:35 -04:00
chicoxyzzy
23d7f0b79d
add Invocation of the constructor's `resolve` method test
2020-03-25 12:04:35 -04:00
chicoxyzzy
f0fd4e0d4d
update features.txt
...
-
2020-03-25 12:04:35 -04:00
chicoxyzzy
aca10842a2
Add context tests
2020-03-25 12:04:35 -04:00
chicoxyzzy
715964b16b
Add Capability Executor tests
2020-03-25 12:04:35 -04:00
Alexey Shvayka
1e63ce0eae
Improve String.prototype.@@replace poisoned stdlib test
2020-03-25 11:59:43 -04:00
Alexey Shvayka
9b71a7cada
Fix inconsistent indentation in YAML
2020-03-25 11:59:43 -04:00
Alexey Shvayka
8fe71e1f56
Drop JSON.stringify stack overflow tests
2020-03-25 11:59:43 -04:00
Rick Waldron
dfc7ecc678
AggregateError: If NewTarget is undefined, let newTarget be the active function object ( #2537 )
2020-03-23 15:58:03 -07:00
Rick Waldron
344612b592
Fix: Proxy set, if trap is undefined ( #2536 )
2020-03-23 15:46:33 -07:00
Alexey Shvayka
33b9bba03b
Add Reflect.ownKeys test
2020-03-23 14:50:33 -04:00
Alexey Shvayka
b273affa2c
Add Object.values test
2020-03-23 14:50:33 -04:00
Alexey Shvayka
5874ca46fc
Add Object.keys test
2020-03-23 14:50:33 -04:00
Alexey Shvayka
c370276c65
Add Object.getOwnPropertySymbols test
2020-03-23 14:50:33 -04:00
Alexey Shvayka
62c9541be4
Add Object.getOwnPropertyNames test
2020-03-23 14:50:33 -04:00
Alexey Shvayka
021b8f2b33
Add Object.getOwnPropertyDescriptors test
2020-03-23 14:50:33 -04:00
Alexey Shvayka
b94190e387
Add Object.entries test
2020-03-23 14:50:33 -04:00
Alexey Shvayka
1eff480aca
Add toJSON stack overflow test
2020-03-23 14:47:16 -04:00
Alexey Shvayka
2255a0ff11
Add replacer stack overflow test
2020-03-23 14:47:16 -04:00
Alexey Shvayka
d2b5f63a15
Improve "info" meta of replacer with deleted property test
2020-03-23 14:47:16 -04:00
Alexey Shvayka
dc21d6b0a4
Add "lastIndex" restore test
2020-03-23 14:34:16 -04:00
Alexey Shvayka
fe2dfe9525
Add "lastIndex" init test
2020-03-23 14:34:16 -04:00
Alexey Shvayka
b59d07937a
Add note on arbitrary large integer
2020-03-23 14:30:51 -04:00
Alexey Shvayka
669250d098
RegExp: Test Quantifier with large integer
2020-03-23 14:30:51 -04:00
Alexey Shvayka
8dccb69cc0
Replace "\b" with "\u0008"
2020-03-23 14:30:17 -04:00
Alexey Shvayka
2377131fd7
Test \b escape inside CharacterClass in Unicode RegExp
2020-03-23 14:30:17 -04:00
Alexey Shvayka
2cae20333d
Add functional replacer with empty result test
2020-03-23 14:29:04 -04:00
Alexey Shvayka
8e41e8b439
Add "lastIndex" length abrupt coercion test
2020-03-23 14:29:04 -04:00
Alexey Shvayka
0485b839a6
Add "lastIndex" length coercion test
2020-03-23 14:29:04 -04:00
Alexey Shvayka
807afd9120
Make "length" coercion test more precise
2020-03-23 14:29:04 -04:00
Alexey Shvayka
3f6b961428
Make "index" integer coercion test more precise
2020-03-23 14:29:04 -04:00
Alexey Shvayka
53d16acb3b
Add "index" integer coercion test with functional replacer
2020-03-23 14:29:04 -04:00
Alexey Shvayka
e3e0e0f629
Add named capture groups abrupt lookup tests
2020-03-23 14:29:04 -04:00
Alexey Shvayka
c9e1c1c2b8
Add named capture groups abrupt coercion tests
2020-03-23 14:29:04 -04:00
Alexey Shvayka
4d3db14653
Add named capture groups coercion tests
2020-03-23 14:29:04 -04:00
Alexey Shvayka
dbbe2e7cc7
Add "0" string coercion test with global RegExp
2020-03-23 14:29:04 -04:00
Alexey Shvayka
50d1419b00
Make string coercion tests more precise
2020-03-23 14:29:04 -04:00
Alexey Shvayka
cf583c96d8
Add poisoned stdlib test
2020-03-23 14:29:04 -04:00
Alexey Shvayka
67e58de839
Fix typo in file name
2020-03-23 14:29: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
Alexey Shvayka
f72db7e12b
Add [[Call]] tests
2020-03-23 14:10:11 -04:00
Alexey Shvayka
5c3ea18763
Add [[Construct]] tests
2020-03-23 14:10:11 -04:00
Alexey Shvayka
aa53649ef1
Add [[HasProperty]] tests
2020-03-23 14:10:11 -04:00
Alexey Shvayka
6155fcad3d
Add [[Get]] tests
2020-03-23 14:10:11 -04:00
Alexey Shvayka
2d60dc0f65
Add [[Set]] tests
2020-03-23 14:10:11 -04:00
Alexey Shvayka
983b1aceb5
Add [[OwnPropertyKeys]] tests
2020-03-23 14:10:11 -04:00
Alexey Shvayka
cc6d48d874
Add [[PreventExtensions]] tests
2020-03-23 14:10:11 -04:00
Alexey Shvayka
3987d3c20f
Add [[IsExtensible]] tests
2020-03-23 14:10:11 -04:00
Alexey Shvayka
d32db7a45e
Add [[SetPrototypeOf]] tests
2020-03-23 14:10:11 -04:00
Alexey Shvayka
20c2ce30f3
Add [[GetPrototypeOf]] tests
2020-03-23 14:10:11 -04:00
Alexey Shvayka
b9377e7b6d
Add [[GetOwnProperty]] tests
2020-03-23 14:10:11 -04:00
Alexey Shvayka
d46e72d95e
Add [[Delete]] tests
2020-03-23 14:10:11 -04:00
Alexey Shvayka
6b9929a31d
Add [[DefineOwnProperty]] tests
2020-03-23 14:10:11 -04:00
Rick Waldron
991e05dd38
Move: AggregateError belongs in the NativeErrors directory ( #2528 )
2020-03-16 11:43:52 -07:00
Mathias Bynens
25c9e334d3
Update RegExp property escape tests per Unicode v13.0.0 ( #2526 )
...
Upstream change in test generator:
11fa92ca64
Unicode v13.0.0:
https://unicode.org/versions/Unicode13.0.0/
2020-03-11 13:53:16 -07: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
Rick Waldron
36882a28e2
Fix: AggregateError/newtarget-proto-fallback. Closes gh-2515 ( #2518 )
2020-03-10 18:08:07 -07:00
Ross Kirsling
800870cbb8
Fix DST sensitivity in Date/parse/without-utc-offset.js. ( #2523 )
2020-03-10 18:07:44 -07:00
Ross Kirsling
df7a0b0c89
Remove errant LF from CR line ending test again.
2020-03-02 13:38:35 -05:00
Shu-yu Guo
f6b2ccdd09
Use assert instead of the nonexistent assert.ok ( #2510 )
2020-02-24 15:30:05 -08: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
Daniel Ehrenberg
c6dd620ad3
Rename FinalizationGroup to FinalizationRegistry
...
Corresponds to https://github.com/tc39/proposal-weakrefs/pull/183
(Note, this is untested)
2020-02-20 12:13:29 -05:00
Ross Kirsling
723205bd54
Fix invalid YAML from #2470 and #2474 .
2020-02-20 12:12:03 -05:00
Jordan Harband
a1fbd310e0
`Atomics.store` now normalizes -0 to +0
...
Per https://github.com/tc39/ecma262/pull/1827
2020-02-13 10:39:14 -05:00
Gus Caplan
900855b07b
Fix Promise/prototype/finally/rejected-observable-then-calls-argument
2020-02-13 10:37:24 -05:00
Gus Caplan
47f8c1c976
add more missing feature flags
2020-02-13 10:36:42 -05:00
Gus Caplan
505949357b
Fix call to $DONE
2020-02-08 08:55:38 -05:00
Gus Caplan
5b231ab2d6
add missing WeakSet and WeakMap features
2020-02-08 08:54:09 -05:00
Rick Waldron
811090fce2
Fix: \$DONE() must not be called with an argument, unless the argument is an error.
2020-02-07 12:24:43 -05:00
Jordan Harband
0ebbdf0395
`Promise.prototype.finally` thunks have a length of 0
2020-02-07 11:44:31 -05:00
Natalie Silvanovich
5c9b5ed610
Updating description for search element test
2020-02-06 12:43:52 -05:00
Natalie Silvanovich
07e708d900
TypedArray includes tests
2020-02-06 12:43:52 -05:00
Natalie Silvanovich
7ad85e90a9
Security test for TypedArray.prototype.sort based on CVE-2016-7288
2020-02-06 11:10:17 -05:00
Alexey Shvayka
72c4433687
Add `replaceValue` evaluation order test
2020-02-05 15:08:07 -05:00
Alexey Shvayka
946a2a3fec
Merge "length" tests
2020-02-05 15:08:07 -05:00
Alexey Shvayka
57d5ffa471
Fix $DONE usage
2020-02-05 15:05:51 -05:00
Alexey Shvayka
c5b1c97362
Fix isConstructor checks
2020-02-05 15:05:51 -05:00
Alexey Shvayka
b3ec56fb8c
Add CreateResolvingFunctions tests
2020-02-05 15:05:51 -05:00
Alexey Shvayka
8ce27898b9
Add Then Finally Functions test
2020-02-05 15:05:51 -05:00
Alexey Shvayka
1e13f2b1e7
Add Catch Finally Functions test
2020-02-05 15:05:51 -05:00
Alexey Shvayka
95fd012c66
Add isConstructor to Promise.prototype.finally test
2020-02-05 15:05:51 -05:00
Natalie Silvanovich
a12677ec4c
Adding security tests for TypedArray.prototype.fill based on CVE-2016-4734
2020-02-05 15:04:06 -05:00
Natalie Silvanovich
c2e157240d
Test that Typed Array internal slots are not inherited by TypedArray.prototype.buffer
2020-02-05 14:31:10 -05:00
Alexey Shvayka
963917618f
Test that JSON.stringify calls replacer on deleted properties
2020-02-05 14:25:04 -05:00
Alexey Shvayka
4383f2c6ba
Add Object.{freeze,preventExtensions,seal} abrupt completion tests ( #2468 )
...
* Add Object.freeze test
* Add Object.preventExtensions test
* Add Object.seal test
2020-01-14 11:31:45 -05:00
Ross Kirsling
01007880bc
Add test verifying offsetless date-time string is local time. ( #2461 )
...
* Add test verifying offsetless date-time string is local time.
* Fix copyright year.
2020-01-08 15:32:28 -05:00
Ross Kirsling
623e9d199a
Add tests for Array methods throwing with string receiver. ( #2463 )
2020-01-08 14:00:30 -05:00
Leo Balter
6e4d442cc6
Fix syntax typos + whitespace ( #2466 )
...
Ref #2444
2020-01-08 13:57:49 -05:00
Natalie Silvanovich
65afdfbff6
Additional tests for TypedArray copyWithin ( #2444 )
2020-01-08 13:26:40 -05:00
Gus Caplan
502cc20010
fix delete test, add error tests, fix lint ( #2453 )
2019-12-21 16:57:41 -05:00
Alexey Shvayka
19fd4bea79
Improve Object.prototype.isPrototypeOf coverage ( #2446 )
2019-12-18 21:33:31 -05:00
Mathieu Hofman
a3370bfca5
FinalizationGroup: Improve tests for cleanupSome/unregister interactions ( #2440 )
...
* Add test for unregister when the cell was already cleaned up
* FinalizationGroup.cleanupSome: call unregister after gc is performed
2019-12-18 11:26:54 -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
Kevin Gibbons
cadd47aa5f
Add test for for-in order ( #2432 )
...
* Add EnumerateObjectProperties tests for builtins which use it
* Add tests for EnumerateObjectProperties for for-in
* Add feature flag for for-in-order
2019-12-18 11:25:20 -05:00
Jon Coppeard
f7ad2953ed
Update tests now that FinalizationGroup.prototype.cleanupSome throws if cleanup is currently in progress. ( #2434 )
...
This behaviour was changed in: https://github.com/tc39/proposal-weakrefs/pull/158
2019-12-18 11:23:23 -05:00
Leo Balter
5c41447b75
Remove incorrect tests for AggregateError#toString ( #2435 )
...
A conforming implementation of ECMAScript may provide additional types, values, objects, properties, and functions beyond those described in this specification. In particular, a conforming implementation of ECMAScript may provide properties not described in this specification, and values for those properties, for objects that are described in this specification.
Ref #2433
2019-12-03 12:43:58 -05:00
Leo Balter
3682ddd7e3
Add tests for String#replaceAll ( #2423 )
...
Fixes #2417
2019-11-18 10:22:07 -05:00
Leo Balter
7040938bd0
Fix tests for AggregateError ( #2419 )
...
Ref tc39/proposal-promise-any#49
2019-11-15 12:46:58 -05:00
Jon Coppeard
43b0c7650d
Update tests for FinalizationGroup#register ( #2424 )
...
FinalizationGroup#register should throw if called with target and holdings being the same value.
This change happenend in: https://github.com/tc39/proposal-weakrefs/pull/165
2019-11-14 11:13:32 -05:00
Leo Balter
8f8b3374c2
Merge pull request #2420 from shvaikalesh/improve-json-parse-coverage
...
Improve JSON.parse reviver parameter coverage
2019-11-12 13:38:48 -05:00
Leo Balter
8544b062f3
Merge pull request #2418 from leobalter/remote-aggregateerror-tostring
...
Remove aggregateerror tostring
2019-11-12 11:56:30 -05:00
Alexey Shvayka
5728e1b6c9
Add reviver prototype chain lookup tests
2019-11-12 02:14:05 +02:00
Alexey Shvayka
80a99f703b
Add reviver object with non-configurable property tests
2019-11-12 02:14:05 +02:00
Alexey Shvayka
027cc0c0ca
Add reviver array with non-configurable property tests
2019-11-12 02:14:05 +02:00
Alexey Shvayka
64ce046229
Add reviver wrapper test
2019-11-11 23:58:07 +02:00
Alexey Shvayka
da9612db98
Add some more Proxy/ownKeys invariants tests ( #2413 )
...
* Defer making [[ProxyTarget]] non-extensible
* Fix typo in method name
* Add last Object.keys with Proxy invariant test
* Add Object.getOwnPropertySymbols with Proxy invariants tests
* Add Object.getOwnPropertyNames with Proxy invariants tests
* Replace "es6id" with "esid" in Object.getOwnPropertySymbols tests
2019-11-11 15:02:07 -05:00
Alexey Shvayka
600245fcd3
Add integer index tests for Proxy "set" and "has" traps ( #2412 )
...
* Make Proxy [[HasProperty]] in prototype test more robust
* Add integer index Proxy [[HasProperty]] in prototype test
* Add integer index Proxy [[Set]] in prototype test
2019-11-11 15:01:39 -05:00
Leo Balter
02bdf77b19
Add test for AggregateError's toString
...
Ref tc39/proposal-promise-any#49
2019-11-11 12:19:20 -05:00
Leo Balter
90231ad16f
Remote tests for AggregateError.prototype.toString
...
Ref tc39/proposal-promise-any#49
2019-11-11 11:20:24 -05:00
Gus Caplan
a53f43e1ce
add missing newlines in tests
2019-11-10 20:18:56 -08:00
Leo Balter
1bc193528b
Add tests for AggregateError ( #2406 )
...
This covers part of the Promise.any proposal
2019-11-07 11:01:21 -05:00
Jordan Harband
59d1af9d2a
[matchAll] pass a global regex ( #2399 )
...
- also, expect the right kind of error in `flags-undefined-throws.js`
Fixes #2398
2019-10-09 10:32:39 -04:00
Leo Balter
d49777de27
Whitespace cleanups. CRLF => LF
2019-10-08 20:44:09 -04:00
Alexey Shvayka
bb6ce7e435
Add test for Proxy "has" trap on prototype ( #2382 )
...
* Use allowProxyTraps.js in [[Set]] tests
* Add [[HasProperty]] test
2019-10-08 14:58:27 -04:00
Alexey Shvayka
1aac32e2f8
Improve Proxy/ownKeys invariants coverage ( #2384 )
...
* Add non-configurable invariant test
* Add non-extensible invariant test
2019-10-08 14:54:46 -04:00
Alexey Shvayka
71a70fc117
Use isConstructor in "executor-function-nonconstructor.js" ( #2393 )
2019-10-08 14:41:29 -04:00
Mathias Bynens
a898fe9826
Add missing `regexp-match-indices` feature tags ( #2395 )
2019-10-08 14:38:39 -04:00
Leo Balter
8688c4ab79
Fix typo: iterator => iterator ( #2394 )
...
Fix #2392
2019-10-07 12:43:23 -04:00
Jordan Harband
f3e950e8ed
tests for String.prototype.matchAll changes ( #2389 )
...
Per https://github.com/tc39/ecma262/pull/1716
2019-10-03 14:47:00 -04:00
Leo Balter
e2903e2648
Merge pull request #2366 from bocoup/unnecessary-includes
...
Remove unnecessary "includes" directives
2019-09-27 16:46:22 -04:00
jugglinmike
87e875f6c9
Correct errors in metadata ( #2378 )
...
* Correct typo
* Correct esid
2019-09-27 16:32:52 -04:00
jugglinmike
8953024f1a
Remove duplicate tests ( #2377 )
...
* Remove duplicate test
The behavior under test is verified by another file in Test262:
test/language/expressions/compound-assignment/S11.13.2_A2.1_T3.3.js
That version is preferable because it does not depend on `eval` and
because it supports both strict and non-strict mode.
* Remove overly-permissive test
By asserting only the presence of an "own" property, this test can be
satisfied from both strict mode code and non-strict mode code.
The following test verifies the presence of the "own" property and the
associated descriptor's values in strict mode:
test/language/arguments-object/10.6-13-c-3-s.js
That subsumes the semantics verified by this test, making it
superfluous. Remove the test.
* Remove overly-permissive test
By asserting only the absence of a syntax error, this test can be
satisfied from both strict mode code and non-strict mode code.
The following test verifies the runtime behavior of accessing the
property in strict mode code:
test/language/arguments-object/10.6-13-c-1-s.js
That subsumes the semantics verified by this test, making it
superfluous. Remove the test.
* Remove duplicate test
The behavior under test is verified by another file in Test262:
test/built-ins/Math/prop-desc.js
That version is preferable because it follows the test suite's
convention for testing property descriptors and because it supports both
strict and non-strict mode.
* Remove duplicate test
The behavior under test is verified by two separate files:
test/language/statements/function/line-terminator-non-strict.js
test/language/statements/function/line-terminator-strict.js
These files differ only in their usage of the `noStrict`/`onlyStrict`
metadata. Because tests are intended to be interpreted in both modes by
default, these can be expressed with a single file that does not limit
the permissible modes.
2019-09-27 16:31:44 -04:00
Leo Balter
83d9f750c9
Merge pull request #2376 from bocoup/ud-coverage
...
Improve coverage
2019-09-27 16:30:13 -04:00
jugglinmike
479ea0ec0b
Avoid false positive ( #2375 )
...
Prior to this patch, the modified test would pass if no exception was
produced. Use the `assert.throws` utility function to concisely express
the expectation more completely.
2019-09-27 16:25:07 -04:00
Mike Pennisi
9cd62ffbd7
Improve coverage: ctor props of the global object
...
Prior to this commit, the descriptors of the constructor properties of
the global object were verified inconsistently, many independent
assertions occured in the same file, and that file test was poorly
located.
Restructure the relevant tests to improve coverage, follow convention,
and promote discoverability.
2019-09-27 15:39:10 -04:00
Mike Pennisi
1f079a3525
Improve coverage: func props of the global object
...
Prior to this commit, the descriptors of the function properties of the
global object were verified inconsistently, many independent assertions
occured in the same file, and that file test was poorly located.
Restructure the relevant tests to improve coverage, follow convention,
and promote discoverability.
2019-09-27 15:39:10 -04:00
Mike Pennisi
f8957be8a7
Improve coverage: value props of the global object
...
Prior to this commit, the enumerability of the value properties of the
global object were only verified in strict mode, the assertions occured
in the same file, and that file test was poorly located.
Restructure the relevant tests to improve coverage, follow convention,
and promote discoverability.
2019-09-27 15:39:10 -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
Mike Pennisi
1e4e524251
Update tests to use APIs defined by included files
...
The `$DETACHBUFFER` function is the preferred mechanism for detaching
array buffers.
Likewise, `verifyNotWritable` is the preferred mechanism for asserting
lack of writability.
2019-09-25 13:59:24 -04: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
Leo Balter
3bfb341203
Fixes after test feedback
2019-09-23 12:26:02 -04:00
Leo Balter
08844700fe
Update tests for GC hook, apply async
...
- Fix incorrect tests for WeakRefs
Ref #2239
Fixes #2260
Fixes #2256
2019-09-23 12:26:02 -04:00
Leo Balter
7134634aa4
Revert "Remove tests based on the $262.gc hook"
...
This reverts commit d6d37f2f43
.
2019-09-23 12:26:02 -04:00
Alexey Shvayka
17685735e1
Add "proto-from-ctor-realm" tests for async functions ( #2342 )
...
* Add AsyncFunction test
* Add AsyncGeneratorFunction test
2019-09-20 15:27:32 -03:00
Leo Balter
0fd3cf4d24
Some cleanup follow ups ( #2351 )
2019-09-18 14:15:53 -03:00
Ron Buckton
1056d8fde9
Add tests for regexp-match-indices ( #2309 )
...
* Add tests for regexp-match-indices
* Add tests for unicode matches based on presence of /u flag
* Added deepEqual helper, PR feedback
2019-09-18 13:39:12 -03:00
Alexey Shvayka
256f5f4b46
Improve Proxy/set call parameters coverage ( #2347 )
...
* Tweak front matter of basic test
* Simplify basic test
* Add test for proxy as prototype
* Add test for proxy as prototype and __proto__
2019-09-18 13:30:28 -03: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
Alexey Shvayka
ef7fd2bc27
Add "proto-from-ctor-realm" tests for Intl constructors ( #2334 )
...
* Rename "Object/proto-from-ctor.js" test
* Add missing "Symbol" features
* Add Intl.Collator test
* Add Intl.DateTimeFormat test
* Add Intl.NumberFormat test
* Add Intl.PluralRules test
2019-09-11 17:22:21 -03:00
Alexey Shvayka
652cfc764a
Add "proto-from-ctor-realm" tests for native errors ( #2335 )
...
* Add EvalError test
* Add RangeError test
* Add ReferenceError test
* Add SyntaxError test
* Add TypeError test
* Add URIError test
2019-09-11 17:19:58 -03:00
Leo Balter
d6d37f2f43
Remove tests based on the $262.gc hook
...
Fixes #2239
Closes #2329
2019-09-05 19:38:03 +01:00
Leo Balter
5d84854f27
Avoid usage of Object.keys when asserting order of returned values ( #2320 )
...
Fixes #2226
2019-09-04 11:38:18 -03:00
Gus Caplan
841b32c6da
fix TypedArray.prototype.sort test ( #2326 )
...
* fix TypedArray.prototype.sort test
* Update sorted-values.js
* Update sorted-values.js
2019-09-04 11:36:51 -03:00