B2G/gecko/accessible/tests/mochitest/table.js
/**
 * Test unselectColumn method of accessible table.
 */
Test unselectColumn method of accessible table.
Test unselectColumn method of accessible table .
function testUnselectTableColumn(aIdentifier, aColIdx, aCellsArray)
{
  var acc = getAccessible(aIdentifier, [nsIAccessibleTable]);
  if (!acc)
    return;
  var rowCount = aCellsArray.length;
  for (var rowIdx = 0; rowIdx < rowCount; rowIdx++) {
    var cellState = aCellsArray[rowIdx][aColIdx];
    var [origRowIdx, origColIdx] =
      getOrigRowAndColumn(aCellsArray, rowIdx, aColIdx);
    aCellsArray[origRowIdx][origColIdx] = false;
  }
  acc.unselectColumn(aColIdx);
  testTableSelection(aIdentifier, aCellsArray,
                     "Unselect " + aColIdx + " column: ");
}
function testUnselectTableColumn ( aIdentifier , aColIdx , aCellsArray ) { var acc = getAccessible ( aIdentifier , [ nsIAccessibleTable ] ) ; if ( ! acc ) return ; var rowCount = aCellsArray . length ; for ( var rowIdx = 0 ; rowIdx < rowCount ; rowIdx ++ ) { var cellState = aCellsArray [ rowIdx ] [ aColIdx ] ; var [ origRowIdx , origColIdx ] = getOrigRowAndColumn ( aCellsArray , rowIdx , aColIdx ) ; aCellsArray [ origRowIdx ] [ origColIdx ] = false ; } acc . unselectColumn ( aColIdx ) ; testTableSelection ( aIdentifier , aCellsArray , "Unselect " + aColIdx + " column: " ) ; }
Test unselectColumn method of accessible table.
Test unselectColumn method of accessible table .
// Unselect origin cell.