Backed out changeset 86c98c4d36da (bug 846606)

This commit is contained in:
Ed Morley 2013-03-04 11:22:21 +00:00
parent 2d2e488aa7
commit 17db8af930

View File

@ -36,16 +36,16 @@ function test()
info("jsdebugger panel opened");
gPane = toolbox.getCurrentPanel();
gDebugger = gPane.panelWin;
gDebugger.addEventListener("Debugger:AfterSourcesAdded",
onAfterSourcesAdded);
gDebugger.addEventListener("Debugger:AfterScriptsAdded",
onAfterScriptsAdded);
});
});
function onAfterSourcesAdded()
function onAfterScriptsAdded()
{
info("scripts added");
gDebugger.removeEventListener("Debugger:AfterSourcesAdded",
onAfterSourcesAdded);
gDebugger.removeEventListener("Debugger:AfterScriptsAdded",
onAfterScriptsAdded, true);
gDebugger.addEventListener("Debugger:SourceShown", onSourceShown);
@ -271,11 +271,8 @@ function test()
gEditor.addEventListener(SourceEditor.EVENTS.BREAKPOINT_CHANGE,
onEditorBreakpointRemoveSecond);
let iframe = gEditor.editorElement;
let testWin = iframe.ownerDocument.defaultView;
// flush the layout for the iframe
info("rect " + iframe.contentDocument.documentElement.getBoundingClientRect());
EventUtils.synthesizeMouse(iframe, 10, 70, {}, testWin);
let testWin = gEditor.editorElement.ownerDocument.defaultView;
EventUtils.synthesizeMouse(gEditor.editorElement, 10, 70, {}, testWin);
});
}