Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test gets skipped with pattern: verify
- Manifest: testing/mochitest/tests/browser/browser.toml
setExpectedFailuresForSelfTest(1);
// The test will fail because an expected uncaught rejection is actually caught.
const { PromiseTestUtils } = ChromeUtils.importESModule(
);
PromiseTestUtils.expectUncaughtRejection(/Promise rejection./);
function test() {
Promise.reject(new Error("Promise rejection.")).catch(() => {});
}