Bug 690319 - Random orange: TEST-UNEXPECTED-FAIL | test-summarization.js | test_summarization_thread_detection (preceded by something like "Thought we would find row 0 at 92,-9 but we found -1"). r=Standard8.
authorMike Conley <mconley@mozilla.com>
Tue, 04 Oct 2011 09:53:07 -0400
changeset 9443 23eab72a5925e2be08a09f38b2c1e30a3e4fd056
parent 9442 acec4a5a9de0763277e35dd8aafa9a0708c2fcf7
child 9444 96ec61738c9614fa6a5999327b5647d574492f45
child 9452 02cbd36d596ed267caba5d7315d07d57b5dc2589
push idunknown
push userunknown
push dateunknown
reviewersStandard8
bugs690319
Bug 690319 - Random orange: TEST-UNEXPECTED-FAIL | test-summarization.js | test_summarization_thread_detection (preceded by something like "Thought we would find row 0 at 92,-9 but we found -1"). r=Standard8.
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
@@ -1039,16 +1039,18 @@ function select_shift_click_row(aViewInd
                aController.folderDisplay.selectedMessages]);
   return aController.folderDisplay.selectedMessages;
 }
 
 /**
  * Helper function to click on a row with a given button.
  */
 function _row_click_helper(aController, aTree, aViewIndex, aButton, aExtra) {
+  // Force-focus the tree
+  aTree.focus();
   let treeBox = aTree.treeBoxObject;
   // very important, gotta be able to see the row
   treeBox.ensureRowIsVisible(aViewIndex);
   // coordinates of the upper left of the entire tree widget (headers included)
   let tx = aTree.boxObject.x, ty = aTree.boxObject.y;
   // coordinates of the row display region of the tree (below the headers)
   let children = aController.e(aTree.id, {tagName: "treechildren"});
   let x = children.boxObject.x, y = children.boxObject.y;