Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test gets skipped with pattern: asan
- Manifest: devtools/client/webconsole/test/browser/_webconsole.toml
/* Any copyright is dedicated to the Public Domain.
"use strict";
// Test that a missing source map is reported.
const BASE =
add_task(async function () {
for (const test of [
"test-sourcemap-error-01.html",
"test-sourcemap-error-02.html",
]) {
const hud = await openNewTabAndConsole(BASE + test);
const node = await waitFor(() => findConsoleAPIMessage(hud, "here"));
ok(node, "logged text is displayed in web console");
const node2 = await waitFor(() =>
findWarningMessage(hud, "Source map error")
);
ok(node2, "source map error is displayed in web console");
}
});