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

# Chrome #
Testing revision 143097010f4487b3a001c9d7f30b0018b19b55c1
Starting 10 test iterations
## Unstable results ##

|                                                   Test                                                   |                                                                                                  Subtest                                                                                                   |     Results     |
|----------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------|
| /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html | unhandledrejection: from a throw in a rejection handler chained off of a setTimeout-delayed rejection                                                                                                      | **PASS: 30/10** |
| /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html | delayed handling: a nested-postMessageTask after promise creation/rejection, plus many promise microtasks, is too late to attach a rejection handler                                                       | **PASS: 30/10** |
| /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html | unhandledrejection: from a throw in a rejection handler attached one microtask after a setTimeout-delayed rejection                                                                                        | **PASS: 30/10** |
| /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html | unhandledrejection: from Promise.reject                                                                                                                                                                    | **PASS: 30/10** |
| /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html | mutationObserverMicrotask vs. postMessageTask ordering is not disturbed inside unhandledrejection events                                                                                                   | **PASS: 30/10** |
| /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html | unhandledrejection: from a setTimeout-delayed rejection                                                                                                                                                    | **PASS: 30/10** |
| /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html | microtask nesting: attaching a handler inside a combination of mutationObserverMicrotask + promise microtasks, all inside a setTimeout                                                                     | **PASS: 30/10** |
| /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html | delayed handling: a microtask delay before attaching a handler prevents both events (immediately-rejected new Promise-created promise)                                                                     | **PASS: 30/10** |
| /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html | no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise created from returning a Promise.reject-created promise in a fulfillment handler                             | **PASS: 30/10** |
| /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html | delayed handling: a nested-task delay before attaching a handler causes unhandledrejection                                                                                                                 | **PASS: 30/10** |
| /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html | 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: 30/10** |
| /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html | delayed handling: a nested-postMessageTask after promise creation/rejection, plus promise microtasks, is too late to attach a rejection handler                                                            | **PASS: 30/10** |
| /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html | delayed handling: a microtask delay before attaching a handler prevents both events (Promise.reject-created promise)                                                                                       | **PASS: 30/10** |
| /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html | unhandledrejection: from a throw in a fulfillment handler                                                                                                                                                  | **PASS: 30/10** |
| /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html | microtask nesting: attaching a handler inside a combination of promise microtasks + mutationObserverMicrotask, all inside a postMessageTask                                                                | **PASS: 30/10** |
| /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html | delayed handling: a microtask delay before attaching the handler, and before rejecting the promise, indirected through Promise.all                                                                         | **PASS: 30/10** |
| /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html | microtask nesting: attaching a handler inside a combination of mutationObserverMicrotask + promise microtasks                                                                                              | **PASS: 30/10** |
| /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html | microtask nesting: attaching a handler inside a combination of promise microtasks + mutationObserverMicrotask                                                                                              | **PASS: 30/10** |
| /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html | unhandledrejection: from a throw in a rejection handler chained off of Promise.reject                                                                                                                      | **PASS: 30/10** |
| /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html | no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise from Promise.reject                                                                                          | **PASS: 30/10** |
| /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html | delayed handling: delaying handling by setTimeout(,10) will cause both events to fire                                                                                                                      | **PASS: 30/10** |
| /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html | microtask nesting: attaching a handler inside a combination of mutationObserverMicrotask + promise microtasks, all inside a postMessageTask                                                                | **PASS: 30/10** |
| /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html | delayed handling: a nested-postMessageTask before promise creation/rejection, plus many promise microtasks, is too late to attach a rejection handler                                                      | **PASS: 30/10** |
| /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html | unhandledrejection: from returning a Promise.reject-created rejection in a fulfillment handler                                                                                                             | **PASS: 30/10** |
| /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html | unhandledrejection: from a synchronous rejection in new Promise                                                                                                                                            | **PASS: 30/10** |
| /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html | unhandledrejection: from a task-delayed rejection                                                                                                                                                          | **PASS: 30/10** |
| /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html | no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a synchronously-rejected promise created with new Promise                                                              | **PASS: 30/10** |
| /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html | no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise from Promise.reject, indirecting through Promise.all                                                         | **PASS: 30/10** |
| /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html | microtask nesting: attaching a handler inside a combination of promise microtasks + mutationObserverMicrotask, all inside a setTimeout                                                                     | **PASS: 30/10** |
| /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html | unhandledrejection: from Promise.reject, indirected through Promise.all                                                                                                                                    | **PASS: 30/10** |
| /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html | no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise created from throwing in a fulfillment handler                                                               | **PASS: 30/10** |
| /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html | no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise created from returning a setTimeout-delayed rejection in a fulfillment handler                               | **PASS: 30/10** |
| /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html | unhandledrejection: from returning a setTimeout-delayed rejection in a fulfillment handler                                                                                                                 | **PASS: 30/10** |
## All results ##

### /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/allow-crossorigin.html ###
|                                   Subtest                                   | Results |
|-----------------------------------------------------------------------------|---------|
|                                                                             | TIMEOUT |
| Promise rejection event should be received for the cross-origin CORS script | TIMEOUT |
### /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/disallow-crossorigin.html ###
|                                 Subtest                                  | Results |
|--------------------------------------------------------------------------|---------|
|                                                                          | OK      |
| Promise rejection event should be muted for cross-origin non-CORS script | PASS    |
### /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events-onerror.html ###
|                                 Subtest                                  | Results |
|--------------------------------------------------------------------------|---------|
|                                                                          | OK      |
| Throwing inside an unhandledrejection handler invokes the error handler. | PASS    |
### /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-event-constructor.html ###
|                               Subtest                               | Results |
|---------------------------------------------------------------------|---------|
|                                                                     | OK      |
| This tests the constructor for the PromiseRejectionEvent DOM class. | PASS    |
### /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html ###
|                                                                                                  Subtest                                                                                                   |     Results     |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------|
|                                                                                                                                                                                                            | ERROR           |
| 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: 30/10** |
| delayed handling: a nested-postMessageTask after promise creation/rejection, plus many promise microtasks, is too late to attach a rejection handler                                                       | **PASS: 30/10** |
| 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: 30/10** |
| unhandledrejection: from Promise.reject                                                                                                                                                                    | **PASS: 30/10** |
| mutationObserverMicrotask vs. postMessageTask ordering is not disturbed inside unhandledrejection events                                                                                                   | **PASS: 30/10** |
| unhandledrejection: from a setTimeout-delayed rejection                                                                                                                                                    | **PASS: 30/10** |
| microtask nesting: attaching a handler inside a combination of mutationObserverMicrotask + promise microtasks, all inside a setTimeout                                                                     | **PASS: 30/10** |
| delayed handling: a microtask delay before attaching a handler prevents both events (immediately-rejected new Promise-created promise)                                                                     | **PASS: 30/10** |
| no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise created from returning a Promise.reject-created promise in a fulfillment handler                             | **PASS: 30/10** |
| delayed handling: a nested-task delay before attaching a handler causes unhandledrejection                                                                                                                 | **PASS: 30/10** |
| 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: 30/10** |
| delayed handling: a nested-postMessageTask after promise creation/rejection, plus promise microtasks, is too late to attach a rejection handler                                                            | **PASS: 30/10** |
| delayed handling: a microtask delay before attaching a handler prevents both events (Promise.reject-created promise)                                                                                       | **PASS: 30/10** |
| unhandledrejection: from a throw in a fulfillment handler                                                                                                                                                  | **PASS: 30/10** |
| 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: 30/10** |
| delayed handling: a microtask delay before attaching the handler, and before rejecting the promise, indirected through Promise.all                                                                         | **PASS: 30/10** |
| microtask nesting: attaching a handler inside a combination of mutationObserverMicrotask + promise microtasks                                                                                              | **PASS: 30/10** |
| microtask nesting: attaching a handler inside a combination of promise microtasks + mutationObserverMicrotask                                                                                              | **PASS: 30/10** |
| unhandledrejection: from a throw in a rejection handler chained off of Promise.reject                                                                                                                      | **PASS: 30/10** |
| no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise from Promise.reject                                                                                          | **PASS: 30/10** |
| delayed handling: delaying handling by setTimeout(,10) will cause both events to fire                                                                                                                      | **PASS: 30/10** |
| microtask nesting: attaching a handler inside a combination of mutationObserverMicrotask + promise microtasks, all inside a postMessageTask                                                                | **PASS: 30/10** |
| delayed handling: a nested-postMessageTask before promise creation/rejection, plus many promise microtasks, is too late to attach a rejection handler                                                      | **PASS: 30/10** |
| 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: 30/10** |
| unhandledrejection: from a synchronous rejection in new Promise                                                                                                                                            | **PASS: 30/10** |
| unhandledrejection: from a task-delayed rejection                                                                                                                                                          | **PASS: 30/10** |
| no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a synchronously-rejected promise created with new Promise                                                              | **PASS: 30/10** |
| 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: 30/10** |
| microtask nesting: attaching a handler inside a combination of promise microtasks + mutationObserverMicrotask, all inside a setTimeout                                                                     | **PASS: 30/10** |
| unhandledrejection: from Promise.reject, indirected through Promise.all                                                                                                                                    | **PASS: 30/10** |
| no unhandledrejection/rejectionhandled: rejection handler attached synchronously to a promise created from throwing in a fulfillment handler                                                               | **PASS: 30/10** |
| 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: 30/10** |
| unhandledrejection: from returning a setTimeout-delayed rejection in a fulfillment handler                                                                                                                 | **PASS: 30/10** |
### /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events-attached-in-event.html ###
|                                    Subtest                                     | Results |
|--------------------------------------------------------------------------------|---------|
|                                                                                | OK      |
| Attaching a handler in unhandledrejection should not trigger rejectionhandled. | PASS    |

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

Received on Wednesday, 26 October 2016 20:00:10 UTC