B2G/gecko/accessible/tests/mochitest/common.js
/**
 * Convert states to human readable string.
 */
Convert states to human readable string.
Convert states to human readable string .
function statesToString(aStates, aExtraStates)
{
  var list = gAccRetrieval.getStringStates(aStates, aExtraStates);
  var str = "";
  for (var index = 0; index < list.length - 1; index++)
    str += list.item(index) + ", ";
  if (list.length != 0)
    str += list.item(index)
  return str;
}
function statesToString ( aStates , aExtraStates ) { var list = gAccRetrieval . getStringStates ( aStates , aExtraStates ) ; var str = "" ; for ( var index = 0 ; index < list . length - 1 ; index ++ ) str += list . item ( index ) + ", " ; if ( list . length != 0 ) str += list . item ( index ) return str ; }
Convert states to human readable string.
Convert states to human readable string .