1 setExpectedFailuresForSelfTest(1);
3 // The test will fail because an expected uncaught rejection is actually caught.
4 const { PromiseTestUtils } = ChromeUtils.importESModule(
5 "resource://testing-common/PromiseTestUtils.sys.mjs"
7 PromiseTestUtils.expectUncaughtRejection(/Promise rejection./);
10 Promise.reject(new Error("Promise rejection.")).catch(() => {});