Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

/* Any copyright is dedicated to the Public Domain.
// Tests that code completion works properly in chrome tabs, like about:config.
"use strict";
add_task(async function () {
const hud = await openNewTabAndConsole("about:config");
ok(hud, "we have a console");
ok(hud.iframeWindow, "we have the console UI window");
const { jsterm } = hud;
ok(jsterm, "we have a jsterm");
ok(hud.ui.outputNode, "we have an output node");
// Test typing 'docu'.
await setInputValueForAutocompletion(hud, "docu");
checkInputCompletionValue(hud, "ment", "'docu' completion");
info("Close autocomplete popup");
await closeAutocompletePopup(hud);
});