Bug 846606 - Intermittent browser_dbg_bug723069_editor-breakpoints.js | Test timed out | correct number of editor breakpoint changes - Got 3, expected 4; r=vporof

This commit is contained in:
Mihai Sucan 2013-03-06 22:56:42 +02:00
parent 60783c1094
commit 1f3eb68c05

View File

@ -273,9 +273,18 @@ function test()
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 utils = testWin.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIDOMWindowUtils);
let rect = iframe.getBoundingClientRect();
let left = rect.left + 10;
let top = rect.top + 70;
utils.sendMouseEventToWindow("mousedown", left, top, 0, 1, 0, false, 0, 0);
utils.sendMouseEventToWindow("mouseup", left, top, 0, 1, 0, false, 0, 0);
});
}