Bug 1668916 - [devtools] Workaround for eager evaluation bug in browser_jsterm_evaluation_context_selector_inspector.js r=nchevobbe

Differential Revision: https://phabricator.services.mozilla.com/D92305
This commit is contained in:
Julian Descottes 2020-10-05 08:13:46 +00:00
Родитель 1a949d67b0
Коммит 1a81aeca5e
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -150,6 +150,14 @@ async function testUseInConsole(
);
const container = inspector.markup.getContainer(nodeFront);
// Clear the input before clicking on "Use in Console" to workaround an bug
// with eager-evaluation, which will be skipped if the console input didn't
// change. See https://bugzilla.mozilla.org/show_bug.cgi?id=1668916#c1.
// TODO: Should be removed when Bug 1669151 is fixed.
setInputValue(hud, "");
// Also need to wait in order to avoid batching.
await wait(100);
const onConsoleReady = inspector.once("console-var-ready");
const menu = inspector.markup.contextMenu._openMenu({
target: container.tagLine,