mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 07:15:46 +00:00
Avoid an Xray error in browser_webconsole_closure_inspection.js (bug 985427). r=me
This commit is contained in:
parent
c4cffea63e
commit
75d3a5ce57
@ -37,7 +37,7 @@ function test()
|
||||
|
||||
let button = content.document.querySelector("button");
|
||||
ok(button, "button element found");
|
||||
button.click();
|
||||
EventUtils.synthesizeMouseAtCenter(button, {}, content);
|
||||
|
||||
return deferred.promise;
|
||||
});
|
||||
@ -67,7 +67,7 @@ function onExecuteGetName(aResults)
|
||||
ok(clickable, "clickable object found");
|
||||
|
||||
gJSTerm.once("variablesview-fetched", onGetNameFetch);
|
||||
EventUtils.synthesizeMouse(clickable, 2, 2, {}, gWebConsole.iframeWindow)
|
||||
EventUtils.synthesizeMouse(clickable, 2, 2, {}, gWebConsole.iframeWindow);
|
||||
}
|
||||
|
||||
function onGetNameFetch(aEvent, aVar)
|
||||
@ -87,5 +87,5 @@ function onExpandClosure(aResults)
|
||||
|
||||
gVariablesView.window.focus();
|
||||
gJSTerm.once("sidebar-closed", finishTest);
|
||||
EventUtils.synthesizeKey("VK_ESCAPE", {}, gVariablesView.window);
|
||||
EventUtils.synthesizeKey("VK_ESCAPE", {});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user