Bug 846606 - fix for permaorange in browser_dbg_bug723069_editor-breakpoints.js | Test timed out; r=me
☠☠ backed out by 22d01a81dd8a ☠ ☠
authorMihai Sucan <mihai.sucan@gmail.com>
Sun, 03 Mar 2013 13:08:50 +0200
changeset 123617 86c98c4d36dac2c4ff6a04a69476f9ac2755d663
parent 123616 78a7a63eec08306602db1af5a10e672f67b70064
child 123618 f99a075a5bce157bf2d000533153e1b109823222
child 123628 4df9c9645ce946b363ca710e26b23f367d2540c3
push id24389
push userryanvm@gmail.com
push dateSun, 03 Mar 2013 18:25:34 +0000
treeherdermozilla-central@86c98c4d36da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs846606
milestone22.0a1
first release with
nightly linux32
86c98c4d36da / 22.0a1 / 20130304030933 / files
nightly linux64
86c98c4d36da / 22.0a1 / 20130304030933 / files
nightly mac
86c98c4d36da / 22.0a1 / 20130304030933 / files
nightly win32
86c98c4d36da / 22.0a1 / 20130304030933 / files
nightly win64
86c98c4d36da / 22.0a1 / 20130304030933 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 846606 - fix for permaorange in browser_dbg_bug723069_editor-breakpoints.js | Test timed out; r=me
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
@@ -31,26 +31,26 @@ function test()
     gDebuggee = gTab.linkedBrowser.contentWindow.wrappedJSObject;
 
     let target = TargetFactory.forTab(gTab);
 
     gDevTools.showToolbox(target, "jsdebugger").then(function(toolbox) {
       info("jsdebugger panel opened");
       gPane = toolbox.getCurrentPanel();
       gDebugger = gPane.panelWin;
-      gDebugger.addEventListener("Debugger:AfterScriptsAdded",
-                                 onAfterScriptsAdded);
+      gDebugger.addEventListener("Debugger:AfterSourcesAdded",
+                                 onAfterSourcesAdded);
     });
   });
 
-  function onAfterScriptsAdded()
+  function onAfterSourcesAdded()
   {
     info("scripts added");
-    gDebugger.removeEventListener("Debugger:AfterScriptsAdded",
-                                  onAfterScriptsAdded, true);
+    gDebugger.removeEventListener("Debugger:AfterSourcesAdded",
+                                  onAfterSourcesAdded);
 
     gDebugger.addEventListener("Debugger:SourceShown", onSourceShown);
 
     gDebugger.DebuggerController.activeThread.addOneTimeListener("framesadded",
       function onFramesAdded() {
         info("frames added");
         framesAdded = true;
         executeSoon(startTest);
@@ -266,18 +266,21 @@ function test()
           "The first script is displayed.");
 
     executeSoon(function() {
       info("remove the second breakpoint using the mouse");
 
       gEditor.addEventListener(SourceEditor.EVENTS.BREAKPOINT_CHANGE,
                                onEditorBreakpointRemoveSecond);
 
-      let testWin = gEditor.editorElement.ownerDocument.defaultView;
-      EventUtils.synthesizeMouse(gEditor.editorElement, 10, 70, {}, testWin);
+      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);
     });
 
   }
 
   function onEditorBreakpointRemoveSecond(aEvent)
   {
     gEditor.removeEventListener(SourceEditor.EVENTS.BREAKPOINT_CHANGE,
                                 onEditorBreakpointRemoveSecond);