The script in this test is executed immediately while parsing is ongoing, and cleaning up after running script involves queueing a task on the DOM manipulation task source to fire the unhandledrejection event. Parsing then completes, immediately transitioning the document's readiness state to "interactive," and queuing another task on the DOM manipulation task source to transition the state to "complete."

Summary

Harness status: OK

Found 1 tests

Details

ResultTest NameMessage
FailPromise rejection during initial parsing of documentassert_array_equals: expected property 0 to be "readystatechange:interactive" but got "unhandledrejection" (expected array ["readystatechange:interactive", "unhandledrejection", "readystatechange:complete"] got ["unhandledrejection", "readystatechange:interactive", "readystatechange:complete"])
    at Test.<anonymous> (https://wpt.live/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-event-during-parse.html:33:5)
    at Test.step (https://wpt.live/resources/testharness.js:2642:25)
    at https://wpt.live/resources/testharness.js:2689:35
Asserts run
Fail
assert_array_equals(["unhandledrejection", "readystatechange:interactive", "readystatechange:complete"], ["readystatechange:interactive", "unhandledrejection", "readystatechange:complete"])
    at Test.<anonymous> ( /html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-event-during-parse.html:33:5)