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.
"use strict";
const TEST_URI =
"test/browser/test-console-api-iframe.html";
add_task(async function () {
const hud = await openNewTabAndConsole(TEST_URI);
const loggedString = "iframe added";
// Wait for the initial message to be displayed.
await waitFor(() => findConsoleAPIMessage(hud, loggedString));
ok(true, "The initial message is displayed in the console");
// Create a promise for the message logged after the reload.
const onMessage = waitForMessageByType(hud, loggedString, ".console-api");
BrowserCommands.reload();
await onMessage;
ok(true, "The message is also displayed after a page reload");
});