Bug 1514624 - adjust to bug 1482389 removal of long version of getCoordsForCellItem. r=aceman
authorMagnus Melin <mkmelin+mozilla@iki.fi>
Tue, 18 Dec 2018 15:51:28 +0200
changeset 33177 40783ac10e72
parent 33176 0dcfb6c107ea
child 33178 3df0e93306f9
push id2368
push userclokep@gmail.com
push dateMon, 28 Jan 2019 21:12:50 +0000
treeherdercomm-beta@56d23c07d815 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaceman
bugs1514624, 1482389
Bug 1514624 - adjust to bug 1482389 removal of long version of getCoordsForCellItem. r=aceman
mail/test/mozmill/shared-modules/test-folder-display-helpers.js
--- a/mail/test/mozmill/shared-modules/test-folder-display-helpers.js
+++ b/mail/test/mozmill/shared-modules/test-folder-display-helpers.js
@@ -959,23 +959,21 @@ function click_tree_row(aTree, aRowIndex
   if (aRowIndex < 0 || aRowIndex >= aTree.view.rowCount)
     throw new Error("Row " + aRowIndex + " does not exist in the tree " + aTree.id + "!");
 
   let selection = aTree.view.selection;
   selection.select(aRowIndex);
   aTree.treeBoxObject.ensureRowIsVisible(aRowIndex);
 
   // get cell coordinates
-  let x = {}, y = {}, width = {}, height = {};
   let column = aTree.columns[0];
-  aTree.treeBoxObject.getCoordsForCellItem(aRowIndex, column, "text",
-                                           x, y, width, height);
+  let coords = aTree.treeBoxObject.getCoordsForCellItem(aRowIndex, column, "text");
 
   aController.sleep(0);
-  EventUtils.synthesizeMouse(aTree.body, x.value + 4, y.value + 4,
+  EventUtils.synthesizeMouse(aTree.body, coords.x + 4, coords.y + 4,
                              {}, aTree.ownerDocument.defaultView);
   aController.sleep(0);
 }
 
 /**
  * Pretend we are clicking on a row with our mouse.
  *
  * @param aViewIndex If >= 0, the view index provided, if < 0, a reference to