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 34031 40783ac10e72f52d2febe0c8aa52db77403a4f41
parent 34030 0dcfb6c107eaf35194316db6e0b44dd89ccf4e8e
child 34032 3df0e93306f9092a25631f9c7558cceb577fa9d8
push id389
push userclokep@gmail.com
push dateMon, 18 Mar 2019 19:01:53 +0000
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