1
0
Fork 0
firefox/devtools/client/webconsole/test/browser/browser_webconsole_websocket.js
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

24 lines
771 B
JavaScript

/* 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");
});