Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

  • This test gets skipped with pattern: os == 'win' && os_version == '11.26100' && arch == 'x86' && debug && verify-standalone OR os == 'win' && os_version == '11.26200' && arch == 'x86' && debug && verify-standalone OR os == 'win' && os_version == '11.26100' && arch == 'x86_64' && opt && verify-standalone OR os == 'win' && os_version == '11.26200' && arch == 'x86_64' && opt && verify-standalone
  • This test is know to fail with pattern: true
  • Manifest: testing/mochitest/tests/browser/browser.toml
/* Any copyright is dedicated to the Public Domain.
"use strict";
async function rejectOnNextTick(error) {
await Promise.resolve();
Promise.reject(error);
}
add_task(async function failWithoutError() {
await rejectOnNextTick(undefined);
});
add_task(async function failWithString() {
await rejectOnNextTick("This is a string");
});
add_task(async function failWithInt() {
await rejectOnNextTick(42);
});
// This one should display a stack trace
add_task(async function failWithError() {
await rejectOnNextTick(new Error("This is an error"));
});