B2G/gecko/accessible/tests/mochitest/table.js
/**
 * Test unselectRow method of accessible table.
 */
Test unselectRow method of accessible table.
Test unselectRow method of accessible table .
function testUnselectTableRow(aIdentifier, aRowIdx, aCellsArray)
{
  var acc = getAccessible(aIdentifier, [nsIAccessibleTable]);
  if (!acc)
    return;
  var colsCount = aCellsArray[0].length;
  for (var colIdx = 0; colIdx < colsCount; colIdx++) {
    var [origRowIdx, origColIdx] = getOrigRowAndColumn(aCellsArray,
                                                       aRowIdx, colIdx);
    aCellsArray[origRowIdx][origColIdx] = false;
  }
  acc.unselectRow(aRowIdx);
  testTableSelection(aIdentifier, aCellsArray,
                     "Unselect " + aRowIdx + " row: ");
}
function testUnselectTableRow ( aIdentifier , aRowIdx , aCellsArray ) { var acc = getAccessible ( aIdentifier , [ nsIAccessibleTable ] ) ; if ( ! acc ) return ; var colsCount = aCellsArray [ 0 ] . length ; for ( var colIdx = 0 ; colIdx < colsCount ; colIdx ++ ) { var [ origRowIdx , origColIdx ] = getOrigRowAndColumn ( aCellsArray , aRowIdx , colIdx ) ; aCellsArray [ origRowIdx ] [ origColIdx ] = false ; } acc . unselectRow ( aRowIdx ) ; testTableSelection ( aIdentifier , aCellsArray , "Unselect " + aRowIdx + " row: " ) ; }
Test unselectRow method of accessible table.
Test unselectRow method of accessible table .
// Unselect origin cell.