B2G/gecko/testing/peptest/peptest/extension/resource/mozmill/stdlib/EventUtils.js
/**
 * Synthesize a composition event.
 *
 * @param aIsCompositionStart  If true, this synthesize compositionstart event.
 *                             Otherwise, compositionend event.
 * @param aWindow              Optional (If null, current |window| will be used)
 */
Synthesize a composition event.
@param aIsCompositionStart  If true, this synthesize compositionstart event.
Otherwise, compositionend event.
@param aWindow              Optional (If null, current |window| will be used)
Synthesize a composition event . @param aIsCompositionStart If true this synthesize compositionstart event . Otherwise compositionend event . @param aWindow Optional ( If null current |window| will be used )
function synthesizeComposition(aIsCompositionStart, aWindow)
{
  var utils = _getDOMWindowUtils(aWindow);
  if (!utils) {
    return;
  }
  utils.sendCompositionEvent(aIsCompositionStart ?
                               "compositionstart" : "compositionend");
}
function synthesizeComposition ( aIsCompositionStart , aWindow ) { var utils = _getDOMWindowUtils ( aWindow ) ; if ( ! utils ) { return ; } utils . sendCompositionEvent ( aIsCompositionStart ? "compositionstart" : "compositionend" ) ; }
Synthesize a composition event.
Synthesize a composition event .