B2G/gecko/accessible/tests/mochitest/events.js
/**
 * Focus invoker. Focus the HTML body of content document of iframe.
 */
Focus invoker. Focus the HTML body of content document of iframe.
Focus invoker . Focus the HTML body of content document of iframe .
function synthFocusOnFrame(aNodeOrID, aCheckerOrEventSeq)
{
  var frameDoc = getNode(aNodeOrID).contentDocument;
  var checkerOrEventSeq =
    aCheckerOrEventSeq ? aCheckerOrEventSeq : new focusChecker(frameDoc);
  this.__proto__ = new synthAction(frameDoc, checkerOrEventSeq);
  this.invoke = function synthFocus_invoke()
  {
    this.DOMNode.body.focus();
  }
  this.getID = function synthFocus_getID() 
  { 
    return prettyName(aNodeOrID) + " frame document focus";
  }
}
function synthFocusOnFrame ( aNodeOrID , aCheckerOrEventSeq ) { var frameDoc = getNode ( aNodeOrID ) . contentDocument ; var checkerOrEventSeq = aCheckerOrEventSeq ? aCheckerOrEventSeq : new focusChecker ( frameDoc ) ; this . __proto__ = new synthAction ( frameDoc , checkerOrEventSeq ) ; this . invoke = function synthFocus_invoke ( ) { this . DOMNode . body . focus ( ) ; } this . getID = function synthFocus_getID ( ) { return prettyName ( aNodeOrID ) + " frame document focus" ; } }
Focus invoker.
Focus invoker .