B2G/gecko/accessible/tests/mochitest/events.js
/**
 * Open combobox, autocomplete and etc popup, check expandable states.
 */
Open combobox, autocomplete and etc popup, check expandable states.
Open combobox autocomplete and etc popup check expandable states .
function openCombobox(aComboboxID)
{
  this.eventSeq = [
    new stateChangeChecker(STATE_EXPANDED, false, true, aComboboxID)
  ];
  this.invoke = function openCombobox_invoke()
  {
    getNode(aComboboxID).focus();
    synthesizeKey("VK_DOWN", { altKey: true });
  }
  this.getID = function openCombobox_getID()
  {
    return "open combobox " + prettyName(aComboboxID);
  }
}
function openCombobox ( aComboboxID ) { this . eventSeq = [ new stateChangeChecker ( STATE_EXPANDED , false , true , aComboboxID ) ] ; this . invoke = function openCombobox_invoke ( ) { getNode ( aComboboxID ) . focus ( ) ; synthesizeKey ( "VK_DOWN" , { altKey : true } ) ; } this . getID = function openCombobox_getID ( ) { return "open combobox " + prettyName ( aComboboxID ) ; } }
Open combobox, autocomplete and etc popup, check expandable states.
Open combobox autocomplete and etc popup check expandable states .