181 Commits

Author SHA1 Message Date
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
Gus Caplan
900855b07b Fix Promise/prototype/finally/rejected-observable-then-calls-argument 2020-02-13 10:37:24 -05:00
Gus Caplan
505949357b Fix call to $DONE 2020-02-08 08:55:38 -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
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
Alexey Shvayka
71a70fc117 Use isConstructor in "executor-function-nonconstructor.js" (#2393) 2019-10-08 14:41:29 -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
Alexey Shvayka
8042c57d9b Add Promise#finally invoked on thenable test (#2312)
* Rename proxy context test

* Add thenable context test
2019-08-28 12:42:24 -03:00
André Bargull
59a1a016b7 Assign "name" property to all anonymous functions (#2299)
Implements the changes from <https://github.com/tc39/ecma262/pull/1490>.
2019-08-15 10:58:40 -04:00
Leo Balter
ff9763729d Remove duplicated es[56]id if esid is present 2019-08-05 10:54:37 -04:00
André Bargull
d8c20b423b Call $DONE function exactly once per test
Also make a note in CONTRIBUTING.md that `$DONE` shouldn't be called multiple times.
2019-07-22 02:12:24 -07:00
Alexey Shvayka
d7c95efe66 Improve "name" tests of Promise built-in functions (#2179) 2019-06-26 15:03:14 -04:00
Gus Caplan
61ccff550e Fix invoke-resolve-get-error-close tests (#2210) 2019-06-21 14:26:57 -04:00
Aleksey Shvayka
e4fed70c9b Fix description of Promise constructor test (#2174) 2019-05-22 17:57:45 -04:00
Aleksey Shvayka
ee960aefb5 Improve Promise constructor coverage (#2158)
* Add constructor descriptor test

* Rename & improve non-callable executor test

* Rename & simplify executor call context tests

* Remove duplicate reject via abrupt test

* Deduplicate undefined NewTarget tests

* Add basic constructor test

* Add abrupt prototype getting tests
2019-05-22 17:33:09 -04:00
Leo Balter
3b2ad0b5d0 Fix tests for new resolve lookup in Promise.allSettled 2019-04-24 17:28:01 -04:00
Leo Balter
24d1b6d59c Fix tests for new resolve lookup 2019-04-24 17:28:01 -04:00
Leo Balter
b646cf6365 Add tests for Promise.all|race resolve lookup
Ref tc39/ecma262#1506
2019-04-24 17:28:01 -04:00
Leo Balter
7e7b9e103d
Port tests from Promise.all to Promise.allSettled (#2124) 2019-04-17 14:17:54 -04:00
Rick Waldron
6d2288fe79 Eliminate false positives: Promise.prototype.finally 2018-11-30 09:34:25 -05:00
Adrian Heine
fc6de76a0d Add missing mandatory Promise.{all,race} argument 2018-11-08 09:37:56 +01:00
André Bargull
500e48e6ce Fix various test bugs (#1502)
Fixes #1492
2018-03-22 16:36:57 -04:00
Rick Waldron
03f0f56961 Promise.all/race with non-iterable or invalid return from Symbol.iterator. (#1496)
Fixes gh-1490
2018-03-19 14:01:36 -04:00