B2G/gecko/accessible/tests/mochitest/role.js
/**
 * Test that the role of the given accessible is the role passed in.
 *
 * @param aAccOrElmOrID  the accessible, DOM element or ID to be tested.
 * @param aRole  The role that is to be expected.
 */
Test that the role of the given accessible is the role passed in.
@param aAccOrElmOrID  the accessible, DOM element or ID to be tested.
@param aRole  The role that is to be expected.
Test that the role of the given accessible is the role passed in . @param aAccOrElmOrID the accessible DOM element or ID to be tested . @param aRole The role that is to be expected .
function testRole(aAccOrElmOrID, aRole)
{
  var role = getRole(aAccOrElmOrID);
  is(role, aRole, "Wrong role for " + prettyName(aAccOrElmOrID) + "!");
}
function testRole ( aAccOrElmOrID , aRole ) { var role = getRole ( aAccOrElmOrID ) ; is ( role , aRole , "Wrong role for " + prettyName ( aAccOrElmOrID ) + "!" ) ; }
Test that the role of the given accessible is the role passed in.
Test that the role of the given accessible is the role passed in .