2021-02-12 01:02:15 +03:00
|
|
|
const { PromiseTestUtils } = ChromeUtils.import(
|
|
|
|
"resource://testing-common/PromiseTestUtils.jsm"
|
|
|
|
);
|
2020-07-03 21:03:27 +03:00
|
|
|
PromiseTestUtils.allowMatchingRejectionsGlobally(/Allowed rejection./);
|
2017-06-29 02:12:58 +03:00
|
|
|
PromiseTestUtils.expectUncaughtRejection(/Promise rejection./);
|
|
|
|
PromiseTestUtils.expectUncaughtRejection(/Promise rejection./);
|
|
|
|
|
|
|
|
function test() {
|
|
|
|
Promise.reject(new Error("Promise rejection."));
|
|
|
|
Promise.reject(new Error("Promise rejection."));
|
2020-07-03 19:57:25 +03:00
|
|
|
Promise.reject(new Error("Allowed rejection."));
|
2017-06-29 02:12:58 +03:00
|
|
|
}
|