Bug 1272834 - Flush style after changing it to see if intermittent failure goes away. a=test-only
authorNeil Deakin <neil@mozilla.com>
Thu, 29 Dec 2016 19:53:25 -0500
changeset 353396 3cfc29c948a72439da7ef499d02b437f674d0abf
parent 353395 58e5b3c7bdaf6e60a50c7a59c7105a0eb5dd0c2d
child 353397 bcfe2c1191599238b8d778089477ae44df8d2375
push id6795
push userjlund@mozilla.com
push dateMon, 23 Jan 2017 14:19:46 +0000
treeherdermozilla-esr52@76101b503191 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstest-only
bugs1272834
milestone52.0a2
Bug 1272834 - Flush style after changing it to see if intermittent failure goes away. a=test-only
browser/base/content/test/general/browser_selectpopup.js
--- a/browser/base/content/test/general/browser_selectpopup.js
+++ b/browser/base/content/test/general/browser_selectpopup.js
@@ -284,16 +284,17 @@ add_task(function*() {
         }
 
         changedWin.addEventListener("MozAfterPaint", function onPaint() {
           changedWin.removeEventListener("MozAfterPaint", onPaint);
           resolve();
         });
 
         elem.style = contentStep[1];
+        elem.getBoundingClientRect();
       });
     });
 
     yield openSelectPopup(selectPopup, false);
 
     expectedX += step[2];
     expectedY += step[3];
 
@@ -446,16 +447,17 @@ function* performLargePopupTests(win)
     if (!position) {
       break;
     }
 
     let contentPainted = BrowserTestUtils.contentPainted(browser);
     yield ContentTask.spawn(browser, position, function*(contentPosition) {
       let select = content.document.getElementById("one");
       select.setAttribute("style", contentPosition);
+      select.getBoundingClientRect();
     });
     yield contentPainted;
   }
 }
 
 // This test checks select elements with a large number of options to ensure that
 // the popup appears within the browser area.
 add_task(function* test_large_popup() {