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.
// Tests that non-CSS parser errors get displayed by default.
"use strict";
const CSS_URI = "data:text/bogus,foo";
const TEST_URI = `data:text/html,<!DOCTYPE html><link rel="stylesheet" href="${CSS_URI}">`;
add_task(async function () {
const hud = await openNewTabAndConsole(TEST_URI);
const MSG = `The stylesheet ${CSS_URI} was not loaded because its MIME type, “text/bogus”, is not “text/css”`;
await waitFor(() => findErrorMessage(hud, MSG), "", 100);
ok(true, "MIME type error displayed");
});