B2G/gecko/accessible/tests/mochitest/events.js
/**
 * Call the given function when the tree of the given image map is built.
 */
Call the given function when the tree of the given image map is built.
Call the given function when the tree of the given image map is built .
function waitForImageMap(aImageMapID, aTestFunc)
{
  synthesizeMouse(aImageMapID, 10, 10, { type: "mousemove" },
                  aImageMapID.ownerDocument.defaultView);
  var imageMapAcc = getAccessible(aImageMapID);
  if (imageMapAcc.firstChild)
    return aTestFunc();
  waitForEvent(EVENT_REORDER, imageMapAcc, aTestFunc);
}
function waitForImageMap ( aImageMapID , aTestFunc ) { synthesizeMouse ( aImageMapID , 10 , 10 , { type : "mousemove" } , aImageMapID . ownerDocument . defaultView ) ; var imageMapAcc = getAccessible ( aImageMapID ) ; if ( imageMapAcc . firstChild ) return aTestFunc ( ) ; waitForEvent ( EVENT_REORDER , imageMapAcc , aTestFunc ) ; }
Call the given function when the tree of the given image map is built.
Call the given function when the tree of the given image map is built .