B2G/gecko/testing/peptest/peptest/extension/resource/mozmill/driver/controller.js
/**
   * Close the menu
   *
   * @returns {Menu} The Menu instance
   */
Close the menu
@returns {Menu} The Menu instance
Close the menu @returns { Menu } The Menu instance
function Menu_close() {
    var menu = this._menu.getNode();
    this._controller.keypress(this._menu, "VK_ESCAPE", {});
    this._controller.waitFor(function () {
      return menu.state == "closed";
    }, "Context menu has been closed.");
    return this;
  }
function Menu_close ( ) { var menu = this . _menu . getNode ( ) ; this . _controller . keypress ( this . _menu , "VK_ESCAPE" , { } ) ; this . _controller . waitFor ( function ( ) { return menu . state == "closed" ; } , "Context menu has been closed." ) ; return this ; }
Close the menu
 @returns {Menu} The Menu instance
Close the menu @returns { Menu } The Menu instance