Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
/* Any copyright is dedicated to the Public Domain.
// Test that user input is not cleared when 'devtools.webconsole.input.editor'
// is set to true.
"use strict";
const TEST_URI =
add_task(async function () {
await pushPref("devtools.webconsole.input.editor", true);
const hud = await openNewTabAndConsole(TEST_URI);
const expression = `x = 10`;
setInputValue(hud, expression);
await executeAndWaitForResultMessage(hud, undefined, "");
is(getInputValue(hud), expression, "input line is not cleared after submit");
});