Avoid an Xray error in browser_webconsole_closure_inspection.js (bug 985427). r=me

This commit is contained in:
Panos Astithas 2014-06-25 18:54:19 +03:00
parent c4cffea63e
commit 75d3a5ce57

View File

@ -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", {});
}