Bug 1742905 follow-up - Fix a value in browser_directory_tree.js. rs=bustage-fix DONTBUILD
authorGeoff Lankow <geoff@darktrojan.net>
Fri, 26 Nov 2021 20:44:36 +1300
changeset 34400 f0f15025a61d85a836db435d4266468a0e8ba9c3
parent 34399 a30713ee60221acea50827dbff0a8aaea7b95c7e
child 34401 245a295b4e97b00a9776646167d2abbba0a5e529
push id19410
push usergeoff@darktrojan.net
push dateFri, 26 Nov 2021 07:45:45 +0000
treeherdercomm-central@f0f15025a61d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage-fix
bugs1742905
Bug 1742905 follow-up - Fix a value in browser_directory_tree.js. rs=bustage-fix DONTBUILD I knew I had to do this and still forgot to do it. Mac and Windows have different values from Linux where I wrote the test.
mail/components/addrbook/test/browser/new/browser_directory_tree.js
--- a/mail/components/addrbook/test/browser/new/browser_directory_tree.js
+++ b/mail/components/addrbook/test/browser/new/browser_directory_tree.js
@@ -629,17 +629,17 @@ add_task(async function test_context_men
     let menuRect = menu.getBoundingClientRect();
     Assert.less(
       Math.abs(menuRect.top - buttonRect.bottom),
       10,
       "menu appeared near the button vertically"
     );
     Assert.less(
       Math.abs(menuRect.left - buttonRect.left),
-      10,
+      20,
       "menu appeared near the button horizontally"
     );
 
     let hiddenPromise = BrowserTestUtils.waitForEvent(menu, "popuphidden");
     menu.hidePopup();
     await hiddenPromise;
   }