This test demonstrates the use of promise_test. Assumes ECMAScript 6 Promise support. Some failures are expected.
Harness status: Error
Test named 'Test with failing cleanup that completes after DOMContentLoaded event' specified 1 'cleanup' function, and 1 failed.
Error: foo at https://wpt.live/resources/test/tests/functional/add_cleanup_async_rejection_after_load.html:16:27 at https://wpt.live/resources/testharness.js:3023:34 at forEach (https://wpt.live/resources/testharness.js:4659:26) at Test.cleanup (https://wpt.live/resources/testharness.js:3018:9) at Test.done (https://wpt.live/resources/testharness.js:2982:14) at https://wpt.live/resources/testharness.js:768:30
Found 2 tests
Result | Test Name | Message |
---|---|---|
Pass | Test with failing cleanup that completes after DOMContentLoaded event | Asserts runNo asserts ran |
Not Run | Test that should not be run due to invalid harness state ('NOT RUN') | Asserts runNo asserts ran |