B2G/gecko/accessible/tests/mochitest/states.js
/**
 * Return true if the accessible has given states.
 */
Return true if the accessible has given states.
Return true if the accessible has given states .
function hasState(aAccOrElmOrID, aState, aExtraState)
{
  var [state, exstate] = getStates(aAccOrElmOrID);
  return (aState ? state & aState : true) &&
    (aExtraState ? exstate & aExtraState : true);
}
function hasState ( aAccOrElmOrID , aState , aExtraState ) { var [ state , exstate ] = getStates ( aAccOrElmOrID ) ; return ( aState ? state & aState : true ) && ( aExtraState ? exstate & aExtraState : true ) ; }
Return true if the accessible has given states.
Return true if the accessible has given states .