blob: 1bd9d90f8dd3a67e8a64c67e05e50a9af75eac76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
// 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(() => findMessage(hud, MSG, ".message.error"), "", 100);
ok(true, "MIME type error displayed");
});
|