Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test gets skipped with pattern: http3
- Manifest: devtools/client/webconsole/test/browser/_webconsole.toml
/* Any copyright is dedicated to the Public Domain.
"use strict";
const { JSObjectsTestUtils, CONTEXTS } = ChromeUtils.importESModule(
);
JSObjectsTestUtils.init(this);
const EXPECTED_VALUES_FILE = "browser_webconsole_previewers.snapshot.mjs";
add_task(async function () {
// nsHttpServer does not support https
// eslint-disable-next-line @microsoft/sdl/no-insecure-url
await JSObjectsTestUtils.runTest(
EXPECTED_VALUES_FILE,
async function ({ context, expression }) {
if (context == CONTEXTS.CHROME) {
return undefined;
}
const message = await executeAndWaitForResultMessage(hud, expression, "");
return message.node.innerText.trim();
}
);
});