blob: dfa15c7c1c4512bd57a3c9f8aba060a80e7b6ac7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
// Check that WebSocket connection failure messages are displayed. See Bug 603750.
const TEST_URI =
"https://example.com/browser/devtools/client/webconsole/test/browser/test-websocket.html";
add_task(async function () {
const hud = await openNewTabAndConsole(TEST_URI);
await waitFor(
() => findErrorMessage(hud, "wss://0.0.0.0:81"),
"Did not find error message for wss://0.0.0.0:81 connection",
500
);
await waitFor(
() => findErrorMessage(hud, "wss://0.0.0.0:82"),
"Did not find error message for wss://0.0.0.0:82 connection",
500
);
ok(true, "WebSocket error messages are displayed in the console");
});
|