mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
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:
parent
60783c1094
commit
1f3eb68c05
@ -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);
|
||||
});
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user