blob: a091abdb63463736fb6e3f8ce0b88d9e0b2f5619 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
// 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);
});
|