Update test cases

This commit is contained in:
CYBAI 2018-06-11 00:18:31 +08:00
parent 42903412c7
commit 9039a5cc71
35 changed files with 71 additions and 186 deletions

View file

@ -1,6 +1,2 @@
[allow-crossorigin.html]
type: testharness
expected: TIMEOUT
[Promise rejection event should be received for the cross-origin CORS script]
expected: TIMEOUT

View file

@ -1,6 +1,2 @@
[promise-rejection-events-attached-in-event.html]
type: testharness
expected: TIMEOUT
[Attaching a handler in unhandledrejection should not trigger rejectionhandled.]
expected: TIMEOUT

View file

@ -1,39 +1,9 @@
[promise-rejection-events.dedicatedworker.html]
type: testharness
expected: TIMEOUT
[unhandledrejection: from Promise.reject]
expected: TIMEOUT
[unhandledrejection: from a synchronous rejection in new Promise]
expected: TIMEOUT
[unhandledrejection: from a task-delayed rejection]
expected: TIMEOUT
[unhandledrejection: from a setTimeout-delayed rejection]
expected: TIMEOUT
[unhandledrejection: from a throw in a rejection handler chained off of Promise.reject]
expected: TIMEOUT
[unhandledrejection: from a throw in a rejection handler chained off of a setTimeout-delayed rejection]
expected: TIMEOUT
[unhandledrejection: from a throw in a rejection handler attached one microtask after a setTimeout-delayed rejection]
expected: TIMEOUT
[unhandledrejection: from returning a Promise.reject-created rejection in a fulfillment handler]
expected: TIMEOUT
[unhandledrejection: from a throw in a fulfillment handler]
expected: TIMEOUT
[unhandledrejection: from returning a setTimeout-delayed rejection in a fulfillment handler]
expected: TIMEOUT
[unhandledrejection: from Promise.reject, indirected through Promise.all]
expected: TIMEOUT
[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]
expected: FAIL
@ -55,6 +25,3 @@
[delayed handling: a nested-postMessageTask after promise creation/rejection, plus many promise microtasks, is too late to attach a rejection handler]
expected: FAIL
[mutationObserverMicrotask vs. postMessageTask ordering is not disturbed inside unhandledrejection events]
expected: TIMEOUT

View file

@ -1,60 +1,6 @@
[promise-rejection-events.html]
type: testharness
expected: TIMEOUT
[unhandledrejection: from Promise.reject]
expected: TIMEOUT
[unhandledrejection: from a synchronous rejection in new Promise]
expected: TIMEOUT
[unhandledrejection: from a task-delayed rejection]
expected: TIMEOUT
[unhandledrejection: from a setTimeout-delayed rejection]
expected: TIMEOUT
[unhandledrejection: from a throw in a rejection handler chained off of Promise.reject]
expected: TIMEOUT
[unhandledrejection: from a throw in a rejection handler chained off of a setTimeout-delayed rejection]
expected: TIMEOUT
[unhandledrejection: from a throw in a rejection handler attached one microtask after a setTimeout-delayed rejection]
expected: TIMEOUT
[unhandledrejection: from returning a Promise.reject-created rejection in a fulfillment handler]
expected: TIMEOUT
[unhandledrejection: from a throw in a fulfillment handler]
expected: TIMEOUT
[unhandledrejection: from returning a setTimeout-delayed rejection in a fulfillment handler]
expected: TIMEOUT
[unhandledrejection: from Promise.reject, indirected through Promise.all]
expected: TIMEOUT
[delayed handling: a nested-task delay before attaching a handler causes unhandledrejection]
expected: TIMEOUT
[delayed handling: a nested-postMessageTask after promise creation/rejection, plus promise microtasks, is too late to attach a rejection handler]
expected: TIMEOUT
[delayed handling: a nested-postMessageTask before promise creation/rejection, plus many promise microtasks, is too late to attach a rejection handler]
expected: TIMEOUT
[delayed handling: a nested-postMessageTask after promise creation/rejection, plus many promise microtasks, is too late to attach a rejection handler]
expected: TIMEOUT
[mutationObserverMicrotask vs. postMessageTask ordering is not disturbed inside unhandledrejection events]
expected: TIMEOUT
[postMessageTask ordering vs. the task queued for unhandled rejection notification (1)]
expected: TIMEOUT
[postMessageTask ordering vs. the task queued for unhandled rejection notification (2)]
expected: TIMEOUT
[rejectionhandled is dispatched from a queued task, and not immediately]
expected: TIMEOUT