Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test gets skipped with pattern: os == 'linux' && os_version == '24.04' && arch == 'x86_64' && debug && swgl && verify-standalone OR os == 'linux' && os_version == '24.04' && arch == 'x86_64' && display == 'x11' && opt OR os == 'win' && os_version == '11.26100' && arch == 'x86_64' && debug && socketprocess_networking && verify-standalone OR os == 'win' && os_version == '11.26200' && arch == 'x86_64' && debug && socketprocess_networking && verify-standalone
- This test is know to fail with pattern: true
- Manifest: testing/mochitest/tests/browser/browser.toml
// The test will fail because there is only one of two expected rejections.
const { PromiseTestUtils } = ChromeUtils.importESModule(
);
PromiseTestUtils.expectUncaughtRejection(/Promise rejection./);
PromiseTestUtils.expectUncaughtRejection(/Promise rejection./);
function test() {
Promise.reject(new Error("Promise rejection."));
}