Bug 1485127 - Add an exception for the AwesomeBar dropmarker sometimes disappearing in a flicker test. r=florian, a=test-only
authorMike Conley <mconley@mozilla.com>
Wed, 16 Jan 2019 15:09:28 +0000
changeset 509526 9299c74c0459c8faeb2ebaab093db8a9a12ee11b
parent 509525 ba59016735faa489660bb10bfae3e75b24537b3a
child 509527 e758e8df7f9a1cd53bc6ca5b670e9c1fa23e6b4c
push id1905
push userffxbld-merge
push dateMon, 21 Jan 2019 12:33:13 +0000
treeherdermozilla-release@c2fca1944d8c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersflorian, test-only
bugs1485127
milestone65.0
Bug 1485127 - Add an exception for the AwesomeBar dropmarker sometimes disappearing in a flicker test. r=florian, a=test-only 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");