B2G/gecko/accessible/tests/mochitest/events.js
/**
 * Register accessibility event listener.
 *
 * @param aEventType     the accessible event type (see nsIAccessibleEvent for
 *                       available constants).
 * @param aEventHandler  event listener object, when accessible event of the
 *                       given type is handled then 'handleEvent' method of
 *                       this object is invoked with nsIAccessibleEvent object
 *                       as the first argument.
 */
Register accessibility event listener.
@param aEventType     the accessible event type (see nsIAccessibleEvent for
available constants).
@param aEventHandler  event listener object, when accessible event of the
given type is handled then 'handleEvent' method of
this object is invoked with nsIAccessibleEvent object
as the first argument.
Register accessibility event listener . @param aEventType the accessible event type ( see nsIAccessibleEvent for available constants ) . @param aEventHandler event listener object when accessible event of the given type is handled then ' handleEvent ' method of this object is invoked with nsIAccessibleEvent object as the first argument .
function registerA11yEventListener(aEventType, aEventHandler)
{
  listenA11yEvents(true);
  addA11yEventListener(aEventType, aEventHandler);
}
function registerA11yEventListener ( aEventType , aEventHandler ) { listenA11yEvents ( true ) ; addA11yEventListener ( aEventType , aEventHandler ) ; }
Register accessibility event listener.
Register accessibility event listener .