Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

/* Any copyright is dedicated to the Public Domain.
// Tests that an uncaught promise rejection inside a Worker or Worklet
// is reported to the tabs' webconsole.
"use strict";
const TEST_URI =
"test/browser/test-worker-promise-error.html";
add_task(async function () {
const hud = await openNewTabAndConsole(TEST_URI);
await waitFor(() =>
findErrorMessage(hud, "uncaught exception: worker-error")
);
await waitFor(() =>
findErrorMessage(hud, "uncaught exception: worklet-error")
);
ok(true, "received error messages");
});