Bug 846606 - Intermittent browser_dbg_bug723069_editor-breakpoints.js | Test timed out | correct number of editor breakpoint changes - Got 3, expected 4; r=vporof
authorMihai Sucan <mihai.sucan@gmail.com>
Wed, 06 Mar 2013 22:56:42 +0200
changeset 124104 81f5d3c8499623b7d4b1b1b466e018a9cd445b87
parent 124103 20e7a7fa3bdcba8590b26dda57c2bee894a944b7
child 124105 cf6e59da524ae4777fa6d46bcf65a411496bc9b5
push id24406
push userryanvm@gmail.com
push dateThu, 07 Mar 2013 17:19:02 +0000
treeherdermozilla-central@71395a927025 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvporof
bugs846606
milestone22.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 846606 - Intermittent browser_dbg_bug723069_editor-breakpoints.js | Test timed out | correct number of editor breakpoint changes - Got 3, expected 4; r=vporof
browser/devtools/debugger/test/browser_dbg_bug723069_editor-breakpoints.js
--- a/browser/devtools/debugger/test/browser_dbg_bug723069_editor-breakpoints.js
+++ b/browser/devtools/debugger/test/browser_dbg_bug723069_editor-breakpoints.js
@@ -268,19 +268,28 @@ function test()
     executeSoon(function() {
       info("remove the second breakpoint using the mouse");
 
       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 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);
     });
 
   }
 
   function onEditorBreakpointRemoveSecond(aEvent)
   {
     gEditor.removeEventListener(SourceEditor.EVENTS.BREAKPOINT_CHANGE,
                                 onEditorBreakpointRemoveSecond);