Bug 1485127 - Add an exception for the AwesomeBar dropmarker sometimes disappearing in a flicker test. r=florian
authorMike Conley <mconley@mozilla.com>
Wed, 16 Jan 2019 15:09:28 +0000
changeset 511206 a41a7e9cdf4e84446a85f3d0fa5c8c06a4e1a92a
parent 511205 5876723df7ba626af3257d55fb79957ebfaec7c9
child 511207 d7f17000fa1cde11afdce450af71f9e08fcfd04a
push id10547
push userffxbld-merge
push dateMon, 21 Jan 2019 13:03:58 +0000
treeherdermozilla-beta@24ec1916bffe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersflorian
bugs1485127
milestone66.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 1485127 - Add an exception for the AwesomeBar dropmarker sometimes disappearing in a flicker test. r=florian Differential Revision: https://phabricator.services.mozilla.com/D16509
browser/base/content/test/performance/browser_tabstrip_overflow_underflow.js
--- a/browser/base/content/test/performance/browser_tabstrip_overflow_underflow.js
+++ b/browser/base/content/test/performance/browser_tabstrip_overflow_underflow.js
@@ -35,16 +35,19 @@ add_task(async function() {
 
   await createTabs(TAB_COUNT_FOR_OVERFLOW);
 
   await ensureFocusedUrlbar();
 
   let tabStripRect = gBrowser.tabContainer.arrowScrollbox.getBoundingClientRect();
   let textBoxRect = document.getAnonymousElementByAttribute(gURLBar,
     "anonid", "moz-input-box").getBoundingClientRect();
+  let urlbarDropmarkerRect = document.getAnonymousElementByAttribute(gURLBar,
+    "anonid", "historydropmarker").getBoundingClientRect();
+
   let ignoreTabstripRects = {
     filter: rects => rects.filter(r => !(
       // We expect plenty of changed rects within the tab strip.
       r.y1 >= tabStripRect.top && r.y2 <= tabStripRect.bottom &&
       r.x1 >= tabStripRect.left && r.x2 <= tabStripRect.right
     )),
     exceptions: [
       {name: "the urlbar placeolder moves up and down by a few pixels",
@@ -53,16 +56,24 @@ add_task(async function() {
          r.y1 >= textBoxRect.top && r.y2 <= textBoxRect.bottom,
       },
       {name: "bug 1446449 - spurious tab switch spinner",
        condition: r =>
          AppConstants.DEBUG &&
          // In the content area
          r.y1 >= document.getElementById("appcontent").getBoundingClientRect().top,
       },
+      {name: "bug 1520032 - the urlbar dropmarker disappears periodically",
+       condition: r =>
+         AppConstants.DEBUG &&
+         r.x1 >= urlbarDropmarkerRect.left &&
+         r.x2 <= urlbarDropmarkerRect.right &&
+         r.y1 >= urlbarDropmarkerRect.top &&
+         r.y2 <= urlbarDropmarkerRect.bottom,
+      },
     ],
   };
 
   await withPerfObserver(async function() {
     let switchDone = BrowserTestUtils.waitForEvent(window, "TabSwitchDone");
     BrowserOpenTab();
     await BrowserTestUtils.waitForEvent(gBrowser.selectedTab, "transitionend",
         false, e => e.propertyName === "max-width");