зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
1a949d67b0
Коммит
1a81aeca5e
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче