Bug 679271 - Intermittent a11y/accessible/events/test_tree.xul | Test timed out, sometimes with a leak, r=marcoz
authorAlexander Surkov <surkov.alexander@gmail.com>
Wed, 12 Oct 2011 00:32:57 +0900
changeset 78540 6bfe61a76eb0eb603867345e600d958644b38d7d
parent 78539 949c2cf4c7724bbb6c54878147491710f4d9adc5
child 78541 bb3764df1a709bc328538b8cf8587a81f4fe0bd3
push id2570
push usersurkov.alexander@gmail.com
push dateTue, 11 Oct 2011 15:33:30 +0000
treeherdermozilla-inbound@bb3764df1a70 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmarcoz
bugs679271
milestone10.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 679271 - Intermittent a11y/accessible/events/test_tree.xul | Test timed out, sometimes with a leak, r=marcoz
accessible/tests/mochitest/treeview.js
--- a/accessible/tests/mochitest/treeview.js
+++ b/accessible/tests/mochitest/treeview.js
@@ -35,18 +35,18 @@ nsTreeView.prototype =
   },
   setTree: function setTree(aTree)
   {
     this.mTree = aTree;
   },
   getCellText: function getCellText(aRow, aCol)
   {
     var data = this.getDataForIndex(aRow);
-    if (aCol in data.colsText)
-      return data.colsText[aCol];
+    if (aCol.id in data.colsText)
+      return data.colsText[aCol.id];
 
     return data.text + aCol.id;
   },
   getCellValue: function getCellValue(aRow, aCol)
   {
     var data = this.getDataForIndex(aRow);
     return data.value;
   },
@@ -115,17 +115,17 @@ nsTreeView.prototype =
   isEditable: function isEditable(aRow, aCol)
   {
     return true;
   },
   isSelectable: function isSelectable(aRow, aCol) {},
   setCellText: function setCellText(aRow, aCol, aValue)
   {
     var data = this.getDataForIndex(aRow);
-    data.colsText[aCol] = aValue;
+    data.colsText[aCol.id] = aValue;
   },
   setCellValue: function setCellValue(aRow, aCol, aValue)
   {
     var data = this.getDataForIndex(aRow);
     data.value = aValue;
 
     this.mTree.invalidateCell(aRow, aCol);
   },