gecko/accessible/tests/mochitest/treeview.js
Alexander Surkov 90867e105a Bug 454647 - fix test_bug368835.xul tests so that TreeInvalidation returns consistent values for event data, r=marcoz, davidb
--HG--
rename : accessible/tests/mochitest/test_bug368835.xul => accessible/tests/mochitest/test_events_tree.xul
2009-02-27 18:45:21 +08:00

51 lines
1.8 KiB
JavaScript

function inTreeView() { }
inTreeView.prototype =
{
mRowCount: 0,
mTree: null,
mData: {},
get rowCount()
{
return this.mRowCount;
},
setTree: function setTree(aTree)
{
this.mTree = aTree;
},
getCellText: function getCellText(aRow, aCol)
{
var key = String(aRow) + aCol.id;
if (key in this.mData)
return this.mData[key];
return "hello";
},
getRowProperties: function getRowProperties(aIndex, aProperties) {},
getCellProperties: function getCellProperties(aIndex, aCol, aProperties) {},
getColumnProperties: function getColumnProperties(aCol, aProperties) {},
getParentIndex: function getParentIndex(aRowIndex) { },
hasNextSibling: function hasNextSibling(aRowIndex, aAfterIndex) { },
getLevel: function getLevel(aIndex) {},
getImageSrc: function getImageSrc(aRow, aCol) {},
getProgressMode: function getProgressMode(aRow, aCol) {},
getCellValue: function getCellValue(aRow, aCol) {},
isContainer: function isContainer(aIndex) {},
isContainerOpen: function isContainerOpen(aIndex) {},
isContainerEmpty: function isContainerEmpty(aIndex) {},
isSeparator: function isSeparator(aIndex) {},
isSorted: function isSorted() {},
toggleOpenState: function toggleOpenState(aIndex) {},
selectionChanged: function selectionChanged() {},
cycleHeader: function cycleHeader(aCol) {},
cycleCell: function cycleCell(aRow, aCol) {},
isEditable: function isEditable(aRow, aCol) {},
isSelectable: function isSelectable(aRow, aCol) {},
setCellValue: function setCellValue(aRow, aCol, aValue) {},
setCellText: function setCellText(aRow, aCol, aValue) { },
performAction: function performAction(aAction) {},
performActionOnRow: function performActionOnRow(aAction, aRow) {},
performActionOnCell: function performActionOnCell(aAction, aRow, aCol) {}
};