Bug 855763 - [Responsive Mode] Fix for intermittent browser_responsiveuiaddcustompreset.js | Test timed out, | Found a tab after previous test timed out: data:text/html,foo; r=me
authorMihai Sucan <mihai.sucan@gmail.com>
Fri, 26 Apr 2013 18:49:49 +0300
changeset 130193 576ff91b64d7dc816b7fccce6b1686fad09b402f
parent 130192 c9af815f4a9f8e14eded0dc03d5fb0616fa4eb25
child 130194 2fbb0094f6f4b69705bb29b2289bcc92ca50459d
push idunknown
push userunknown
push dateunknown
reviewersme
bugs855763
milestone23.0a1
Bug 855763 - [Responsive Mode] Fix for intermittent browser_responsiveuiaddcustompreset.js | Test timed out, | Found a tab after previous test timed out: data:text/html,foo; r=me
browser/devtools/responsivedesign/test/browser_responsiveuiaddcustompreset.js
--- a/browser/devtools/responsivedesign/test/browser_responsiveuiaddcustompreset.js
+++ b/browser/devtools/responsivedesign/test/browser_responsiveuiaddcustompreset.js
@@ -74,16 +74,19 @@ function test() {
     Services.prompt.returnBool = true;
     instance.addbutton.doCommand();
 
     instance.menulist.selectedIndex = 1;
 
     info("waiting for responsive mode to turn off");
     mgr.once("off", restart);
 
+    // Force document reflow to avoid intermittent failures.
+    info("document height " + document.height);
+
     // We're still in the loop of initializing the responsive mode.
     // Let's wait next loop to stop it.
     executeSoon(function() {
       EventUtils.synthesizeKey("VK_ESCAPE", {});
     });
   }
 
   function restart() {