mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 991075 - Fix unhandled promise errors. r=jryans
This commit is contained in:
parent
ebbeebd17b
commit
8126c1bb88
@ -501,12 +501,14 @@ let gDevToolsBrowser = {
|
||||
} else {
|
||||
toolbox.destroy();
|
||||
}
|
||||
gDevTools.emit("select-tool-command", toolId);
|
||||
} else {
|
||||
gDevTools.showToolbox(target, toolId).then(() => {
|
||||
let target = devtools.TargetFactory.forTab(gBrowser.selectedTab);
|
||||
let toolbox = gDevTools.getToolbox(target);
|
||||
|
||||
toolbox.fireCustomKey(toolId);
|
||||
gDevTools.emit("select-tool-command", toolId);
|
||||
});
|
||||
}
|
||||
},
|
||||
|
@ -58,7 +58,7 @@ function test()
|
||||
}
|
||||
|
||||
gDevTools.once("toolbox-ready", (e, toolbox) => {
|
||||
inspectorShouldBeOpenAndHighlighting(toolbox.getCurrentPanel(), toolbox)
|
||||
inspectorShouldBeOpenAndHighlighting(toolbox.getCurrentPanel(), toolbox);
|
||||
});
|
||||
|
||||
keysetMap.inspector.synthesizeKey();
|
||||
@ -74,30 +74,30 @@ function test()
|
||||
|
||||
aToolbox.once("picker-stopped", () => {
|
||||
ok(true, "picker-stopped event received, highlighter stopped");
|
||||
aToolbox.once("webconsole-ready", (e, panel) => {
|
||||
webconsoleShouldBeSelected(aToolbox, panel);
|
||||
gDevTools.once("select-tool-command", () => {
|
||||
webconsoleShouldBeSelected(aToolbox);
|
||||
});
|
||||
keysetMap.webconsole.synthesizeKey();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function webconsoleShouldBeSelected(aToolbox, panel)
|
||||
function webconsoleShouldBeSelected(aToolbox)
|
||||
{
|
||||
is (aToolbox.currentToolId, "webconsole");
|
||||
is (aToolbox.currentToolId, "webconsole", "webconsole should be selected.");
|
||||
|
||||
aToolbox.once("jsdebugger-ready", (e, panel) => {
|
||||
jsdebuggerShouldBeSelected(aToolbox, panel);
|
||||
gDevTools.once("select-tool-command", () => {
|
||||
jsdebuggerShouldBeSelected(aToolbox);
|
||||
});
|
||||
keysetMap.jsdebugger.synthesizeKey();
|
||||
}
|
||||
|
||||
function jsdebuggerShouldBeSelected(aToolbox, panel)
|
||||
function jsdebuggerShouldBeSelected(aToolbox)
|
||||
{
|
||||
is (aToolbox.currentToolId, "jsdebugger");
|
||||
is (aToolbox.currentToolId, "jsdebugger", "jsdebugger should be selected.");
|
||||
|
||||
aToolbox.once("netmonitor-ready", (e, panel) => {
|
||||
netmonitorShouldBeSelected(aToolbox, panel);
|
||||
gDevTools.once("select-tool-command", () => {
|
||||
netmonitorShouldBeSelected(aToolbox);
|
||||
});
|
||||
|
||||
keysetMap.netmonitor.synthesizeKey();
|
||||
@ -105,7 +105,7 @@ function test()
|
||||
|
||||
function netmonitorShouldBeSelected(aToolbox, panel)
|
||||
{
|
||||
is (aToolbox.currentToolId, "netmonitor");
|
||||
is (aToolbox.currentToolId, "netmonitor", "netmonitor should be selected.");
|
||||
finishUp();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user