test262/test/built-ins/Promise
Mike Pennisi 9b622bf093 Remove or relocate misleading tests
These tests were designed to test the built-in "Promise.race Resolve
Element function," but ECMA262 does not describe such a function.

Contrary to the test's description, the function under test is created
by the InstantiateArrowFunctionExpression abstract operation. The
following tests verify most of the details directly (only the function
object's extensibility was not already tested by the existing tests):

- test/language/expressions/arrow-function/name.js
- test/language/expressions/arrow-function/throw-new.js
- test/language/expressions/arrow-function/prototype-rules.js

The definition of the built-in resolving functions is closely related,
but Test262 already includes tests for the corresponding concerns:

- test/built-ins/Promise/resolve-function-extensible.js
- test/built-ins/Promise/resolve-function-name.js
- test/built-ins/Promise/resolve-function-nonconstructor.js
- test/built-ins/Promise/resolve-function-prototype.js

Remove the tests and introduce one additional test to preserve coverage
while improving discoverability.
2021-05-11 17:36:28 -04:00
..
Symbol.species Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
all Set function `length` and `name` in `CreateBuiltinFunction` 2021-01-29 09:45:20 -05:00
allSettled Set function `length` and `name` in `CreateBuiltinFunction` 2021-01-29 09:45:20 -05:00
any Set function `length` and `name` in `CreateBuiltinFunction` 2021-01-29 09:45:20 -05:00
prototype Info: adds "sec-evaluatenew" step to info for all "not-a-constructor.js" tests. 2020-10-06 12:01:34 -04:00
race Remove or relocate misleading tests 2021-05-11 17:36:28 -04:00
reject Info: adds "sec-evaluatenew" step to info for all "not-a-constructor.js" tests. 2020-10-06 12:01:34 -04:00
resolve Info: adds "sec-evaluatenew" step to info for all "not-a-constructor.js" tests. 2020-10-06 12:01:34 -04:00
constructor.js Improve Promise constructor coverage (#2158) 2019-05-22 17:33:09 -04:00
create-resolving-functions-reject.js Clean up some existing constructor checks; eliminate duplicate checks 2020-10-06 12:01:34 -04:00
create-resolving-functions-resolve.js Clean up some existing constructor checks; eliminate duplicate checks 2020-10-06 12:01:34 -04:00
exception-after-resolve-in-executor.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
exception-after-resolve-in-thenable-job.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
exec-args.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
executor-call-context-sloppy.js Improve Promise constructor coverage (#2158) 2019-05-22 17:33:09 -04:00
executor-call-context-strict.js Improve Promise constructor coverage (#2158) 2019-05-22 17:33:09 -04:00
executor-function-extensible.js built-ins/Promise/*: make all indentation consistent (depth & character) (#1433) 2018-02-15 15:11:21 -05:00
executor-function-length.js built-ins/Promise/*: make all indentation consistent (depth & character) (#1433) 2018-02-15 15:11:21 -05:00
executor-function-name.js Assign "name" property to all anonymous functions (#2299) 2019-08-15 10:58:40 -04:00
executor-function-not-a-constructor.js Clean up some existing constructor checks; eliminate duplicate checks 2020-10-06 12:01:34 -04:00
executor-function-property-order.js Set function `length` and `name` in `CreateBuiltinFunction` 2021-01-29 09:45:20 -05:00
executor-function-prototype.js built-ins/Promise/*: make all indentation consistent (depth & character) (#1433) 2018-02-15 15:11:21 -05:00
executor-not-callable.js Improve Promise constructor coverage (#2158) 2019-05-22 17:33:09 -04:00
get-prototype-abrupt-executor-not-callable.js Improve Promise constructor coverage (#2158) 2019-05-22 17:33:09 -04:00
get-prototype-abrupt.js Fix description of Promise constructor test (#2174) 2019-05-22 17:57:45 -04:00
is-a-constructor.js Standardize built-in constructor testing 2020-10-06 12:01:34 -04:00
length.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
name.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
promise.js Improve Promise constructor coverage (#2158) 2019-05-22 17:33:09 -04:00
property-order.js Set function `length` and `name` in `CreateBuiltinFunction` 2021-01-29 09:45:20 -05:00
proto-from-ctor-realm.js Remove duplicated es[56]id if esid is present 2019-08-05 10:54:37 -04:00
reject-function-extensible.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
reject-function-length.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
reject-function-name.js Assign "name" property to all anonymous functions (#2299) 2019-08-15 10:58:40 -04:00
reject-function-nonconstructor.js built-ins/Promise/*: make all indentation consistent (depth & character) (#1433) 2018-02-15 15:11:21 -05:00
reject-function-property-order.js Set function `length` and `name` in `CreateBuiltinFunction` 2021-01-29 09:45:20 -05:00
reject-function-prototype.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
reject-ignored-via-abrupt.js built-ins/Promise/*: make all indentation consistent (depth & character) (#1433) 2018-02-15 15:11:21 -05:00
reject-ignored-via-fn-deferred.js built-ins/Promise/*: make all indentation consistent (depth & character) (#1433) 2018-02-15 15:11:21 -05:00
reject-ignored-via-fn-immed.js built-ins/Promise/*: make all indentation consistent (depth & character) (#1433) 2018-02-15 15:11:21 -05:00
reject-via-abrupt-queue.js built-ins/Promise/*: make all indentation consistent (depth & character) (#1433) 2018-02-15 15:11:21 -05:00
reject-via-abrupt.js built-ins/Promise/*: make all indentation consistent (depth & character) (#1433) 2018-02-15 15:11:21 -05:00
reject-via-fn-deferred-queue.js built-ins/Promise/*: make all indentation consistent (depth & character) (#1433) 2018-02-15 15:11:21 -05:00
reject-via-fn-deferred.js built-ins/Promise/*: make all indentation consistent (depth & character) (#1433) 2018-02-15 15:11:21 -05:00
reject-via-fn-immed-queue.js built-ins/Promise/*: make all indentation consistent (depth & character) (#1433) 2018-02-15 15:11:21 -05:00
reject-via-fn-immed.js built-ins/Promise/*: make all indentation consistent (depth & character) (#1433) 2018-02-15 15:11:21 -05:00
resolve-function-extensible.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
resolve-function-length.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
resolve-function-name.js Assign "name" property to all anonymous functions (#2299) 2019-08-15 10:58:40 -04:00
resolve-function-nonconstructor.js built-ins/Promise/*: make all indentation consistent (depth & character) (#1433) 2018-02-15 15:11:21 -05:00
resolve-function-property-order.js Set function `length` and `name` in `CreateBuiltinFunction` 2021-01-29 09:45:20 -05:00
resolve-function-prototype.js Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
resolve-ignored-via-fn-deferred.js Remove duplicated es[56]id if esid is present 2019-08-05 10:54:37 -04:00
resolve-ignored-via-fn-immed.js Remove duplicated es[56]id if esid is present 2019-08-05 10:54:37 -04:00
resolve-non-obj-deferred.js built-ins/Promise/*: make all indentation consistent (depth & character) (#1433) 2018-02-15 15:11:21 -05:00
resolve-non-obj-immed.js built-ins/Promise/*: make all indentation consistent (depth & character) (#1433) 2018-02-15 15:11:21 -05:00
resolve-non-thenable-deferred.js built-ins/Promise/*: make all indentation consistent (depth & character) (#1433) 2018-02-15 15:11:21 -05:00
resolve-non-thenable-immed.js built-ins/Promise/*: make all indentation consistent (depth & character) (#1433) 2018-02-15 15:11:21 -05:00
resolve-poisoned-then-deferred.js built-ins/Promise/*: make all indentation consistent (depth & character) (#1433) 2018-02-15 15:11:21 -05:00
resolve-poisoned-then-immed.js built-ins/Promise/*: make all indentation consistent (depth & character) (#1433) 2018-02-15 15:11:21 -05:00
resolve-prms-cstm-then-deferred.js built-ins/Promise/*: make all indentation consistent (depth & character) (#1433) 2018-02-15 15:11:21 -05:00
resolve-prms-cstm-then-immed.js built-ins/Promise/*: make all indentation consistent (depth & character) (#1433) 2018-02-15 15:11:21 -05:00
resolve-self.js built-ins/Promise/*: make all indentation consistent (depth & character) (#1433) 2018-02-15 15:11:21 -05:00
resolve-thenable-deferred.js built-ins/Promise/*: make all indentation consistent (depth & character) (#1433) 2018-02-15 15:11:21 -05:00
resolve-thenable-immed.js built-ins/Promise/*: make all indentation consistent (depth & character) (#1433) 2018-02-15 15:11:21 -05:00
undefined-newtarget.js Improve Promise constructor coverage (#2158) 2019-05-22 17:33:09 -04:00