Re: [html-tests] Add promise rejection tracking tests (#2388)

# Chrome (unstable channel) #
Testing web-platform-tests at revision 2d5a139f5a1eae176ee82edceb9ddac577e8246d
Using browser at version 58.0.3004.3 dev
Starting 10 test iterations
All results were stable
## All results ##
<details>
<summary><a href="http://w3c-test.org/submissions/2388/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/allow-crossorigin.html">/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/allow-crossorigin.html</a></summary>


|                                    Subtest                                    | Results |
|-------------------------------------------------------------------------------|---------|
|                                                                               | TIMEOUT |
| `Promise rejection event should be received for the cross-origin CORS script` | TIMEOUT |

</details>
<details>
<summary><a href="http://w3c-test.org/submissions/2388/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/disallow-crossorigin.html">/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/disallow-crossorigin.html</a></summary>


|                                  Subtest                                   | Results |
|----------------------------------------------------------------------------|---------|
|                                                                            | OK      |
| `Promise rejection event should be muted for cross-origin non-CORS script` | PASS    |

</details>
<details>
<summary><a href="http://w3c-test.org/submissions/2388/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events-onerror.html">/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events-onerror.html</a></summary>


|                                  Subtest                                   | Results |
|----------------------------------------------------------------------------|---------|
|                                                                            | OK      |
| `Throwing inside an unhandledrejection handler invokes the error handler.` | PASS    |

</details>
<details>
<summary><a href="https://w3c-test.org/submissions/2388/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.serviceworker.https.html">/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.serviceworker.https.html</a></summary>


|                                                                                                   Subtest                                                                                                    | Results |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|
|                                                                                                                                                                                                              | ERROR   |
| `unhandledrejection: from a throw in a rejection handler chained off of a setTimeout-delayed rejection`                                                                                                      | PASS    |
| `delayed handling: a nested-postMessageTask after promise creation/rejection, plus many promise microtasks, is too late to attach a rejection handler`                                                       | PASS    |
| `unhandledrejection: from a throw in a rejection handler attached one microtask after a setTimeout-delayed rejection`                                                                                        | PASS    |
| `unhandledrejection: from Promise.reject`                                                                                                                                                                    | PASS    |
| `mutationObserverMicrotask vs. postMessageTask ordering is not disturbed inside unhandledrejection events`                                                                                                   | PASS    |
| `unhandledrejection: from a setTimeout-delayed rejection`                                                                                                                                                    | PASS    |
| `microtask nesting: attaching a handler inside a combination of mutationObserverMicrotask + promise microtasks, all inside a setTimeout`                                                                     | PASS    |
| `delayed handling: delaying handling by setTimeout(,10) will cause both events to fire`                                                                                                                      | PASS    |
| `delayed handling: a microtask delay before attaching a handler prevents both events (immediately-rejected new Promise-created promise)`                                                                     | PASS    |
| `no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise created from returning a Promise.reject-created promise in a fulfillment handler`                             | PASS    |
| `delayed handling: a nested-task delay before attaching a handler causes unhandledrejection`                                                                                                                 | PASS    |
| `no unhandledrejection/rejectionhandled: all inside a queued task, a rejection handler attached synchronously to a promise created from returning a Promise.reject-created promise in a fulfillment handler` | PASS    |
| `delayed handling: a nested-postMessageTask after promise creation/rejection, plus promise microtasks, is too late to attach a rejection handler`                                                            | PASS    |
| `delayed handling: a microtask delay before attaching a handler prevents both events (Promise.reject-created promise)`                                                                                       | PASS    |
| `unhandledrejection: from a throw in a fulfillment handler`                                                                                                                                                  | PASS    |
| `microtask nesting: attaching a handler inside a combination of promise microtasks + mutationObserverMicrotask, all inside a postMessageTask`                                                                | PASS    |
| `delayed handling: a microtask delay before attaching the handler, and before rejecting the promise, indirected through Promise.all`                                                                         | PASS    |
| `microtask nesting: attaching a handler inside a combination of mutationObserverMicrotask + promise microtasks`                                                                                              | PASS    |
| `microtask nesting: attaching a handler inside a combination of promise microtasks + mutationObserverMicrotask`                                                                                              | PASS    |
| `unhandledrejection: from a throw in a rejection handler chained off of Promise.reject`                                                                                                                      | PASS    |
| `no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise from Promise.reject`                                                                                          | PASS    |
| `Service worker setup`                                                                                                                                                                                       | PASS    |
| `microtask nesting: attaching a handler inside a combination of mutationObserverMicrotask + promise microtasks, all inside a postMessageTask`                                                                | PASS    |
| `delayed handling: a nested-postMessageTask before promise creation/rejection, plus many promise microtasks, is too late to attach a rejection handler`                                                      | PASS    |
| `unhandledrejection: from returning a Promise.reject-created rejection in a fulfillment handler`                                                                                                             | PASS    |
| `unhandledrejection: from a synchronous rejection in new Promise`                                                                                                                                            | PASS    |
| `unhandledrejection: from a task-delayed rejection`                                                                                                                                                          | PASS    |
| `no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a synchronously-rejected promise created with new Promise`                                                              | PASS    |
| `no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise from Promise.reject, indirecting through Promise.all`                                                         | PASS    |
| `microtask nesting: attaching a handler inside a combination of promise microtasks + mutationObserverMicrotask, all inside a setTimeout`                                                                     | PASS    |
| `unhandledrejection: from Promise.reject, indirected through Promise.all`                                                                                                                                    | PASS    |
| `no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise created from throwing in a fulfillment handler`                                                               | PASS    |
| `no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise created from returning a setTimeout-delayed rejection in a fulfillment handler`                               | PASS    |
| `unhandledrejection: from returning a setTimeout-delayed rejection in a fulfillment handler`                                                                                                                 | PASS    |

</details>
<details>
<summary><a href="http://w3c-test.org/submissions/2388/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-event-constructor.html">/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-event-constructor.html</a></summary>


|                                Subtest                                | Results |
|-----------------------------------------------------------------------|---------|
|                                                                       | OK      |
| `This tests the constructor for the PromiseRejectionEvent DOM class.` | PASS    |

</details>
<details>
<summary><a href="http://w3c-test.org/submissions/2388/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.worker.html">/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.worker.html</a></summary>


| Subtest | Results |
|---------|---------|
|         | TIMEOUT |

</details>
<details>
<summary><a href="http://w3c-test.org/submissions/2388/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html">/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html</a></summary>


|                                                                                                   Subtest                                                                                                    | Results |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|
|                                                                                                                                                                                                              | OK      |
| `delayed handling: a task delay before attaching a handler prevents unhandledrejection`                                                                                                                      | PASS    |
| `unhandledrejection: from a throw in a rejection handler chained off of a setTimeout-delayed rejection`                                                                                                      | PASS    |
| `delayed handling: a nested-postMessageTask after promise creation/rejection, plus many promise microtasks, is too late to attach a rejection handler`                                                       | PASS    |
| `delayed handling: postMessageTask after promise creation/rejection, plus promise microtasks, is not too late to attach a rejection handler`                                                                 | PASS    |
| `postMessageTask ordering vs. the task queued for unhandled rejection notification (2)`                                                                                                                      | PASS    |
| `unhandledrejection: from a throw in a rejection handler attached one microtask after a setTimeout-delayed rejection`                                                                                        | PASS    |
| `unhandledrejection: from Promise.reject`                                                                                                                                                                    | PASS    |
| `mutationObserverMicrotask vs. postMessageTask ordering is not disturbed inside unhandledrejection events`                                                                                                   | PASS    |
| `unhandledrejection: from a setTimeout-delayed rejection`                                                                                                                                                    | PASS    |
| `microtask nesting: attaching a handler inside a combination of mutationObserverMicrotask + promise microtasks, all inside a setTimeout`                                                                     | PASS    |
| `delayed handling: a microtask delay before attaching a handler prevents both events (immediately-rejected new Promise-created promise)`                                                                     | PASS    |
| `no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise created from returning a Promise.reject-created promise in a fulfillment handler`                             | PASS    |
| `delayed handling: a nested-task delay before attaching a handler causes unhandledrejection`                                                                                                                 | PASS    |
| `no unhandledrejection/rejectionhandled: all inside a queued task, a rejection handler attached synchronously to a promise created from returning a Promise.reject-created promise in a fulfillment handler` | PASS    |
| `delayed handling: a nested-postMessageTask after promise creation/rejection, plus promise microtasks, is too late to attach a rejection handler`                                                            | PASS    |
| `delayed handling: a microtask delay before attaching a handler prevents both events (Promise.reject-created promise)`                                                                                       | PASS    |
| `unhandledrejection: from a throw in a fulfillment handler`                                                                                                                                                  | PASS    |
| `delayed handling: postMessageTask before promise creation/rejection, plus many promise microtasks, is not too late to attach a rejection handler`                                                           | PASS    |
| `microtask nesting: attaching a handler inside a combination of promise microtasks + mutationObserverMicrotask, all inside a postMessageTask`                                                                | PASS    |
| `delayed handling: a microtask delay before attaching the handler, and before rejecting the promise, indirected through Promise.all`                                                                         | PASS    |
| `microtask nesting: attaching a handler inside a combination of mutationObserverMicrotask + promise microtasks`                                                                                              | PASS    |
| `microtask nesting: attaching a handler inside a combination of promise microtasks + mutationObserverMicrotask`                                                                                              | PASS    |
| `unhandledrejection: from a throw in a rejection handler chained off of Promise.reject`                                                                                                                      | PASS    |
| `no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise from Promise.reject`                                                                                          | PASS    |
| `delayed handling: delaying handling by setTimeout(,10) will cause both events to fire`                                                                                                                      | PASS    |
| `microtask nesting: attaching a handler inside a combination of mutationObserverMicrotask + promise microtasks, all inside a postMessageTask`                                                                | PASS    |
| `delayed handling: a nested-postMessageTask before promise creation/rejection, plus many promise microtasks, is too late to attach a rejection handler`                                                      | PASS    |
| `delayed handling: postMessageTask after promise creation/rejection, plus many promise microtasks, is not too late to attach a rejection handler`                                                            | PASS    |
| `unhandledrejection: from returning a Promise.reject-created rejection in a fulfillment handler`                                                                                                             | PASS    |
| `unhandledrejection: from a synchronous rejection in new Promise`                                                                                                                                            | PASS    |
| `unhandledrejection: from a task-delayed rejection`                                                                                                                                                          | PASS    |
| `no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a synchronously-rejected promise created with new Promise`                                                              | PASS    |
| `rejectionhandled is dispatched from a queued task, and not immediately`                                                                                                                                     | PASS    |
| `no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise from Promise.reject, indirecting through Promise.all`                                                         | PASS    |
| `microtask nesting: attaching a handler inside a combination of promise microtasks + mutationObserverMicrotask, all inside a setTimeout`                                                                     | PASS    |
| `unhandledrejection: from Promise.reject, indirected through Promise.all`                                                                                                                                    | PASS    |
| `no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise created from throwing in a fulfillment handler`                                                               | PASS    |
| `postMessageTask ordering vs. the task queued for unhandled rejection notification (1)`                                                                                                                      | PASS    |
| `no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise created from returning a setTimeout-delayed rejection in a fulfillment handler`                               | PASS    |
| `unhandledrejection: from returning a setTimeout-delayed rejection in a fulfillment handler`                                                                                                                 | PASS    |

</details>
<details>
<summary><a href="http://w3c-test.org/submissions/2388/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.sharedworker.html">/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.sharedworker.html</a></summary>


|                                                                                                   Subtest                                                                                                    | Results |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|
|                                                                                                                                                                                                              | OK      |
| `unhandledrejection: from a throw in a rejection handler chained off of a setTimeout-delayed rejection`                                                                                                      | PASS    |
| `delayed handling: a nested-postMessageTask after promise creation/rejection, plus many promise microtasks, is too late to attach a rejection handler`                                                       | PASS    |
| `unhandledrejection: from a throw in a rejection handler attached one microtask after a setTimeout-delayed rejection`                                                                                        | PASS    |
| `unhandledrejection: from Promise.reject`                                                                                                                                                                    | PASS    |
| `mutationObserverMicrotask vs. postMessageTask ordering is not disturbed inside unhandledrejection events`                                                                                                   | PASS    |
| `unhandledrejection: from a setTimeout-delayed rejection`                                                                                                                                                    | PASS    |
| `microtask nesting: attaching a handler inside a combination of mutationObserverMicrotask + promise microtasks, all inside a setTimeout`                                                                     | PASS    |
| `delayed handling: a microtask delay before attaching a handler prevents both events (immediately-rejected new Promise-created promise)`                                                                     | PASS    |
| `no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise created from returning a Promise.reject-created promise in a fulfillment handler`                             | PASS    |
| `delayed handling: a nested-task delay before attaching a handler causes unhandledrejection`                                                                                                                 | PASS    |
| `no unhandledrejection/rejectionhandled: all inside a queued task, a rejection handler attached synchronously to a promise created from returning a Promise.reject-created promise in a fulfillment handler` | PASS    |
| `delayed handling: a nested-postMessageTask after promise creation/rejection, plus promise microtasks, is too late to attach a rejection handler`                                                            | PASS    |
| `delayed handling: a microtask delay before attaching a handler prevents both events (Promise.reject-created promise)`                                                                                       | PASS    |
| `unhandledrejection: from a throw in a fulfillment handler`                                                                                                                                                  | PASS    |
| `microtask nesting: attaching a handler inside a combination of promise microtasks + mutationObserverMicrotask, all inside a postMessageTask`                                                                | PASS    |
| `delayed handling: a microtask delay before attaching the handler, and before rejecting the promise, indirected through Promise.all`                                                                         | PASS    |
| `microtask nesting: attaching a handler inside a combination of mutationObserverMicrotask + promise microtasks`                                                                                              | PASS    |
| `microtask nesting: attaching a handler inside a combination of promise microtasks + mutationObserverMicrotask`                                                                                              | PASS    |
| `unhandledrejection: from a throw in a rejection handler chained off of Promise.reject`                                                                                                                      | PASS    |
| `no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise from Promise.reject`                                                                                          | PASS    |
| `delayed handling: delaying handling by setTimeout(,10) will cause both events to fire`                                                                                                                      | PASS    |
| `microtask nesting: attaching a handler inside a combination of mutationObserverMicrotask + promise microtasks, all inside a postMessageTask`                                                                | PASS    |
| `delayed handling: a nested-postMessageTask before promise creation/rejection, plus many promise microtasks, is too late to attach a rejection handler`                                                      | PASS    |
| `unhandledrejection: from returning a Promise.reject-created rejection in a fulfillment handler`                                                                                                             | PASS    |
| `unhandledrejection: from a synchronous rejection in new Promise`                                                                                                                                            | PASS    |
| `unhandledrejection: from a task-delayed rejection`                                                                                                                                                          | PASS    |
| `no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a synchronously-rejected promise created with new Promise`                                                              | PASS    |
| `no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise from Promise.reject, indirecting through Promise.all`                                                         | PASS    |
| `microtask nesting: attaching a handler inside a combination of promise microtasks + mutationObserverMicrotask, all inside a setTimeout`                                                                     | PASS    |
| `unhandledrejection: from Promise.reject, indirected through Promise.all`                                                                                                                                    | PASS    |
| `no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise created from throwing in a fulfillment handler`                                                               | PASS    |
| `no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise created from returning a setTimeout-delayed rejection in a fulfillment handler`                               | PASS    |
| `unhandledrejection: from returning a setTimeout-delayed rejection in a fulfillment handler`                                                                                                                 | PASS    |

</details>
<details>
<summary><a href="http://w3c-test.org/submissions/2388/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events-attached-in-event.html">/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events-attached-in-event.html</a></summary>


|                                     Subtest                                      | Results |
|----------------------------------------------------------------------------------|---------|
|                                                                                  | OK      |
| `Attaching a handler in unhandledrejection should not trigger rejectionhandled.` | PASS    |

</details>

View on GitHub: https://github.com/w3c/web-platform-tests/pull/2388#issuecomment-278465903

Received on Wednesday, 8 February 2017 21:23:50 UTC